How should I write a function for (flood filled image function iterator) ?

I would like to write a new function for the floodfilledimagefunctioniterator but I don’t know how should I write one.

I am following what has been suggested here: Floodfill segmentation or is there an other possibillity in itk (

Is there any example that I could follow?

Thank you in advance,


I am not sure there is an example. Maybe heed advice in this mailing list post, and look at code of itk::ConnectedThresholdImageFilter.