Lines Matching refs:first_frame
136 cvCreateGaussianBGModel( IplImage* first_frame, CvGaussBGStatModelParams* parameters )
166 if( !CV_IS_IMAGE(first_frame) )
167 CV_ERROR( CV_StsBadArg, "Invalid or NULL first_frame parameter" );
179 ((first_frame->width*first_frame->height) + 256)));
181 CV_CALL( bg_model->background = cvCreateImage(cvSize(first_frame->width,
182 first_frame->height), IPL_DEPTH_8U, first_frame->nChannels));
183 CV_CALL( bg_model->foreground = cvCreateImage(cvSize(first_frame->width,
184 first_frame->height), IPL_DEPTH_8U, 1));
192 (first_frame->width*first_frame->height + 128)));
194 for( i = 0, n = 0; i < first_frame->height; i++ )
196 for( j = 0; j < first_frame->width; j++, n++ )
198 const int p = i*first_frame->widthStep+j*first_frame->nChannels;
204 for( m = 0; m < first_frame->nChannels; m++)
207 bg_model->g_point[n].g_values[0].mean[m] = (unsigned char)first_frame->imageData[p + m];
213 for( m = 0; m < first_frame->nChannels; m++){