opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.19k stars 5.74k forks source link

fix not merging when there are only two segs on one line #3719

Closed Roger8 closed 2 months ago

Roger8 commented 2 months ago

Fixes https://github.com/opencv/opencv_contrib/issues/3715

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

This bug can be recurrent when there are only two segments on one line , if do_merge is set to be true. The while loop will not enter in , then output has still two segments but not one merged one segment.

Roger8 commented 2 months ago

fix #3719