Updated by Kirill Kornyakov over 11 years ago
When working with normalized image coordinates the principal point is initialized to 0/0. This is happening in the function @cvInitIntrinsicParams2D@ cvInitIntrinsicParams2D in this lines:
<pre>
a[2] = (imageSize.width - 1)*0.5;
a[5] = (imageSize.height - 1)*0.5;
</pre>
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:
<pre>
a[2] = (!imageSize.width) ? 0.5 : (imageSize.width - 1)*0.5;
a[5] = (!imageSize.height) ? 0.5 : (imageSize.height - 1)*0.5;
</pre>
<pre>
a[2] = (imageSize.width - 1)*0.5;
a[5] = (imageSize.height - 1)*0.5;
</pre>
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:
<pre>
a[2] = (!imageSize.width) ? 0.5 : (imageSize.width - 1)*0.5;
a[5] = (!imageSize.height) ? 0.5 : (imageSize.height - 1)*0.5;
</pre>