Home | History | Annotate | Download | only in src

Lines Matching refs:foreground

42 // This file implements the foreground/background pixel
45 // Foreground Object Detection from Videos Containing Complex Background
47 // http://muq.org/~cynbe/bib/foreground-object-detection-from-videos-containing-complex-background.pdf
73 // Function cvCreateFGDStatModel initializes foreground detection process
157 CV_CALL( p_model->foreground = cvCreateImage(cvSize(first_frame->width, first_frame->height), IPL_DEPTH_8U, 1));
202 cvReleaseImage( &model->foreground );
213 // Function cvChangeDetection performs change detection for Foreground detection algorithm
324 // Function cvUpdateFGDStatModel updates statistical model and returns number of foreground regions
342 cvZero(model->foreground);
344 // From foreground pixel candidates using image differencing
418 // Update foreground:
419 ((uchar*)model->foreground->imageData)[i*mask_step+j] = (uchar)(val*255);
427 // Foreground segmentation.
428 // Smooth foreground map:
430 cvMorphologyEx( model->foreground, model->foreground, 0, 0, CV_MOP_OPEN, model->params.perform_morphing );
431 cvMorphologyEx( model->foreground, model->foreground, 0, 0, CV_MOP_CLOSE, model->params.perform_morphing );
437 // Discard under-size foreground regions:
439 cvFindContours( model->foreground, model->storage, &first_seq, sizeof(CvContour), CV_RETR_LIST );
465 cvZero(model->foreground);
466 cvDrawContours(model->foreground, first_seq, CV_RGB(0, 0, 255), CV_RGB(0, 0, 255), 10, -1);
505 if( !((uchar*)model->foreground->imageData)[i*mask_step+j] )
556 if( !((uchar*)model->foreground->imageData)[i*mask_step+j] )
613 if( !((uchar*)model->foreground->imageData)[i*mask_step+j] )
658 if( !((uchar*)model->foreground->imageData)[i*mask_step+j] )
705 if( !((uchar*)model->foreground->imageData)[i*mask_step+j])