[ITK Community] [Insight-users] morphology operations on labeled image

Richard Beare richard.beare at gmail.com
Thu Feb 13 04:59:13 EST 2014


Hi,
I'm not quite sure how you mean to use a combination of label and grayscale
images. Perhaps you mean to apply a grayscale operation to a region defined
by a label? If this is the case then you need a combination of masking and
setting the masked out areas to either max or min of the grayscale value to
have the erosion/dilation ignore them. If the label regions don't touch
then you can apply the morphological operation to each one in one go. If
they do touch, and you want independent operations, then you'll probably
need to pull them out one at a time.


On Thu, Feb 13, 2014 at 8:00 PM, Kanishka <kanishkasharma10 at gmail.com>wrote:

> thanks Bradley for sharing the python solution using simple ITK. As I see,
> you have binary image in your case, I am working with grayscale image and i
> see in the description of the ITK filters, we can indeed use the morphology
> operations on grayscale images too but to do the same for selective label
> in
> the grayscale image is difficult for me to achieve right now.
>
> @Richard: I am indeed looking for a solution to selectively operate on the
> labels. I looked into the Insight journal you shared (thanks again for
> sharing), maybe I can try to work around it.
>
> Maybe also, creating a label map and then extracting the particular label,
> applying morphology operation on it and then merging it back with other
> labels is what I should try next.
>
> Kanishka
>
>
>
> --
> View this message in context:
> http://itk-users.7.n7.nabble.com/morphology-operations-on-labeled-image-tp33351p33374.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://public.kitware.com/pipermail/community/attachments/20140213/51b3b212/attachment-0002.html>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list