Particle swarm optimization in image

Hi,

I would like to experiment with Particle swarm optimization to see if I can retrieve some vessels centerlines from the sum of the paths of PSO particles.

The ITK implementation seems to work only to find minimums, so I ponderated a distance transform created from a seed point with a vesselness function (picture below).

I’ve looked into the test example, and I have two questions :

  • Is there a nice way to serialize my image into the optimizer ? Or do I have to loop through the image and create pairs in a list ?
  • Is there an interface to log the particles path along the iterative process, as this is my main objective ?

Thanks,
Jonas