Searched refs:dftsize (Results 1 – 2 of 2) sorted by relevance
/external/opencv/cv/src/ |
D | cvtemplmatch.cpp | 61 CvSize dftsize, blocksize; in icvCrossCorr() local 119 dftsize.width = cvGetOptimalDFTSize(blocksize.width + templ->cols - 1); in icvCrossCorr() 120 if( dftsize.width == 1 ) in icvCrossCorr() 121 dftsize.width = 2; in icvCrossCorr() 122 dftsize.height = cvGetOptimalDFTSize(blocksize.height + templ->rows - 1); in icvCrossCorr() 123 if( dftsize.width <= 0 || dftsize.height <= 0 ) in icvCrossCorr() 127 blocksize.width = dftsize.width - templ->cols + 1; in icvCrossCorr() 129 blocksize.height = dftsize.height - templ->rows + 1; in icvCrossCorr() 132 CV_CALL( dft_templ = cvCreateMat( dftsize.height*templ_cn, dftsize.width, max_depth )); in icvCrossCorr() 137 CV_CALL( dft_img[k] = cvCreateMat( dftsize.height, dftsize.width, max_depth )); in icvCrossCorr() [all …]
|
/external/opencv3/modules/imgproc/src/ |
D | templmatch.cpp | 665 Size blocksize, dftsize; in crossCorr() local 674 dftsize.width = std::max(getOptimalDFTSize(blocksize.width + templ.cols - 1), 2); in crossCorr() 675 dftsize.height = getOptimalDFTSize(blocksize.height + templ.rows - 1); in crossCorr() 676 if( dftsize.width <= 0 || dftsize.height <= 0 ) in crossCorr() 680 blocksize.width = dftsize.width - templ.cols + 1; in crossCorr() 682 blocksize.height = dftsize.height - templ.rows + 1; in crossCorr() 685 Mat dftTempl( dftsize.height*tcn, dftsize.width, maxDepth ); in crossCorr() 686 Mat dftImg( dftsize, maxDepth ); in crossCorr() 704 int yofs = k*dftsize.height; in crossCorr() 706 Mat dst(dftTempl, Rect(0, yofs, dftsize.width, dftsize.height)); in crossCorr() [all …]
|