mirror of
https://github.com/opencv/opencv.git
synced 2026-11-16 06:17:53 -06:00
geometry: handle points at a circle's center - #30116 ## Summary Handle a point at the center of a circle in `getClosestEllipsePoints`. When the point is the ellipse-frame origin, `solveFast` computes a zero norm and divides by it, producing NaN coordinates for a circle. Return the nearest point on the minor axis for this degenerate input. Add a regression test checking the returned point is finite and lies on the circle. ## Validation - `opencv_test_geometry`: 325/325 passed. - Differential ellipse probe: 9,135 checks passed; the pristine build reproduces the NaN. Fixes the circle-centre case in #26078-related ellipse-distance handling.