I have a 3D binary raster image. There are two segments and some space between them. I want to find the center of that space between the segments.
(Segments: Black, Center of Segment: Blue, Wanted Center Point: Red)
I already have the center of both objects, but taking the average of both will not give me the correct point.
I want to code this in python.
(If it helps: I can translate the image or some points to locations in a world coordinate system, so I could do calculations with those values.)