mirror of
https://github.com/opencv/opencv.git
synced 2026-11-23 01:43:29 -06:00
For an open curve, a zero epsilon and an infinite segment, eps * segment_len_2 is NaN, so the test that stops splitting a slice was always false and the slices never got smaller. Write the test so that NaN counts as within the tolerance. Results for finite input are unchanged. Add tests.