Closest point of a plane to a 3d image in physical coordinates.

I have a 3d image formed from a volume of slices. Each Slices in the volume is a binary image (the region of interest has pixels with a value of 255 and the rest of the image is zero).
I have a plane in the physical coordinates of the volume. How can I find the point of the region of interest that is closest to the plane in physical coordinates.
I know how to find the closest point to a plane using math, but I don’t know how to do it using ITK, can someone give me an idea of an efficient way to do this.

Make a distance field image of the plane. Then use the binary image as a mask on that distance field. And then find the minimum value of that masked distance field.

Excuse me but I am new to working with ITK, could you explain this topic better (Make a distance field image of the plane. Then use the binary image as a mask on that distance field.).

Hello @ainor,

Please look at this related question which I believe also addresses your need.

2 Likes