Home | History | Annotate | Download | only in src

Lines Matching refs:GMM

451 struct GMM
462 const GMM* gmm, const float* mean,
470 GMM g = gmm[mode];
507 //update GMM - the base update function performed per pixel
525 GMM* _gmm, float* _mean,
569 GMM* gmm = gmm0 + ncols*nmixtures*y;
573 for( int x = 0; x < ncols; x++, data += nchannels, gmm += nmixtures, mean += nmixtures*nchannels )
580 bool fitsPDF = false;//if it remains zero a new GMM mode will be added
581 int nmodes = modesUsed[x], nNewModes = nmodes;//current number of modes in GMM
590 float weight = alpha1*gmm[mode].weight + prune;//need only weight if fit is found
597 float var = gmm[mode].variance;
645 gmm[mode].variance = varnew;
653 if( weight < gmm[i-1].weight )
658 std::swap(gmm[i], gmm[i-1]);
674 gmm[mode-swap_count].weight = weight;//update weight by the calculated value
684 gmm[mode].weight *= totalWeight;
696 gmm[mode].weight = 1.f;
699 gmm[mode].weight = alphaT;
703 gmm[i].weight *= alpha1;
710 gmm[mode].variance = varInit;
717 if( alphaT < gmm[i-1].weight )
721 std::swap(gmm[i], gmm[i-1]);
730 detectShadows && detectShadowGMM(data, nchannels, nmodes, gmm, mean, Tb, TB, tau) ?
738 GMM* gmm0;
847 bgmodel.ptr<GMM>(),
848 (float*)(bgmodel.ptr() + sizeof(GMM)*nmixtures*image.rows*image.cols),
871 const GMM* gmm = bgmodel.ptr<GMM>();
872 const float* mean = reinterpret_cast<const float*>(gmm + frameSize.width*frameSize.height*nmixtures);
882 GMM gaussian = gmm[gaussianIdx];