• Home
  • Raw
  • Download

Lines Matching refs:img

58     CvMat istub, *img = (CvMat*)_img;  in icvCrossCorr()  local
66 CV_CALL( img = cvGetMat( img, &istub )); in icvCrossCorr()
70 if( CV_MAT_DEPTH( img->type ) != CV_8U && in icvCrossCorr()
71 CV_MAT_DEPTH( img->type ) != CV_16U && in icvCrossCorr()
72 CV_MAT_DEPTH( img->type ) != CV_32F ) in icvCrossCorr()
76 if( !CV_ARE_DEPTHS_EQ( img, templ ) && CV_MAT_DEPTH( templ->type ) != CV_32F ) in icvCrossCorr()
80 if( !CV_ARE_DEPTHS_EQ( img, corr ) && CV_MAT_DEPTH( corr->type ) != CV_32F && in icvCrossCorr()
85 if( (!CV_ARE_CNS_EQ( img, corr ) || CV_MAT_CN(templ->type) > 1) && in icvCrossCorr()
86 (CV_MAT_CN( corr->type ) > 1 || !CV_ARE_CNS_EQ( img, templ)) ) in icvCrossCorr()
91 depth = CV_MAT_DEPTH(img->type); in icvCrossCorr()
92 cn = CV_MAT_CN(img->type); in icvCrossCorr()
103 if( img->cols < templ->cols || img->rows < templ->rows ) in icvCrossCorr()
107 if( corr->rows > img->rows + templ->rows - 1 || in icvCrossCorr()
108 corr->cols > img->cols + templ->cols - 1 ) in icvCrossCorr()
213 x2 = MIN( img->cols, x0 + isz.width ); in icvCrossCorr()
214 y2 = MIN( img->rows, y0 + isz.height ); in icvCrossCorr()
221 src = cvGetSubRect( img, &sstub, cvRect(x1,y1,x2-x1,y2-y1) ); in icvCrossCorr()
317 ( const void* img, int imgstep, CvSize imgsize,
336 CvMat stub, *img = (CvMat*)_img; in cvMatchTemplate() local
353 CV_CALL( img = cvGetMat( img, &stub, &coi1 )); in cvMatchTemplate()
357 if( CV_MAT_DEPTH( img->type ) != CV_8U && in cvMatchTemplate()
358 CV_MAT_DEPTH( img->type ) != CV_32F ) in cvMatchTemplate()
362 if( !CV_ARE_TYPES_EQ( img, templ )) in cvMatchTemplate()
368 if( img->rows < templ->rows || img->cols < templ->cols ) in cvMatchTemplate()
371 CV_SWAP( img, templ, t ); in cvMatchTemplate()
374 if( result->rows != img->rows - templ->rows + 1 || in cvMatchTemplate()
375 result->cols != img->cols - templ->cols + 1 ) in cvMatchTemplate()
381 depth = CV_MAT_DEPTH(img->type); in cvMatchTemplate()
382 cn = CV_MAT_CN(img->type); in cvMatchTemplate()
385 img->rows > templ->cols && img->cols > templ->cols ) in cvMatchTemplate()
398 CvSize img_size = cvGetMatSize(img), templ_size = cvGetMatSize(templ); in cvMatchTemplate()
400 IPPI_CALL( ipp_func( img->data.ptr, img->step ? img->step : CV_STUB_STEP, in cvMatchTemplate()
418 CV_CALL( icvCrossCorr( img, templ, result )); in cvMatchTemplate()
425 CV_CALL( sum = cvCreateMat( img->rows + 1, img->cols + 1, in cvMatchTemplate()
429 CV_CALL( cvIntegral( img, sum, 0, 0 )); in cvMatchTemplate()
436 CV_CALL( sqsum = cvCreateMat( img->rows + 1, img->cols + 1, in cvMatchTemplate()
438 CV_CALL( cvIntegral( img, sum, sqsum, 0 )); in cvMatchTemplate()