Skip to content

Commit 0658ab2

Browse files
authored
Merge pull request #3719 from Roger8:fix_merge_two_segs
fix not merging when there are only two segs on one line
2 parents 2e63693 + ad27bde commit 0658ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/fast_line_detector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ void FastLineDetectorImpl::lineDetection(const Mat& src, std::vector<SEGMENT>& s
581581
bool is_merged = false;
582582
int ith = (int)segments_tmp.size() - 1;
583583
int jth = ith - 1;
584-
while(ith > 1 || jth > 0)
584+
while(ith > 1 || jth >= 0)
585585
{
586586
seg1 = segments_tmp[ith];
587587
seg2 = segments_tmp[jth];

0 commit comments

Comments
 (0)