Files
opencv-MIRROR/modules/geometry
Arghya Bose 76cebf96be Merge pull request #30116 from officialarghya29:fix/geometry-closest-ellipse-point-center-upstream
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.
2026-10-02 14:09:36 +03:00
..