ellipse detection out of set of points
              in 
             Programming Questions 
              •  
              2 months ago    
            
 
           
             I'm working on a knob detector to use with a webcam.
            
            
             Based on the green dots in the image i want to create an ellipse.
            
            
             One dot is missing, on the right.
            
            
             The other dot is to much off (on the control line of the knob).
            
            
             Here are the coordinates:
            
            - int[][] coords = {{189, 78}, {296, 35}, {285, 209}, {189, 206}, {134, 167}, {118, 128}, {128, 82}};
- void setup() {
- size(400, 400);
- background(0);
- fill(255, 0, 0);
- noStroke();
- for(int i = 0; i < coords.length; i++) {
- ellipse(coords[i][0], coords[i][1], 5, 5);
- }
- }
             Is there any algoritme to figure out where it could be?
            
             
              
              1  
            
 
            
 
 
           
 
             
 
             
   
               
             