roiImage.cols() - templateImage.cols() + 1,
roiImage.rows() - templateImage.rows() + 1,
CvType.CV_32FC1);
Imgproc.matchTemplate(roiImage, templateImage, resultImage, Imgproc.TM_CCOEFF);
MinMaxLocResult mmr = Core.minMaxLoc(resultImage);
org.opencv.core.Point matchLoc = mmr.maxLoc;
double matchValue = mmr.maxVal;
// TODO: Figure out certainty and how to filter on it.