[Insight-users] Region labelling

Luis Ibanez luis . ibanez at kitware . com
Wed, 28 Aug 2002 11:52:40 -0400


Hi Uday,

The KLMRegionGrowImageFilter may be too sophisticated
for the problem you are trying to solve. This filter
is capable of segmenting images based on statistical
caracteristics of the regions. It will be a good choice
if you don't have already thresholded your image.

In the case you mention it seems that the four regions
of your image are already well defined and you only
need to get the connected components. If this is the
case, you may get a more effective result by using the
ConnectedThresholdImageFilter.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1ConnectedThresholdImageFilter.html

For this filter you need to specify a seed point inside
the region of your interest and a lower and upper threshold
defining the range of gray values for accepting pixels as
being connected to the seed point.

Please let us know is this works for your case,


Thanks


    Luis

=================================================================


Uday Kurkure wrote:
> 
> Hi all,
> 
> I have a thresholded image which has 4 regions out of which I want to 
> extract only the 1 whose seed point I know in advance. For that purpose 
> I m trying to use KLMRegionGrowImageFilter. Can some one show me a very 
> simple sample code to get the image, set the seed point, apply KLM 
> filter and get the output? Or is there any other algorithm which I can 
> use for the purpose?
> 
> Regards,
> Uday.
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>