[Insight-users] Question about the BinaryDilated and Binary image in general.

Ariel Hernán Curiale curiale at gmail.com
Tue Oct 2 12:53:49 EDT 2012


Hi,

I'm trying to implement a BinaryDilate over a mask image (0 and 1) and after read the class api I was sure that I will could do it :) but after a while the the dilate filter always return the same image as input.  
Reading the itkSoftwareGuide I found to my surprise that the input of the dilated image (in the example of the page 174) was  0 for the background and 255 for non-background. I did this change using a RescaleIntensityImage and the dilate filter work properly.

Anyone knows What is exactly the values of intensity that I need to use when in ITK  say binary image ? 
In the api say that "The structuring element is assumed to be composed of binary values (zero or one)", Why didn't  work the dilate using a binary image ?


Thanks,
__________________________________
| Ariel Hernán Curiale Ph.D Student
| ETSI Telecomunicación
| Universidad de Valladolid
| Campus Miguel Delibes
| 47011 Valladolid, Spain
| Phone: 983-423000 ext. 5590
| Web: www.curiale.com.ar
|_________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121002/4cb9baf4/attachment.htm>


More information about the Insight-users mailing list