findTransformECC function
(double, Mat)
findTransformECC(
- InputArray templateImage,
- InputArray inputImage,
- InputOutputArray warpMatrix,
- int motionType,
- (int, int, double) criteria,
- InputArray inputMask,
- int gaussFiltSize,
FindTransformECC finds the geometric transform (warp) between two images in terms of the ECC criterion.
For futther details, please see: https://docs.opencv.org/4.x/dc/d6b/group__video__track.html#ga1aa357007eaec11e9ed03500ecbcbe47
Implementation
(double ret, Mat warpMatrix) findTransformECC(
InputArray templateImage,
InputArray inputImage,
InputOutputArray warpMatrix,
int motionType,
(int, int, double) criteria,
InputArray inputMask,
int gaussFiltSize,
) {
final ret = cvRunArena<double>((arena) {
final p = arena<ffi.Double>();
cvRun(
() => cffi.FindTransformECC(
templateImage.ref,
inputImage.ref,
warpMatrix.ref,
motionType,
criteria.toTermCriteria().ref,
inputMask.ref,
gaussFiltSize,
p,
),
);
return p.value;
});
return (ret, warpMatrix);
}