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

Ariel Hernán Curiale curiale at gmail.com
Tue Oct 2 15:23:17 EDT 2012


Ok, then I don't know why I need to Rescale the intensity to 255 to get a properly output. When I use the default value (o background and 1 foreground) the dilate doesn't work.

 
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
|_________________________________

El 02/10/2012, a las 20:22, Saurabh Garg escribió:

> Hi Ariel,
> 
> It is an option in case your foreground value is different than default. DilateValue defaults to the maximum possible value of the PixelType.
> 
> HTH,
> Saurabh
> 
> On Tue, Oct 2, 2012 at 11:12 AM, Ariel Hernán Curiale <curiale at gmail.com> wrote:
> Hi Saurabh,
> 
> I can use SetDilateValue or I must use it ? 
> Because I saw this information but I assume that by default all pixel >0 are treated like one. And in the wiki (http://www.itk.org/Wiki/ITK/Examples/Morphology/BinaryDilateImageFilter) they don't use SetDilateValue because the image is binary.
> 
> 
> 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
> |_________________________________
> 
> El 02/10/2012, a las 20:02, Saurabh Garg escribió:
> 
>> Hi Ariel,
>> 
>> You can use "SetDilateValue" to tell the Binary dilate filter, the value of your foreground pixel.
>> 
>> HTH,
>> Saurabh
>> 
>> On Tue, Oct 2, 2012 at 9:53 AM, Ariel Hernán Curiale <curiale at gmail.com> wrote:
>> 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
>> |_________________________________
>> 
>> 
>> _____________________________________
>> 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/20121002/97b74a90/attachment.htm>


More information about the Insight-users mailing list