Intrinsic camera matrix intialization (Bugfix #3312)
Description
When working with normalized image coordinates the principal point is initialized to 0/0. This is happening in the function cvInitIntrinsicParams2D
in this lines:
a[2] = (imageSize.width - 1)*0.5; a[5] = (imageSize.height - 1)*0.5;
As i'm only working with normalized coordinates, i would appreciate an initialization of 0.5/0.5 for the principal point. I would suggest the following:
a[2] = (!imageSize.width) ? 0.5 : (imageSize.width - 1)*0.5; a[5] = (!imageSize.height) ? 0.5 : (imageSize.height - 1)*0.5;
Associated revisions
Merge pull request #3312 from berak:b_3945_30
History
Updated by Kirill Kornyakov over 11 years ago
Well, it would be great if you could send a pull request for review.
- Target version set to Next Hackathon
- Description changed from When working with normalized image coordinates the principal point is initial... to When working with normalized image coordinates the principal point is initial... More
- Tracker changed from Bug to Bugfix
Updated by Bastian Schubert over 11 years ago
Kirill Kornyakov wrote:
Well, it would be great if you could send a pull request for review.
How?
Updated by Kevin Carr over 11 years ago
I created a pull request for this issue here: https://github.com/Itseez/opencv/pull/1649
Updated by Kevin Carr over 11 years ago
The above pull request has been merged into 2.4.
- % Done changed from 0 to 100
Updated by Dmitry Retinskiy over 11 years ago
- Status changed from New to Done
- Pull request set to https://github.com/Itseez/opencv/pull/1649