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
templateImageInputArraysingle-channel template image; CV_8U or CV_32F array.
inputImageInputArraysingle-channel input image which should be warped with the final warpMatrix in order to provide an image similar to templateImage, same type as templateImage.
warpMatrixInputOutputArrayfloating-point \f$2\times 3\f$ or \f$3\times 3\f$ mapping matrix (warp).
motionTypeMotionTypesparameter, specifying the type of motion
criteriaTermCriteriaparameter, 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.
inputMaskInputArrayAn optional mask to indicate valid values of inputImage.
gaussFiltSizeintAn optional value indicating size of gaussian blur filter; (DEFAULT: 5)
Returns
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
templateImageInputArraysingle-channel template image; CV_8U or CV_32F array.
inputImageInputArraysingle-channel input image which should be warped with the final warpMatrix in order to provide an image similar to templateImage, same type as templateImage.
warpMatrixInputOutputArrayfloating-point \f$2\times 3\f$ or \f$3\times 3\f$ mapping matrix (warp).
motionTypeMotionTypesparameter, specifying the type of motion
criteriaTermCriteria?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.
inputMaskInputArrayAn optional mask to indicate valid values of inputImage.