Files
opencv-MIRROR/modules/geometry
Shiven Solanki 702832f0c8 geometry: return 0 from contourArea and arcLength for an empty contour (#31285)
Problem
cv::contourArea and cv::arcLength throw an assertion for an empty std::vector contour, because getMat() drops the vector's type before the depth check.

Fix
Return 0 before calling getMat() when the input is empty.
2026-12-02 09:58:14 +05:30
..