Skip to content

Fixed issue in ORB detection if firstLevel property is set above 0#10690

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
terfendail:orb_firstlevel
Feb 1, 2018
Merged

Fixed issue in ORB detection if firstLevel property is set above 0#10690
opencv-pushbot merged 1 commit intoopencv:masterfrom
terfendail:orb_firstlevel

Conversation

@terfendail
Copy link
Copy Markdown
Contributor

resolves #10561

This pullrequest changes

Fixed pyramid buffer size to allow retaining of upscaled images. Updated pyramid evaluation to perform image upscaling if necessary.

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Please add regression test for this.

roughly match the patchSize parameter.
@param firstLevel It should be 0 in the current implementation.
@param firstLevel The level of pytramid to put source image to. Previous layers are filled
with upscaled source image.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please fix typo here

int getEdgeThreshold() const { return edgeThreshold; }

void setFirstLevel(int firstLevel_) { firstLevel = firstLevel_; }
void setFirstLevel(int firstLevel_) { CV_Assert(firstLevel >= 0); firstLevel = firstLevel_; }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Parameter name contains underscore: firstLevel_, assertion - doesn't.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vpisarev This definitely should be fixed.

@vpisarev vpisarev self-assigned this Feb 1, 2018
@vpisarev
Copy link
Copy Markdown
Contributor

vpisarev commented Feb 1, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ORB::setFirstLevel(i>0) causes a crash

4 participants