You are here: Start » AVL.NET » Function Reference » Image » Image Spatial Transforms Maps » AVL.ConvertMatrixMapsToSpatialMap

AVL.ConvertMatrixMapsToSpatialMap

Joins two matrices of coordinates to produce a SpatialMap for use in RemapImage.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ConvertMatrixMapsToSpatialMap
(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.Matrix inMatrixX,
	AvlNet.Matrix inMatrixY,
	AvlNet.InterpolationMethod inInterpolationMethod,
	bool inRoundingOpenCV,
	AvlNet.SpatialMap outSpatialMap,
	NullableRef<AvlNet.Region> outOutputRegion
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatInformation about dimensions, depth and pixel type of the image.
inMatrixXAvlNet.MatrixMap of real X coordinates.
inMatrixYAvlNet.MatrixMap of real Y coordinates.
inInterpolationMethodAvlNet.InterpolationMethodBilinearDefault value: Bilinear.
inRoundingOpenCVboolUse same interpolation convention as cvRemap.
outSpatialMapAvlNet.SpatialMapOutput spatial map.
outOutputRegionAvlNet.NullableRef<AvlNet.Region>Pixels set by the spatial map application. Can be null to skip this parameter calculation.

Remarks

The two source matrices contain real-valued coordinates - if inMatrixX[a, b] = x and inMatrixY[a, b] = y, then the RemapImage filter applied with this map will generate the outImage[a, b] pixel based on pixels around (x, y) in inImage.

Errors

List of possible exceptions:

Error type Description
DomainError Format of an empty image on input in ConvertMatrixMapsToSpatialMap.
DomainError Input matrices must have equal sizes in ConvertMatrixMapsToSpatialMap.

Function Overrides

See also