MatGetDefaultNewCameraMatrix Method OpenCvSharp Class Library
returns the default new camera matrix (by default it is the same as cameraMatrix unless centerPricipalPoint=true)

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Mat GetDefaultNewCameraMatrix(
	Nullable<Size> imgSize = null,
	bool centerPrincipalPoint = false
)

Parameters

imgSize (Optional)
Type: SystemNullableSize
Camera view image size in pixels.
centerPrincipalPoint (Optional)
Type: SystemBoolean
Location of the principal point in the new camera matrix. The parameter indicates whether this location should be at the image center or not.

Return Value

Type: Mat
the camera matrix that is either an exact copy of the input cameraMatrix (when centerPrinicipalPoint=false), or the modified one (when centerPrincipalPoint=true).
See Also

Reference