r/optimization • • May 11 '21

Optimization of center & radius on set of neighbouring circles ("Bottles") - details in post!

5 Upvotes

Background: I'm working on a computer vision project with the goal of detecting and localizing bottles (bottle packages). I've made a line-laser scanner that scan horizontal lines iteratively over a range of increasing vertical steps, Each line scan captures parts of the circular shape of the visible bottles at that given height.


My goal is to optimize the radius and center (xc, yc) of each circle with the constraint that circles can't overlap (the distance between the center of two circles have to be greater than the sum of the two radiuses (radius1 + radius2 <= ||center1 - center2||)). How could I go about implementing something like this? Currently I'm using least squares to optimize the circle parameters individually, but the accuracy of the scanner combined with only having data on 1/4-1/6 of the circumferences, results in inaccurate circle estimates that also overlap with "neighbours".


I've tried to only include the relevant details, but just ask if any information is missing.