Click or drag to resize

CvInvokeFindTransformECC Method
Finds the geometric transform (warp) between two images in terms of the ECC criterion

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static double FindTransformECC(
	IInputArray templateImage,
	IInputArray inputImage,
	IInputOutputArray warpMatrix,
	MotionType motionType,
	MCvTermCriteria criteria,
	IInputArray inputMask = null


Type: Emgu.CVIInputArray
single-channel template image; CV_8U or CV_32F array.
Type: Emgu.CVIInputArray
single-channel input image which should be warped with the final warpMatrix in order to provide an image similar to templateImage, same type as temlateImage.
Type: Emgu.CVIInputOutputArray
floating-point 2×3 or 3×3 mapping matrix (warp).
Type: Emgu.CV.CvEnumMotionType
Specifying the type of motion. Use Affine for default
Type: Emgu.CV.StructureMCvTermCriteria
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 can use 50 iteration and 0.001 eps.
inputMask (Optional)
Type: Emgu.CVIInputArray
An optional mask to indicate valid values of inputImage.

Return Value

Type: Double
The final enhanced correlation coefficient, that is the correlation coefficient between the template image and the final warped input image.
See Also