So I have an image which looks like this:
And what I need to do if create a best fit grid. The circles in this image are circular but they can be oval, oblong or any random shape you can think of.
I believe I need the grid so I can get the inner 75% of these dots and average the color contained in that 75%.
I've looked at Calib3d.findCirclesGridDefault but I belive that just creates a grid based on the center points of found circles. There isn't much documentation on the java side so please correct me if I'm wrong.
Calib3d.findCirclesGridDefault: http://docs.opencv.org/java/org/opencv/calib3d/Calib3d.html#findCirclesGridDefault%28org.opencv.core.Mat,%20org.opencv.core.Size,%20org.opencv.core.Mat%29
Is there an OpenCV Method to do this or is there any prefered method of generating a best fit grid?