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,
	AvlNet.Matrix outRectifiedTransform,
	out AvlNet.Point2D outWorldOrigin,
	out float outWorldScale,
	out 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.MatrixFor convenient calculation of world coordinates on rectified image. Connects directly to Image...ToWorldPlane and WorldPlane...ToImage filters. The transformation is only translation + scaling.
outWorldOriginAvlNet.Point2DPosition of world origin on the rectified image.
outWorldScalefloat[pix / world unit] World scale of the rectified image.
outWorldScaleInvfloat[world unit / pix] Inverse of outWorldScale. Connects directly to inResolution input of filters such as PointToPointDistance.

Function Overrides

See also