Table of Contents

Method ConvertMaps

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ConvertMaps(InputArray, InputArray, OutputArray, OutputArray, MatType, bool)

Converts image transformation maps from one representation to another.

public static void ConvertMaps(InputArray map1, InputArray map2, OutputArray dstmap1, OutputArray dstmap2, MatType dstmap1Type, bool nnInterpolation = false)

Parameters

map1 InputArray

The first input map of type CV_16SC2 , CV_32FC1 , or CV_32FC2 .

map2 InputArray

The second input map of type CV_16UC1 , CV_32FC1 , or none (empty matrix), respectively.

dstmap1 OutputArray

The first output map that has the type dstmap1type and the same size as src.

dstmap2 OutputArray

The second output map.

dstmap1Type MatType

Type of the first output map that should be CV_16SC2 , CV_32FC1 , or CV_32FC2 .

nnInterpolation bool

Flag indicating whether the fixed-point maps are used for the nearest-neighbor or for a more complex interpolation.