Ask Your Question

Revision history [back]

Matchtemplate(Normalized Cross Correlation) same size two picture

cv::matchTemplate(image1, image2, corr, cv::TM_CCORR_NORMED); return corr.at<float>(0,0); // corr only has one pixel

If src1 and src2 are same size. I know 'result' is one pixel. I want to know why this method has this result. I want to know what value the second line returns.

click to hide/show revision 2
None

updated 2019-06-10 04:52:50 -0600

berak gravatar image

Matchtemplate(Normalized Cross Correlation) same size two picture

cv::matchTemplate(image1, image2, corr, cv::TM_CCORR_NORMED); return corr.at<float>(0,0); // corr only has one pixel

If src1 and src2 are same size. I know 'result' is one pixel.

I want to know why this method has this result. I want to know what value the second line returns.

cv::matchTemplate(image1, image2, corr, cv::TM_CCORR_NORMED);
return corr.at<float>(0,0);  // corr only has one pixel
click to hide/show revision 3
retagged

updated 2019-06-10 04:53:28 -0600

berak gravatar image

Matchtemplate(Normalized Cross Correlation) same size two picture

If src1 and src2 are same size. I know 'result' is one pixel.

I want to know why this method has this result. I want to know what value the second line returns.

cv::matchTemplate(image1, image2, corr, cv::TM_CCORR_NORMED);
return corr.at<float>(0,0);  // corr only has one pixel