Table of Contents

Class IntrinsicsTransform

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Provides an abstract base class for all operators requiring a specified set of camera intrinsics and distortion parameters.

[Combinator]
[WorkflowElementCategory(ElementCategory.Transform)]
public abstract class IntrinsicsTransform
Inheritance
IntrinsicsTransform
Derived
Inherited Members

Properties

Alpha

Gets or sets the free scaling parameter used when computing the optimal camera matrix.

[Range(0, 1)]
public double Alpha { get; set; }

Property Value

double

Distortion

Gets the matrix of camera distortion coefficients.

protected Mat Distortion { get; }

Property Value

Mat

FocalLength

Gets or sets the focal length of the camera, expressed in pixel units.

public Point2d FocalLength { get; set; }

Property Value

Point2d

ImageSize

Gets or sets the image size used when computing the optimal camera matrix.

[TypeConverter(typeof(NumericRecordConverter))]
public Size? ImageSize { get; set; }

Property Value

Size?

Remarks

If the image size is specified, the optimal camera matrix is estimated and used to scale the camera intrinsics in such a way as to avoid losing pixels which would be lost when undistorting the original frames.

Intrinsics

Gets the full camera intrinsics matrix.

protected Mat Intrinsics { get; }

Property Value

Mat

PrincipalPoint

Gets or sets the principal point of the camera, usually at the image center.

public Point2d PrincipalPoint { get; set; }

Property Value

Point2d

RadialDistortion

Gets or sets the radial distortion coefficients.

public Point3d RadialDistortion { get; set; }

Property Value

Point3d

TangentialDistortion

Gets or sets the tangential distortion coefficients.

public Point2d TangentialDistortion { get; set; }

Property Value

Point2d