Skip to content

Commit b042744

Browse files
authored
Merge pull request #3720 from sturkmen72:fix_contrib_3704
Update edge_drawing.cpp
2 parents 7e1b089 + 237cdf0 commit b042744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/edge_drawing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@ void EdgeDrawingImpl::detectEllipses(OutputArray ellipses)
25922592
}
25932593

25942594
// This is how much space we will allocate for circles buffers
2595-
int maxNoOfCircles = (int)lines.size() / 3 + noCircles1 * 2;
2595+
int maxNoOfCircles = (int)lines.size() / 3 + noCircles1 * 2 + 2;
25962596

25972597
edarcs1 = new EDArcs(maxNoOfCircles);
25982598
DetectArcs(); // Detect all arcs

0 commit comments

Comments
 (0)