Lines Matching refs:nmixtures
135 nmixtures = defaultNMixtures2;
160 nmixtures = defaultNMixtures2;
191 CV_Assert( nmixtures <= 255);
196 kernel_getBg.create("getBackgroundImage2_kernel", ocl::video::bgfg_mog2_oclsrc, format( "-D CN=%d -D NMIXTURES=%d", nchannels, nmixtures));
205 u_weight.create(frameSize.height * nmixtures, frameSize.width, CV_32FC1);
208 u_variance.create(frameSize.height * nmixtures, frameSize.width, CV_32FC1);
213 u_mean.create(frameSize.height * nmixtures, frameSize.width, CV_32FC(nchannels)); //4 channels
226 bgmodel.create( 1, frameSize.height*frameSize.width*nmixtures*(2 + nchannels), CV_32F );
236 virtual int getNMixtures() const { return nmixtures; }
237 virtual void setNMixtures(int nmix) { nmixtures = nmix; }
283 << "nmixtures" << nmixtures
300 nmixtures = (int)fn["nmixtures"];
333 int nmixtures;
538 nmixtures = _nmixtures;
568 float* mean = mean0 + ncols*nmixtures*nchannels*y;
569 GMM* gmm = gmm0 + ncols*nmixtures*y;
573 for( int x = 0; x < ncols; x++, data += nchannels, gmm += nmixtures, mean += nmixtures*nchannels )
693 int mode = nmodes == nmixtures ? nmixtures-1 : nmodes++;
742 int nmixtures;
818 String opts = format("-D CN=%d -D NMIXTURES=%d%s", nchannels, nmixtures, bShadowDetection ? " -D SHADOW_DETECT" : "");
848 (float*)(bgmodel.ptr() + sizeof(GMM)*nmixtures*image.rows*image.cols),
849 bgmodelUsedModes.ptr(), nmixtures, (float)learningRate,
872 const float* mean = reinterpret_cast<const float*>(gmm + frameSize.width*frameSize.height*nmixtures);
906 firstGaussianIdx += nmixtures;