Home | History | Annotate | Download | only in src

Lines Matching defs:mhi

54     int *mhi = (int *) mhiIm;
75 mhiStep /= sizeof(mhi[0]);
84 for( y = 0; y < size.height; y++, silIm += silStep, mhi += mhiStep )
87 int val = mhi[x];
92 mhi[x] = val;
95 for( y = 0; y < size.height; y++, silIm += silStep, mhi += mhiStep )
98 int val = mhi[x];
103 mhi[x] = val;
117 CvMat mhistub, *mhi = (CvMat*)mhimg;
125 CV_CALL( mhi = cvGetMat( mhi, &mhistub ));
130 if( CV_MAT_CN( mhi->type ) > 1 )
133 if( CV_MAT_DEPTH( mhi->type ) != CV_32F )
136 if( !CV_ARE_SIZES_EQ( mhi, silh ))
139 size = cvGetMatSize( mhi );
141 mhi_step = mhi->step;
144 if( CV_IS_MAT_CONT( mhi->type & silh->type ))
152 mhi->data.fl, mhi_step, size,
171 CvMat mhistub, *mhi = (CvMat*)mhiimg;
181 CV_CALL( mhi = cvGetMat( mhi, &mhistub ));
194 if( CV_MAT_TYPE( mhi->type ) != CV_32FC1 || CV_MAT_TYPE( orient->type ) != CV_32FC1 )
196 "MHI and orientation must be single-channel floating-point images" );
198 if( !CV_ARE_SIZES_EQ( mhi, mask ) || !CV_ARE_SIZES_EQ( orient, mhi ))
201 if( orient->data.ptr == mhi->data.ptr )
202 CV_ERROR( CV_StsInplaceNotSupported, "orientation image must be different from MHI" );
210 size = cvGetMatSize( mhi );
213 CV_CALL( dX_min = cvCreateMat( mhi->rows, mhi->cols, CV_32F ));
214 CV_CALL( dY_max = cvCreateMat( mhi->rows, mhi->cols, CV_32F ));
217 CV_CALL( cvSobel( mhi, dX_min, 1, 0, aperture_size ));
218 CV_CALL( cvSobel( mhi, dY_max, 0, 1, aperture_size ));
251 cvErode( mhi, dX_min, el );
252 cvDilate( mhi, dY_max, el );
294 CvMat mhistub, *mhi = (CvMat*)mhiimg;
307 CV_CALL( mhi = cvGetMat( mhi, &mhistub ));
314 if( CV_MAT_TYPE( mhi->type ) != CV_32FC1 || CV_MAT_TYPE( orient->type ) != CV_32FC1 )
316 "MHI and orientation must be single-channel floating-point images" );
318 if( !CV_ARE_SIZES_EQ( mhi, mask ) || !CV_ARE_SIZES_EQ( orient, mhi ))
322 CV_ERROR( CV_StsOutOfRange, "MHI duration must be positive" );
324 if( orient->data.ptr == mhi->data.ptr )
325 CV_ERROR( CV_StsInplaceNotSupported, "orientation image must be different from MHI" );
336 // override timestamp with the maximum value in MHI
337 cvMinMaxLoc( mhi, 0, &curr_mhi_timestamp, 0, 0, mask );
344 mhi_rows = mhi->rows;
345 mhi_cols = mhi->cols;
347 if( CV_IS_MAT_CONT( mhi->type & mask->type & orient->type ))
353 cvGetRow( mhi, &mhi_row, 0 );
370 mhi_row.data.ptr = mhi->data.ptr + mhi->step*y;
424 CvMat mhistub, *mhi = (CvMat*)mhiimg;
433 CV_CALL( mhi = cvGetMat( mhi, &mhistub ));
436 if( CV_MAT_TYPE( mhi->type ) != CV_32FC1 || CV_MAT_TYPE( mask->type ) != CV_32FC1 )
437 CV_ERROR( CV_BadDepth, "Both MHI and the destination mask" );
439 if( !CV_ARE_SIZES_EQ( mhi, mask ))
442 CV_CALL( mask8u = cvCreateMat( mhi->rows + 2, mhi->cols + 2, CV_8UC1 ));
452 for( y = 0; y < mhi->rows; y++ )
454 int* mhi_row = (int*)(mhi->data.ptr + y*mhi->step);
455 for( x = 0; x < mhi->cols; x++ )
462 for( y = 0; y < mhi->rows; y++ )
464 int* mhi_row = (int*)(mhi->data.ptr + y*mhi->step);
467 for( x = 0; x < mhi->cols; x++ )
476 CV_CALL( cvFloodFill( mhi, seed, cvRealScalar(0), _seg_thresh, _seg_thresh,
501 for( y = 0; y < mhi->rows; y++ )
503 int* mhi_row = (int*)(mhi->data.ptr + y*mhi->step);
504 for( x = 0; x < mhi->cols; x++ )