`if (method == CV_TM_SQDIFF && ipp_sqrDistance(img, templ, result)) return`