@ Override public void getCenter ( int which , Point2D_F64 location ) { CalibrationObservation view = detector . getDetectedPoints ( ) ; location . set ( 0 , 0 ) ; for ( int i = 0 ; i < view . size ( ) ; i ++ ) { PointIndex2D_F64 p = view . get ( i ) ; location . x += p . x ; location . y += p . y ; } location . x /= view . size ( ) ; location . y /= view . size ( ) ; }
Returns the detection point average location . This will NOT be the same as the geometric center .