Back to Adaptive Vision Library website

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

RemapImage


Applies a precomputed image transform, defined by a spatial map object.

Header:AVL.h

Syntax

C++
C#
 
void avl::RemapImage
(
	const avl::Image& inImage,
	const avl::SpatialMap& inSpatialMap,
	atl::Optional<const avl::Region&> inMapRoi,
	avl::Image& outImage
)

Parameters

Name Type Default Description
inImage const Image& Input image
inSpatialMap const SpatialMap& Definition of the transformation
inMapRoi Optional<const Region&> NIL Defines which elements of the spatial map are valid
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.

Hints

  • Connect the inSpatialMap input with a spatial map. This can be for example the result of the CreatePerspectiveMap_Points function or similar.

Errors

Error type Description
DomainError Incorrect SpatialMap on input in RemapImage.

See Also