Home | History | Annotate | Download | only in src

Lines Matching refs:pixel

51  "Efficient Adaptive Density Estimation per Image Pixel for the Task of Background Subtraction"
137 // for each sample of 3 speed pixel models each pixel bg model we store ...
222 //and that is Tb=2*2*10*10 =400; where we take typical pixel level sigma=10
234 // Tau - shadow threshold. The shadow is detected if the pixel is darker
236 //Tau= 0.5 means that if pixel is more than 2 times darker then it is not shadow
243 Mat bgmodel; // model data pixel values
257 _cvUpdatePixelBackgroundNP( long pixel,const uchar* data, int nchannels, int m_nN,
276 long offsetLong = ndata * (pixel * m_nN * 3 + m_aModelIndexLong[pixel] + m_nN * 2);
277 long offsetMid = ndata * (pixel * m_nN * 3 + m_aModelIndexMid[pixel] + m_nN * 1);
278 long offsetShort = ndata * (pixel * m_nN * 3 + m_aModelIndexShort[pixel]);
281 if (m_nNextLongUpdate[pixel] == m_nLongCounter)
283 // add the oldest pixel from Mid to the list of values (for each color)
286 m_aModelIndexLong[pixel] = (m_aModelIndexLong[pixel] >= (m_nN-1)) ? 0 : (m_aModelIndexLong[pixel] + 1);
290 //m_nNextLongUpdate[pixel] = (uchar)(((m_nLongUpdate)*(rand()-1))/RAND_MAX);//0,...m_nLongUpdate-1;
291 m_nNextLongUpdate[pixel] = (uchar)( rand() % m_nLongUpdate );//0,...m_nLongUpdate-1;
295 if (m_nNextMidUpdate[pixel] == m_nMidCounter)
297 // add this pixel to the list of values (for each color)
300 m_aModelIndexMid[pixel] = (m_aModelIndexMid[pixel] >= (m_nN-1)) ? 0 : (m_aModelIndexMid[pixel] + 1);
304 m_nNextMidUpdate[pixel] = (uchar)( rand() % m_nMidUpdate );
308 if (m_nNextShortUpdate[pixel] == m_nShortCounter)
310 // add this pixel to the list of values (for each color)
315 m_aModelIndexShort[pixel] = (m_aModelIndexShort[pixel] >= (m_nN-1)) ? 0 : (m_aModelIndexShort[pixel] + 1);
319 m_nNextShortUpdate[pixel] = (uchar)( rand() % m_nShortUpdate );
324 _cvCheckPixelBackgroundNP(long pixel,
334 int Pbf = 0; // the total probability that this pixel is background
339 include=0;//do we include this pixel into background model?
342 long posPixel = pixel * ndata * m_nN * 3;
344 // now increase the probability for each pixel
392 int Ps = 0; // the total probability that this pixel is background shadow