Signed distance map generation


#1

Hi, I am new to ITK. I have used ITK ApproximateSignedDistanceMapImageFilter example to generate the signed distance map for an input binary image, where pixels inside of the object have negative distance while pixels outside of the object have positive distance. Instead of viewing the signed distance map, how could I modify the algorithm so that I can save the output as an image? Thank you.


(Dženan Zukić) #2

You need to write the image returned by approximateSignedDistanceMapImageFilter->GetOutput(). Here is an example which shows how to write an image.