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