Lines Matching full:rows
103 if( img->cols < templ->cols || img->rows < templ->rows )
107 if( corr->rows > img->rows + templ->rows - 1 ||
115 blocksize.height = cvRound(templ->rows*block_scale);
116 blocksize.height = MAX( blocksize.height, min_block_size - templ->rows + 1 );
117 blocksize.height = MIN( blocksize.height, corr->rows );
122 dftsize.height = cvGetOptimalDFTSize(blocksize.height + templ->rows - 1);
129 blocksize.height = dftsize.height - templ->rows + 1;
130 blocksize.height = MIN( blocksize.height, corr->rows );
140 buf_size = templ->cols*templ->rows*CV_ELEM_SIZE(templ_depth);
144 (blocksize.height + templ->rows - 1)*CV_ELEM_SIZE(depth));
163 dst = cvGetSubRect( dft_templ, &dstub, cvRect(0,yofs,templ->cols,templ->rows));
168 cvInitMatHeader( &temp, templ->rows, templ->cols, templ_depth, buf[0] );
180 dft_templ->cols - templ->cols, templ->rows) );
184 cvDFT( dst, dst, CV_DXT_FORWARD + CV_DXT_SCALE, templ->rows );
188 tile_count_y = (corr->rows + blocksize.height - 1)/blocksize.height;
210 csz.height = MIN( csz.height, corr->rows - y );
212 isz.height = csz.height + templ->rows - 1;
214 y2 = MIN( img->rows, y0 + isz.height );
368 if( img->rows < templ->rows || img->cols < templ->cols )
374 if( result->rows != img->rows - templ->rows + 1 ||
384 if( is_normed && cn == 1 && templ->rows > 8 && templ->cols > 8 &&
385 img->rows > templ->cols && img->cols > templ->cols )
405 for( i = 0; i < result->rows; i++ )
423 inv_area = 1./((double)templ->rows * templ->cols);
425 CV_CALL( sum = cvCreateMat( img->rows + 1, img->cols + 1,
436 CV_CALL( sqsum = cvCreateMat( img->rows + 1, img->cols + 1,
466 q2 = (double*)(sqsum->data.ptr + templ->rows*sqsum->step);
472 p2 = (double*)(sum->data.ptr + templ->rows*sum->step);
478 for( i = 0; i < result->rows; i++ )