I am working with ITK images and I am using TransformPhysicalPointToIndex a lot!.
My physical space bounds are quite strict, so I wanna be sure that this function computes accurately indices of points that are inside an image or not.
I have a problem that is related to the fact that this function is using rounding.
I have no problem doing rounding for the interior points of the image.
But when it comes to the boundary, if a point is even slightly outside of the image I don’t want this function to return me an index that is part of the image, when geometrically speaking it’s not.
Is there a similar function like TransformPhysicalPointToBoundedIndex(point, index)
that implements the logic that I explained?