Table of Contents

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

cameraMatrix InputArray

Input camera matrix.

imgSize Size?

Camera view image size in pixels.

centerPrincipalPoint bool

Location 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).