Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Spatial Transforms Maps » UndistortImage_Deprecated

UndistortImage_Deprecated


Header: FIL.h
Namespace: fil
Module: Calibration

Removes lens distortion from an image. To be used with a GUI based on chessboard pattern recognition.

Syntax

void fil::UndistortImage_Deprecated
(
	const fil::Image& inImage,
	const fil::SpatialMap& inUndistortionMap,
	ftl::Optional<const fil::Region&> inMapRoi,
	fil::Image& outImage
)

Parameters

Name Type Default Description
Input value inImage const Image& Input image
Input value inUndistortionMap const SpatialMap& Definition of the transformation
Input value inMapRoi Optional<const Region&> NIL Defines which elements of the spatial map are valid
Output value outImage Image& Output image

Description

The operation applies an arbitrary spatial transformation to an image using a SpatialMap object. The input image has to be compatible with the given map. You can check if a map is compatible with an image using TestSpatialMapApplicability.

Remarks

Read more about how to handle images from camera in Camera Calibration article.