mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
fixed bug with uninitialized variable in cvGetOptimalNewCameraMatrix (patch #1731 by floemker)
This commit is contained in:
parent
7ef2114107
commit
e918877bcf
@ -2608,7 +2608,7 @@ void cvGetOptimalNewCameraMatrix( const CvMat* cameraMatrix, const CvMat* distCo
|
||||
|
||||
if( validPixROI )
|
||||
{
|
||||
icvGetRectangles( cameraMatrix, distCoeffs, 0, newCameraMatrix, imgSize, inner, outer );
|
||||
icvGetRectangles( cameraMatrix, distCoeffs, 0, &matM, imgSize, inner, outer );
|
||||
cv::Rect r = inner;
|
||||
r &= cv::Rect(0, 0, newImgSize.width, newImgSize.height);
|
||||
*validPixROI = r;
|
||||
|
Loading…
Reference in New Issue
Block a user