Returns the new camera matrix based on the free scaling parameter
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void GetOptimalNewCameraMatrix( CvMat cameraMatrix, CvMat distCoeffs, CvSize imageSize, double alpha, CvMat newCameraMatrix, CvSize newImageSize )
Parameters
- cameraMatrix
- Type: OpenCvSharpCvMat
The input camera matrix - distCoeffs
- Type: OpenCvSharpCvMat
The input 4x1, 1x4, 5x1 or 1x5 vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3]) - imageSize
- Type: OpenCvSharpCvSize
The original image size - alpha
- Type: SystemDouble
The free scaling parameter between 0 (when all the pixels in the undistorted image will be valid) and 1 (when all the source image pixels will be retained in the undistorted image); - newCameraMatrix
- Type: OpenCvSharpCvMat
The output new camera matrix. - newImageSize
- Type: OpenCvSharpCvSize
The image size after rectification. By default it will be set to imageSize .
See Also