Lines Matching refs:bgdGMM
361 static void initGMMs( const Mat& img, const Mat& mask, GMM& bgdGMM, GMM& fgdGMM ) in initGMMs() argument
387 bgdGMM.initLearning(); in initGMMs()
389 bgdGMM.addSample( bgdLabels.at<int>(i,0), bgdSamples[i] ); in initGMMs()
390 bgdGMM.endLearning(); in initGMMs()
401 static void assignGMMsComponents( const Mat& img, const Mat& mask, const GMM& bgdGMM, const GMM& fg… in assignGMMsComponents() argument
410 bgdGMM.whichComponent(color) : fgdGMM.whichComponent(color); in assignGMMsComponents()
418 static void learnGMMs( const Mat& img, const Mat& mask, const Mat& compIdxs, GMM& bgdGMM, GMM& fgdG… in learnGMMs() argument
420 bgdGMM.initLearning(); in learnGMMs()
432 bgdGMM.addSample( ci, img.at<Vec3b>(p) ); in learnGMMs()
439 bgdGMM.endLearning(); in learnGMMs()
446 static void constructGCGraph( const Mat& img, const Mat& mask, const GMM& bgdGMM, const GMM& fgdGMM… in constructGCGraph() argument
466 fromSource = -log( bgdGMM(color) ); in constructGCGraph()
542 GMM bgdGMM( bgdModel ), fgdGMM( fgdModel ); in grabCut() local
551 initGMMs( img, mask, bgdGMM, fgdGMM ); in grabCut()
570 assignGMMsComponents( img, mask, bgdGMM, fgdGMM, compIdxs ); in grabCut()
571 learnGMMs( img, mask, compIdxs, bgdGMM, fgdGMM ); in grabCut()
572 constructGCGraph(img, mask, bgdGMM, fgdGMM, lambda, leftW, upleftW, upW, uprightW, graph ); in grabCut()