CogTransform2DPerspectiveAndRadial SetPerspectiveRadialLinearParams Method Cognex VisionPro
Set this transform from the given parameters. Skew is in radians.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public void SetPerspectiveRadialLinearParams(
	double pxx,
	double pxy,
	double pxc,
	double pyx,
	double pyy,
	double pyc,
	double pdx,
	double pdy,
	double radialK,
	double scaling,
	double aspect,
	double skew,
	double translationX,
	double translationY,
	bool inverted
)

Parameters

pxx
Type: System Double

The PXX term. This corresponds to element (0,0) of the matrix used to denote a 2D linear transformation.

pxy
Type: System Double

The PXY term. This corresponds to element (0,1) of the matrix used to denote a 2D linear transformation.

pxc
Type: System Double

The PXC term. This is the X-axis translation of the optical center.

pyx
Type: System Double

The PYX term. This corresponds to element (1,0) of the matrix used to denote a 2D linear transformation.

pyy
Type: System Double

The PYY term. This corresponds to element (1,1) of the matrix used to denote a 2D linear transformation.

pyc
Type: System Double

The PYC term. This is the Y-axis translation of the optical center.

pdx
Type: System Double

The PDX term. This is the X-axis perspective distortion.

pdy
Type: System Double

The PDY term. This is the Y-axis perspective distortion.

radialK
Type: System Double

The coefficient of radial distortion.

scaling
Type: System Double

The linear scale component.

aspect
Type: System Double

The aspect ratio (Y-axis scale divided by X-axis scale).

skew
Type: System Double

The linear skew component.

translationX
Type: System Double

The X-axis translation.

translationY
Type: System Double

The Y-axis translation.

inverted
Type: System Boolean

False if this transform represents the forward perspective and radial transform specified by its properties; True if this transform represents the inverse of the forward transform specified by the properties.

Exceptions

ExceptionCondition
ArgumentException

skew is π/2 or −π/2 when normalized to the range π to −π.

ArgumentException

scaling or aspect is 0.

Remarks

Set this transform from the given parameters. Skew is in radians.

Set this transformation from the named parameters.

See Also