You are here: Start » AVL.NET » Function Reference » Computer Vision » Camera Calibration » AVL.CreateRectificationMap_PixelUnits

AVL.CreateRectificationMap_PixelUnits

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateRectificationMap_PixelUnits
(
	AvlNet.ImageFormat inImageFormat,
	int? inOutputWidth,
	int? inOutputHeight,
	bool inInvertedWorldY,
	AvlNet.InterpolationMethod inInterpolationMethod,
	AvlNet.RectificationTransform inTransform,
	AvlNet.RectificationMap outRectificationMap
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatInput image format.
inOutputWidthint?<1, INF>Specifies the pixel size of output image. Defaults to the size of input image. Default value: atl::NIL.
inOutputHeightint?<1, INF>Specifies the pixel size of output image. Defaults to the size of input image. Default value: atl::NIL.
inInvertedWorldYboolFalseSet to true if world coordinate system has right-handed orientation, also known as mathematical or standard. This effectively mirrors the rectified image vertically. Default value: False.
inInterpolationMethodAvlNet.InterpolationMethodBilinearDefault value: Bilinear.
inTransformAvlNet.RectificationTransformTransform'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.
outRectificationMapAvlNet.RectificationMap

Description

Creates a RectificationMap, which is used by RectifyImage filter for image rectification onto a defined world plane. Point locations on rectified images are related to the world plane (defined by inTransform) only by translation and scaling.

The filter may be used to generate a map which only removes a lens distortion in the image – to achieve this behaviour attach a camera model directly to inTransform (i.e. do not provide a homography matrix).

The inTransform may not contain a camera model – in such case the the generated map will assume undistorted image on input.

The output image dimensions, resolution and cropping are specified by:

  1. inCenterPoint - the point on the input image, which will be the center of output image.
  2. inOutputWidth,inOutputHeight - size of output image.
  3. inWorldScale - the scale for output image, defined in pixels per world unit.

Auxiliary data contained inside the RectificationMap describes the relation of rectified image to the world plane.

Examples

Left: original image, as captured by a camera, with mild lens distortion present. Right: rectified image with annotated length measurement.

Function Overrides

See also