Lines Matching defs:img
230 CvMat stub, *img = (CvMat*)arr;
232 CV_CALL( img = cvGetMat( img, &stub ));
233 //debug_img = img;
235 if( CV_MAT_DEPTH( img->type ) != CV_8U || CV_MAT_CN( img->type ) == 2 )
245 CV_CALL( thresh_img = cvCreateMat( img->rows, img->cols, CV_8UC1 ));
248 CV_CALL( dbg_img = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3 ));
249 CV_CALL( dbg1_img = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3 ));
250 CV_CALL( dbg2_img = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3 ));
253 if( CV_MAT_CN(img->type) != 1 || (flags & CV_CALIB_CB_NORMALIZE_IMAGE) )
257 CV_CALL( norm_img = cvCreateMat( img->rows, img->cols, CV_8UC1 ));
259 if( CV_MAT_CN(img->type) != 1 )
261 CV_CALL( cvCvtColor( img, norm_img, CV_BGR2GRAY ));
262 img = norm_img;
267 cvEqualizeHist( img, norm_img );
268 img = norm_img;
287 CV_CALL( quad_count = icvGenerateQuadsEx( &quads, &corners, storage, img, thresh_img, dilations, flags ));
295 int block_size = cvRound(MIN(img->cols,img->rows)*0.2)|1;
298 cvAdaptiveThreshold( img, thresh_img, 255,
307 //cvDilate( img, thresh_img, 0, 1 );
310 double mean = cvMean( img );
314 cvThreshold( img, thresh_img, thresh_level, 255, CV_THRESH_BINARY );