<br>HI Zihua,<br><br>You can simply follow the examples in the ITK Software Guide:<br><br> <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br><br><br>A) For creating an ITK image out of a buffer that you already
<br> have in memory you should look at <br><br> Section: 4.1.7 "Importing Image Data from a Buffer"<br> in pdf-page 78.<br><br><br>B) For passing an image as input to the DanielssonDistanceMapImageFilter
<br> look at Section 6.8 "Distance Map" in pdf-page 248.<br><br> you simply need to pass the output of your import filter<br> as the input to the Distance map filter.<br><br><br> Note that you may also want to try the MaurerDistanceMapImageFilter.
<br><br><br> Regards,<br><br><br> Luis<br><br><br><br>============================================<br><br><div><span class="gmail_quote">On 4/3/07, <b class="gmail_sendername">Zihua Su</b> <<a href="mailto:zihuabox@gmail.com">
zihuabox@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi there,<br><br>I think i have a very very rookie question.
<br><br> I wanna process my image data into a distance map, but I don't wan't<br>to use the "itkImageFileReader.h" to readin image files, cause my work<br>is only a small part of the project.<br>So, Could anyone pls give me some clue how to compose my ITK distance
<br>map code with some data already read in,or if someone already have<br>simliar situation , you can shall me part of your code.<br><br><br>Thank you Very much<br><br>Richard<br>_______________________________________________
<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote>
</div><br>