[Insight-users] morphology operations on labeled image

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Feb 12 09:44:31 EST 2014


Here is a quick SimpleITK IPython notebook I put together to demostrate the answer to you question:
http://nbviewer.ipython.org/github/blowekamp/SimpleITK-Notebook-Answers/blob/master/How%20To%20Apply%20Morphology%20To%20One%20Label.ipynb

Hope that helps,
Brad

On Feb 12, 2014, at 6:36 AM, Kanishka <kanishkasharma10 at gmail.com> wrote:

> Hi Matt,
> 
> thanks for your suggestion. I tried using the binary erode filter earlier on
> the labeled image containing several different labels. I tried using
> 'setErodevalue' to erode only one particular label. But, it doesn't help.  I
> am not sure if what i am doing is in the right direction.  Perhaps, i should
> extract the particular label i need to erode from the image and then merge
> it again with other labels using 'mergelabelmapfilter'?
> 
> 
> 
> 
> --
> View this message in context: http://itk-users.7.n7.nabble.com/morphology-operations-on-labeled-image-tp33351p33363.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



More information about the Insight-users mailing list