CreateRectificationMap_Advanced


Computes a spatial map for transforming distorted images to rectified images defined in world coordinate plane. Allows for flexible definition of output geometry.

Applications:Rarely seen special edge cases. Usually it is sufficient to use CreateRectificationMap_PixelUnits or CreateRectificationMap_WorldUnits filters.

Syntax

C++
C#
Python
 
def CreateRectificationMap_Advanced(
	inImageFormat: ImageFormat,
	inTransform: RectificationTransform,
	outRectificationMap: RectificationMap,
	/,
	*,
	inCenterPointType: CreateSpatialMapUnit = CreateSpatialMapUnit.Pixels,
	inCenterPoint: Point2D | None = None,
	inOutputSizeType: CreateSpatialMapUnit = CreateSpatialMapUnit.Pixels,
	inOutputWidth: float | None = None,
	inOutputHeight: float | 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 inCenterPointType CreateSpatialMapUnit CreateSpatialMapUnit.Pixels Specifies units of measurement of inCenterPoint.
Input value inCenterPoint Point2D | None None Specifies a point which will be the center of output image. Depending on inCenterPointType it can be either defined in pixels of input image or in world units. Defaults to the center of input image.
Input value inOutputSizeType CreateSpatialMapUnit CreateSpatialMapUnit.Pixels Specifies units of measurement of inOutputWidth and inOutputHeight.
Input value inOutputWidth float | None 0.001 - None Specifies the size of output image. Depending on inOutputSizeType it can be either defined in pixels or world units. Defaults to the size of input image.
Input value inOutputHeight float | None 0.001 - None Specifies the size of output image. Depending on inOutputSizeType it can be either defined in pixels or world units. 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