Home | History | Annotate | Download | only in src

Lines Matching full:bg_model_params

73 static void icvInsertionSortGaussians( CvGaussBGPoint* g_point, double* sort_key, CvGaussBGStatModelParams *bg_model_params );
83 const CvGaussBGPoint* g_point, const CvGaussBGStatModelParams *bg_model_params );
85 const CvGaussBGPoint* g_point, const CvGaussBGStatModelParams *bg_model_params );*/
97 const CvGaussBGStatModelParams *bg_model_params );
101 const CvGaussBGStatModelParams *bg_model_params);
103 CvGaussBGPoint* g_point, const CvGaussBGStatModelParams *bg_model_params );
107 const CvGaussBGStatModelParams *bg_model_params);
111 const CvGaussBGStatModelParams *bg_model_params );
290 const CvGaussBGStatModelParams bg_model_params = bg_model->params;
297 no_match = icvMatchTest( pixel, nChannels, match, g_point, &bg_model_params );
302 icvUpdateFullNoMatch( curr_frame, p, match, g_point, &bg_model_params );
306 icvUpdatePartialWindow( pixel, nChannels, match, g_point, &bg_model_params );
308 icvUpdatePartialNoMatch( pixel, nChannels, match, g_point, &bg_model_params );
310 icvGetSortKey( nChannels, sort_key, g_point, &bg_model_params );
311 icvInsertionSortGaussians( g_point, sort_key, (CvGaussBGStatModelParams *)&bg_model_params );
355 static void icvInsertionSortGaussians( CvGaussBGPoint* g_point, double* sort_key, CvGaussBGStatModelParams *bg_model_params )
358 for( i = 1; i < bg_model_params->n_gauss; i++ )
378 const CvGaussBGStatModelParams *bg_model_params )
382 for ( k = 0; k < bg_model_params->n_gauss; k++) match[k]=0;
384 for ( k = 0; k < bg_model_params->n_gauss; k++) {
392 var_threshold = bg_model_params->std_threshold*bg_model_params->std_threshold*var_threshold;
406 const CvGaussBGStatModelParams *bg_model_params )
411 for( k = 0; k < bg_model_params->n_gauss; k++ )
414 for( k = 0; k < bg_model_params->n_gauss; k++ )
423 var_threshold = bg_model_params->std_threshold*bg_model_params->std_threshold;
438 const CvGaussBGStatModelParams *bg_model_params )
440 const double learning_rate_weight = (1.0/(double)bg_model_params->win_size);
441 for(int k = 0; k < bg_model_params->n_gauss; k++){
447 (double)bg_model_params->win_size);
460 static void icvUpdatePartialWindow( double* src_pixel, int nChannels, int* match, CvGaussBGPoint* g_point, const CvGaussBGStatModelParams *bg_model_params )
465 for( k = 0; k < bg_model_params->n_gauss; k++ )
468 for( k = 0; k < bg_model_params->n_gauss; k++ )
492 const CvGaussBGStatModelParams *bg_model_params)
499 g_point->g_values[bg_model_params->n_gauss - 1].match_sum = 1;
503 for( k = 0; k < bg_model_params->n_gauss ; k++ )
506 g_point->g_values[bg_model_params->n_gauss - 1].weight = 1./(double)match_sum_total;
510 g_point->g_values[bg_model_params->n_gauss - 1].variance[m] = bg_model_params->variance_init;
511 g_point->g_values[bg_model_params->n_gauss - 1].mean[m] = (unsigned char)gm_image->imageData[p + m];
514 alpha = 1.0 - (1.0/bg_model_params->win_size);
515 for( k = 0; k < bg_model_params->n_gauss - 1; k++ )
529 const CvGaussBGStatModelParams *bg_model_params)
533 g_point->g_values[bg_model_params->n_gauss - 1].match_sum = 1;
537 for(k = 0; k < bg_model_params->n_gauss ; k++)
543 g_point->g_values[bg_model_params->n_gauss - 1].variance[m] = bg_model_params->variance_init;
544 g_point->g_values[bg_model_params->n_gauss - 1].mean[m] = pixel[m];
546 for(k = 0; k < bg_model_params->n_gauss; k++)
554 const CvGaussBGStatModelParams *bg_model_params )
557 for( k = 0; k < bg_model_params->n_gauss; k++ )