[Insight-users] Correspondance between "water shed" and "fill holes" filter
Luis Ibanez
luis.ibanez at kitware.com
Wed Feb 17 17:43:46 EST 2010
Hi Lynx,
You should take a look at the following paper
in the Insight Journal:
http://www.insight-journal.org/browse/publication/92
"The watershed transform in ITK - discussion and new developments"
Beare R., Lehmann G.
and the following filters:
itkMorphologicalWatershedFromMarkersImageFilter.h
itkMorphologicalWatershedFromMarkersImageFilter.txx
itkMorphologicalWatershedImageFilter.h
itkMorphologicalWatershedImageFilter.txx
that you will find in the directory:
Insight/Code/Review
Regards,
Luis
------------------------------------------------------------------
On Tue, Feb 16, 2010 at 8:45 AM, <lynx.abraxas at freenet.de> wrote:
> Hello!
>
>
> I'm looking for a filter who's result is that of a water shed filter that
> would stop filling basins as soon as a water shed would be introduced. The
> result would be a label for each marker (eg. local minimum) but the label
> would only be as big as the "natural" basin. So the labels would only just
> touch each other.
> From the description of the fill-holes-filter I'm not sure if that is doing
> what I'm looking for. I tried:
> HMinimaImageFilter(float-image)
> GrayscaleFillholeImageFilterr(Hminima-result)
> SubtractImageFilter(Hminima-result,fillholes-result)
> BinaryThresholdImageFilter(Substract-result) #bg==0 fg everything except 0
> ConnectedComponentImageFilter(threshold-result)
>
> But the result is not as expected.
> For one I wonder how I can achieve a threshold as fg is everything except 0.
> Second the subtraction does not yield 0 any where. Why that? Is this a rouding
> error problem?
>
> Is there a better way to achieve this goal?
>
> Many thanks for any help or hints
> Lynx
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list