[Insight-users] Distance Map
Luis Ibanez
luis.ibanez at kitware.com
Tue Apr 3 18:01:09 EDT 2007
HI Zihua,
You can simply follow the examples in the ITK Software Guide:
http://www.itk.org/ItkSoftwareGuide.pdf
A) For creating an ITK image out of a buffer that you already
have in memory you should look at
Section: 4.1.7 "Importing Image Data from a Buffer"
in pdf-page 78.
B) For passing an image as input to the DanielssonDistanceMapImageFilter
look at Section 6.8 "Distance Map" in pdf-page 248.
you simply need to pass the output of your import filter
as the input to the Distance map filter.
Note that you may also want to try the MaurerDistanceMapImageFilter.
Regards,
Luis
============================================
On 4/3/07, Zihua Su <zihuabox at gmail.com> wrote:
>
> Hi there,
>
> I think i have a very very rookie question.
>
> I wanna process my image data into a distance map, but I don't wan't
> to use the "itkImageFileReader.h" to readin image files, cause my work
> is only a small part of the project.
> So, Could anyone pls give me some clue how to compose my ITK distance
> map code with some data already read in,or if someone already have
> simliar situation , you can shall me part of your code.
>
>
> Thank you Very much
>
> Richard
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070403/db50f02f/attachment.html
More information about the Insight-users
mailing list