Lines Matching refs:first_frame
75 // first_frame - frame from video sequence
79 cvCreateFGDStatModel( IplImage* first_frame, CvFGDStatModelParams* parameters )
90 if( !CV_IS_IMAGE(first_frame) )
91 CV_ERROR( CV_StsBadArg, "Invalid or NULL first_frame parameter" );
93 if (first_frame->nChannels != 3)
94 CV_ERROR( CV_StsBadArg, "first_frame must have 3 color channels" );
132 pixel_count = first_frame->width * first_frame->height;
146 for( i = 0, k = 0; i < first_frame->height; i++ ) {
147 for( j = 0; j < first_frame->width; j++, k++ )
155 CV_CALL( p_model->Ftd = cvCreateImage(cvSize(first_frame->width, first_frame->height), IPL_DEPTH_8U, 1));
156 CV_CALL( p_model->Fbd = cvCreateImage(cvSize(first_frame->width, first_frame->height), IPL_DEPTH_8U, 1));
157 CV_CALL( p_model->foreground = cvCreateImage(cvSize(first_frame->width, first_frame->height), IPL_DEPTH_8U, 1));
159 CV_CALL( p_model->background = cvCloneImage(first_frame));
160 CV_CALL( p_model->prev_frame = cvCloneImage(first_frame));