getOptimalNewCameraMatrix.patch

floemker floemker, 2012-03-30 01:03 am

Download (664 Bytes)

 
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;