Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I detect the centerline of an object

Hi,

I am writing a program for analyzing chromosome aberrations. I typically get chromosome images that look more or less like a bunch of scattered bananas:

chromosome image

I have figured out how to get the outline and the (rotated) bounding boxes. What I would really like is to be able to get the centerline. By centerline I mean a line going through the geometric center of the binarized object (as shown below), not necessarily through the brightest pixels, which may be on the sides rather than the center.

image description

Any tips on how to code this would be appreciated.