CreateRectificationMap_PixelUnits


Computes a spatial map for transforming distorted images to rectified images defined in world coordinate plane. Defines the output geometry in pixels.

Applications:Specification of fixed output geometry allows for constant environment even when recalibration is performed.

Syntax

C++
C#
Python
 
def CreateRectificationMap_PixelUnits(
	inImageFormat: ImageFormat,
	inTransform: RectificationTransform,
	outRectificationMap: RectificationMap,
	/,
	*,
	inCenterPoint: Point2D | None = None,
	inOutputWidth: int | None = None,
	inOutputHeight: int | None = None,
	inWorldScale: float | None = None,
	inInvertedWorldY: bool = False,
	inInterpolationMethod: InterpolationMethod = InterpolationMethod.Bilinear
)
-> None

Parameters

Name Type Range Default Description
Input value inImageFormat ImageFormat Input image format.
Input value inCenterPoint Point2D | None None Specifies a point which will be the center of output image. Defaults to the center of input image.
Input value inOutputWidth int | None 1 - None Specifies the pixel size of output image. Defaults to the size of input image.
Input value inOutputHeight int | None 1 - None Specifies the pixel size of output image. Defaults to the size of input image.
Input value inWorldScale float | None 0.001 - None [pix / world unit] Specifies the scale for output image. By default scale is calculated such that there will be no rescaling at the inCenterPoint.
Input value inInvertedWorldY bool False Set to true if world coordinate system has right-handed orientation, also known as mathematical or standard. This effectively mirrors the rectified image vertically.
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.Bilinear
Input value inTransform RectificationTransform Transform's camera model is needed for undistortion of image, when not supplied the generated map will assume undistorted image on input. Transform's homography is needed for transforming to given world plane, when not supplied the generated map will only remove distortion of image.
Output value outRectificationMap RectificationMap