Find the center of space between two segments in image

33 Views Asked by At

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.

The Sketch (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.)

0

There are 0 best solutions below