Table of Contents

Method FindTransformECC

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FindTransformECC(InputArray, InputArray, InputOutputArray, MotionTypes, TermCriteria, InputArray, int)

Finds the geometric transform (warp) between two images in terms of the ECC criterion @cite EP08 .

public static double FindTransformECC(InputArray templateImage, InputArray inputImage, InputOutputArray warpMatrix, MotionTypes motionType, TermCriteria criteria, InputArray inputMask = default, int gaussFiltSize = 5)

Parameters

templateImage InputArray

single-channel template image; CV_8U or CV_32F array.

inputImage InputArray

single-channel input image which should be warped with the final warpMatrix in order to provide an image similar to templateImage, same type as templateImage.

warpMatrix InputOutputArray

floating-point \f$2\times 3\f$ or \f$3\times 3\f$ mapping matrix (warp).

motionType MotionTypes

parameter, specifying the type of motion

criteria TermCriteria

parameter, specifying the termination criteria of the ECC algorithm; criteria.epsilon defines the threshold of the increment in the correlation coefficient between two iterations(a negative criteria.epsilon makes criteria.maxcount the only termination criterion). Default values are shown in the declaration above.

inputMask InputArray

An optional mask to indicate valid values of inputImage.

gaussFiltSize int

An optional value indicating size of gaussian blur filter; (DEFAULT: 5)

Returns

double

FindTransformECC(InputArray, InputArray, InputOutputArray, MotionTypes, TermCriteria?, InputArray)

Finds the geometric transform (warp) between two images in terms of the ECC criterion @cite EP08 .

public static double FindTransformECC(InputArray templateImage, InputArray inputImage, InputOutputArray warpMatrix, MotionTypes motionType = MotionTypes.Affine, TermCriteria? criteria = null, InputArray inputMask = default)

Parameters

templateImage InputArray

single-channel template image; CV_8U or CV_32F array.

inputImage InputArray

single-channel input image which should be warped with the final warpMatrix in order to provide an image similar to templateImage, same type as templateImage.

warpMatrix InputOutputArray

floating-point \f$2\times 3\f$ or \f$3\times 3\f$ mapping matrix (warp).

motionType MotionTypes

parameter, specifying the type of motion

criteria TermCriteria?

parameter, specifying the termination criteria of the ECC algorithm; criteria.epsilon defines the threshold of the increment in the correlation coefficient between two iterations(a negative criteria.epsilon makes criteria.maxcount the only termination criterion). Default values are shown in the declaration above.

inputMask InputArray

An optional mask to indicate valid values of inputImage.

Returns

double