[Insight-users] Question about the BinaryDilated and Binary image in general.
Saurabh Garg
srbh.garg at gmail.com
Tue Oct 2 14:02:56 EDT 2012
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/96efea45/attachment.htm>
More information about the Insight-users
mailing list