Lines Matching full:match
77 Return -1 if no match was found; otherwise the index in match[] is returned
82 static int icvMatchTest( double* src_pixel, int nChannels, int* match,
84 /*static int icvMatchTest2( double* src_pixel, int nChannels, int* match,
95 int* match,
99 int* match,
102 static void icvUpdatePartialWindow( double* src_pixel, int nChannels, int* match,
105 int* match,
112 static void icvBackgroundTest( const int nChannels, int n, int i, int j, int *match, CvGaussBGModel* bg_model );
127 //If there is no match the last gaussian in the list is replaced by the new gaussian
283 int match[CV_BGFG_MOG_MAX_NGAUSSIANS];
297 no_match = icvMatchTest( pixel, nChannels, match, g_point, &bg_model_params );
300 icvUpdateFullWindow( 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 );
312 icvBackgroundTest( nChannels, n, i, j, match, bg_model );
376 static int icvMatchTest( double* src_pixel, int nChannels, int* match,
382 for ( k = 0; k < bg_model_params->n_gauss; k++) match[k]=0;
394 match[k] = 1;
404 static int icvMatchTest2( double* src_pixel, int nChannels, int* match,
412 match[k] = 0;
426 match[k] = 1;
436 static void icvUpdateFullWindow( double* src_pixel, int nChannels, int* match,
443 (learning_rate_weight*((double)match[k] -
445 if(match[k]){
446 double learning_rate_gaussian = (double)match[k]/(g_point->g_values[k].weight*
460 static void icvUpdatePartialWindow( double* src_pixel, int nChannels, int* match, CvGaussBGPoint* g_point, const CvGaussBGStatModelParams *bg_model_params )
470 g_point->g_values[k].match_sum += match[k];
473 (learning_rate_weight*((double)match[k] - g_point->g_values[k].weight));
475 if( g_point->g_values[k].match_sum > 0 && match[k] )
477 double learning_rate_gaussian = (double)match[k]/((double)g_point->g_values[k].match_sum);
490 static void icvUpdateFullNoMatch( IplImage* gm_image, int p, int* match,
518 if( match[k] )
527 int* /*match*/,
575 static void icvBackgroundTest( const int nChannels, int n, int i, int j, int *match, CvGaussBGModel* bg_model )
578 uchar pixelValue = (uchar)255; // will switch to 0 if match found
588 if( match[b] )