[Insight-users] DanielssonDistanceMapImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Sat Jul 10 23:19:45 EDT 2004
Hi Zein,
Yes, if you give a binary image to the
DanielssonDistanceMapImageFilter it will
computes the distances to the "ones".
You could use an image Adaptor in order
to do the negative of the image. In that
way you don't have to pay for the memory
of making an extra copy of the image.
Another option is that the filter could be
modified for allowing you to select whether
you want the distances to the "ones" or the
distances to the zeros.
If you feel adventurous, you could modify
this code
Insight/Code/BasicFilters/
itkDanielssonDistanceMapImageFilter.txx
in lines 173-186 and 228-239. Those are the
places where the intensities of the input
image are taken into consideration.
Regards,
Luis
------------------------
salah wrote:
> Hello all,
> Applying the DanielssonDistanceMapImageFilter on a binary (0/1) image computes originally the distance from the 'one' pixels out into the background. Is this true? Can I do the contrary ?
> I do not like the option of negating the input image and computing the daniel......Filter on the negative.
>
>
> Many thanks,
> Zein
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list