Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawContours: fix data types so that the function works even for huge images #7461

Closed
wants to merge 3 commits into from

Conversation

reunanen
Copy link
Contributor

resolves #7458

@@ -45,13 +45,23 @@ namespace cv

enum { XY_SHIFT = 16, XY_ONE = 1 << XY_SHIFT, DRAWING_STORAGE_BLOCK = (1<<12) - 256 };

static const int MAX_THICKNESS = 32767;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this variable, it is not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@vpisarev
Copy link
Contributor

@terfendail, can you please review the patch? I think, it relates to your other patch for drawing.cpp, even though that patch was for opencv 3.x. Shall we backport drawing.cpp to 2.4.x?

@alalek
Copy link
Member

alalek commented Mar 2, 2017

Replaced by #8031

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port/backport done Label for maintainers. Authors of PR can ignore this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants