void multiplyAndNormalizeSpects(int n, float scale, const cufftComplex* a,\r
const cufftComplex* b, cufftComplex* c);\r
\r
- void matchTemplateNaive_8U_SQDIFF(\r
- const DevMem2D image, const DevMem2D templ, DevMem2Df result);\r
+ void matchTemplateNaive_SQDIFF_8U(\r
+ const DevMem2D image, const DevMem2D templ, DevMem2Df result, int cn);\r
\r
- void matchTemplateNaive_32F_SQDIFF(\r
- const DevMem2D image, const DevMem2D templ, DevMem2Df result);\r
+ void matchTemplateNaive_SQDIFF_32F(\r
+ const DevMem2D image, const DevMem2D templ, DevMem2Df result, int cn);\r
\r
- void matchTemplatePrepared_8U_SQDIFF(\r
+ void matchTemplatePrepared_SQDIFF_8U(\r
int w, int h, const DevMem2Df image_sumsq, float templ_sumsq,\r
DevMem2Df result);\r
}}}\r
void matchTemplate_32F_SQDIFF(const GpuMat& image, const GpuMat& templ, GpuMat& result)\r
{\r
result.create(image.rows - templ.rows + 1, image.cols - templ.cols + 1, CV_32F);\r
- imgproc::matchTemplateNaive_32F_SQDIFF(image, templ, result);\r
+ imgproc::matchTemplateNaive_SQDIFF_32F(image, templ, result, 1);\r
}\r
\r
\r
void matchTemplate_8U_SQDIFF(const GpuMat& image, const GpuMat& templ, GpuMat& result)\r
{\r
result.create(image.rows - templ.rows + 1, image.cols - templ.cols + 1, CV_32F);\r
- imgproc::matchTemplateNaive_8U_SQDIFF(image, templ, result);\r
+ imgproc::matchTemplateNaive_SQDIFF_8U(image, templ, result, 1);\r
}\r
\r
\r