Skip to content

PnP solver: fixed element-wise access#3157

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
ioxp:pnpFix
Aug 25, 2014
Merged

PnP solver: fixed element-wise access#3157
opencv-pushbot merged 1 commit intoopencv:masterfrom
ioxp:pnpFix

Conversation

@PhilLab
Copy link
Copy Markdown
Contributor

@PhilLab PhilLab commented Aug 25, 2014

Before the big PnP update, the data was stored row-first (n points in one single line). Now, the RansacCallback is used which stores column-first (one single point in n lines). This led to an debug assertion failing when using any other method than SOLVEPNP_ITERATIVE (in release mode, the access did work correctly since the next memory cell contains the next value regardless of column- or row-first). To fix this bug and to be storage-agnostic, we now use the single-paramenter element access (since in all cases we have either one row or one column).

@vpisarev vpisarev self-assigned this Aug 25, 2014
@vpisarev
Copy link
Copy Markdown
Contributor

👍

@opencv-pushbot opencv-pushbot merged commit e95c33d into opencv:master Aug 25, 2014
vpisarev added a commit that referenced this pull request Aug 25, 2014
@PhilLab PhilLab deleted the pnpFix branch August 26, 2014 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants