getOptimalNewCameraMatrix.patch
modules/calib3d/src/calibration.cpp (working copy) | ||
---|---|---|
2603 | 2603 | |
2604 | 2604 |
if( validPixROI ) |
2605 | 2605 |
{ |
2606 |
icvGetRectangles( cameraMatrix, distCoeffs, 0, newCameraMatrix, imgSize, inner, outer );
|
|
2606 |
icvGetRectangles( cameraMatrix, distCoeffs, 0, &matM, imgSize, inner, outer );
|
|
2607 | 2607 |
cv::Rect r = inner; |
2608 | 2608 |
r &= cv::Rect(0, 0, newImgSize.width, newImgSize.height); |
2609 | 2609 |
*validPixROI = r; |