Back to Aurora Vision Library website

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

ConvertSpatialMap_ToNearest


Header: AVL.h
Namespace: avl
Module: Calibration

Converts any spatial map to NearestNeighbour interpolation.

Applications: Reducing quality for the purpose of speed.

Syntax

C++
C#
 
void avl::ConvertSpatialMap_ToNearest
(
	const avl::SpatialMap& inSpatialMap,
	avl::SpatialMap& outSpatialMap
)

Parameters

Name Type Default Description
Input value inSpatialMap const SpatialMap&
Output value outSpatialMap SpatialMap&

Description

This operation can be used to convert a SpatialMap using Bilinear interpolation to one using nearest neighbour interpolation. If the input SpatialMap is already nearest neighbour, it is returned unchanged.

Remarks

The compatible ImageFormat remains the same as for the input SpatialMap in any case.

This conversion is not reversible, because a SpatialMap with nearest Neighbour interpolation holds less information than one with Bilinear interpolation.

See Also

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