[Insight-users] morphology operations on labeled image

Richard Beare richard.beare at gmail.com
Thu Feb 13 15:58:44 EST 2014


OK, that makes sense.

Label voting, as Brad suggests, is an option.

In the morphological sense, this is a binary operation, as you aren't
operating on the grayscale image on which the thresholds were calculated.
However you don't want the label values to influence the morphological
operation, which is what happens if you use a grayscale morphological
algorithm on the label image.

The IJ article I sent the link to will do exactly what you say - erode each
label independently (it uses various tricks to avoid having to apply to
individual labels).

Your other option, which is probably easier and more effective, is to use
attribute morphology. This will let you discard labels with area/volume
less than some threshold.
Check out the AttributeOpeningLabelMapFilter<http://www.itk.org/Doxygen45/html/classitk_1_1AttributeOpeningLabelMapFilter.html>.
You'll need LabelImageToShapeLabelMapFilter<http://www.itk.org/Doxygen45/html/classitk_1_1LabelImageToShapeLabelMapFilter.html>
 and LabelMapToLabelImageFilter<http://www.itk.org/Doxygen45/html/classitk_1_1LabelMapToLabelImageFilter.html>
on either side.


On Fri, Feb 14, 2014 at 2:46 AM, Kanishka <kanishkasharma10 at gmail.com>wrote:

> Ok, I think I should explain it better..I have a grayscale image which is
> divided into several labels after using multiple otsu thresholds. however,
> due to inhomogeneity of intensities in the image, traces of some labels
> appear inside other labels. i want to erode these small portions of labels.
> Since the labels are touching each other, it is rather difficult to have
> independent operation on the particular label I want to erode (the one seen
> in traces in the other label). According to the suggestions in this post, I
> see pulling out the particular label, eroding and then merging back with
> other labels as the way to go.
>
>
>
> --
> View this message in context:
> http://itk-users.7.n7.nabble.com/morphology-operations-on-labeled-image-tp33351p33378.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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.php
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140214/3aebed87/attachment.html>


More information about the Insight-users mailing list