I have two images a.jpg(src 1000*1000) and b.jpg(tpl 100*100).
Mat a=imread("a.jpg");//1000*1000
Mat b=imread("b.jpg");//100*100
...
double minVal; double maxVal;
...
matchTemplate(a, b, result, 0 );
minMaxLoc( result, &minVal, &maxVal, &minLoc, &maxLoc, Mat());
printf("minVal=%f \n maxVal=%f \n", minVal,maxVal);
How to get the best matching(or adjustments),someone can help me,thanks :)