Method GetDefaultNewCameraMatrix
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
GetDefaultNewCameraMatrix(InputArray, Size?, bool)
returns the default new camera matrix (by default it is the same as cameraMatrix unless centerPricipalPoint=true)
public static Mat GetDefaultNewCameraMatrix(InputArray cameraMatrix, Size? imgSize = null, bool centerPrincipalPoint = false)
Parameters
cameraMatrixInputArrayInput camera matrix.
imgSizeSize?Camera view image size in pixels.
centerPrincipalPointboolLocation of the principal point in the new camera matrix. The parameter indicates whether this location should be at the image center or not.
Returns
- Mat
the camera matrix that is either an exact copy of the input cameraMatrix (when centerPrinicipalPoint=false), or the modified one (when centerPrincipalPoint=true).