You are here: Start » AVL.NET » AVS.RectifyImage Method

AVS.RectifyImage Method

Applies a spatial map to distorted image transforming it to rectified image defined in world coordinates.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void RectifyImage
(
	AvlNet.Image inImage,
	AvlNet.RectificationMap inRectificationMap,
	AvlNet.Image outImage,
	NullableRef<AvlNet.Matrix> outRectifiedTransform,
	NullableValue<AvlNet.Point2D> outWorldOrigin,
	NullableValue<float> outWorldScale,
	NullableValue<float> outWorldScaleInv
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRectificationMapAvlNet.RectificationMapThe spatial map with associated data for world coordinates calculation on rectified image. Designed to be set with calibration GUI.
outImageAvlNet.ImageRemapped image.
outRectifiedTransformAvlNet.NullableRef<AvlNet.Matrix>For convenient calculation of world coordinates on rectified image. Connects directly to Image...ToWorldPlane and WorldPlane...ToImage filters. The transformation is only translation + scaling. Can be null to skip this parameter calculation.
outWorldOriginAvlNet.NullableValue<AvlNet.Point2D>Position of world origin on the rectified image. Can be null to skip this parameter calculation.
outWorldScaleAvlNet.NullableValue<float>[pix / world unit] World scale of the rectified image. Can be null to skip this parameter calculation.
outWorldScaleInvAvlNet.NullableValue<float>[world unit / pix] Inverse of outWorldScale. Connects directly to inResolution input of filters such as PointToPointDistance. Can be null to skip this parameter calculation.

Function Overrides

See also