contour fitting and segmentation in python

asked 2016-06-14 19:40:36 -0600

bradfield gravatar image

updated 2020-12-09 08:40:14 -0600

lightbox

The above image shows a light table, with 3 liquidfilled vessels on top. The camera is approx. 30cm apart from the table, and one can see the parallactic effect on the left and right vessel, which is disturbing. Also disturbing are the little wires on each vessel.

One goal is to find the middlepoint (in terms of image coordinate) of the upper rims of each vessel, in the presence of all these disturbances. What I would like to do, is to especially search for circular contours, and so to speak "fit" closed circles to the noisy contours. How can this be done in python? First I need a kind of model for a circle of variable radius and middlepoint. I think a minimal radius has to be specified, in order to prevent the program from fitting little circles to little noisy spots. The number of vessels doesnt have to be necessarily three. So somehow the program has to detect the number of circles needed.

I appreciate any idea or suggestion.

edit retag flag offensive close merge delete

Comments

that looks cute ! just curious, what is it supposed to do ?

berak gravatar imageberak ( 2016-06-16 02:11:35 -0600 )edit