-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
Removed invalid reference usage in charuco detector #24354
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
Conversation
|
/cc @vrabaud |
| Mat mIds = markerIds.getMat(); | ||
| Mat chCorners = charucoCorners.getMat(); | ||
| Mat chIds = charucoIds.getMat(); | ||
| const vector<int>& boardIds = board.getIds(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getIds() returns a const vector<int>& so this is fine
vrabaud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also fix the nearestMarkerIdx reference.
50e8a0e to
c497fe0
Compare
AleksandrPanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
@vrabaud please take a look again. |
vrabaud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the API be changed for getNearestMarkerIdx and such at some point to avoid a vector copy? Otherwise, this PR is fine.
Address 60ae973#r127863372
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.