I segmented (i) several protein attachment regions contained within (ii) bacterial cell membranes as visible on the attached image.
I now wish to to calculate the shortest distance between the center of the next-neighboring attachments regions (green outlines) contained within a bacterial membrane (purple outlines.)
Furthermore, I want the distance to be measured only within a membrane, not across membrane boundaries.
Does anyone know a way how to get this result?
Thanks and cheers,