Lines Matching full:rows
125 if (x >= frame.cols || y >= frame.rows) in mog_withoutLearning()
135 if (gmm_weight(k * frame.rows + y, x) < numeric_limits<float>::epsilon()) in mog_withoutLearning()
138 WorkT mu = gmm_mean(k * frame.rows + y, x); in mog_withoutLearning()
139 WorkT var = gmm_var(k * frame.rows + y, x); in mog_withoutLearning()
155 wsum += gmm_weight(k * frame.rows + y, x); in mog_withoutLearning()
173 dim3 grid(divUp(frame.cols, block.x), divUp(frame.rows, block.y)); in mog_withoutLearning_caller()
202 if (x >= frame.cols || y >= frame.rows) in mog_withLearning()
214 float w = gmm_weight(k * frame.rows + y, x); in mog_withLearning()
220 WorkT mu = gmm_mean(k * frame.rows + y, x); in mog_withLearning()
221 WorkT var = gmm_var(k * frame.rows + y, x); in mog_withLearning()
233 gmm_sortKey(k * frame.rows + y, x) = sortKey_prev; in mog_withLearning()
236 gmm_weight(k * frame.rows + y, x) = weight_prev; in mog_withLearning()
239 gmm_mean(k * frame.rows + y, x) = mean_prev; in mog_withLearning()
242 gmm_var(k * frame.rows + y, x) = var_prev; in mog_withLearning()
248 float sortKey_next = gmm_sortKey(k1 * frame.rows + y, x); in mog_withLearning()
249 float weight_next = gmm_weight(k1 * frame.rows + y, x); in mog_withLearning()
250 WorkT mean_next = gmm_mean(k1 * frame.rows + y, x); in mog_withLearning()
251 WorkT var_next = gmm_var(k1 * frame.rows + y, x); in mog_withLearning()
255 gmm_sortKey(k1 * frame.rows + y, x) = sortKey_prev; in mog_withLearning()
256 gmm_sortKey((k1 + 1) * frame.rows + y, x) = sortKey_next; in mog_withLearning()
258 gmm_weight(k1 * frame.rows + y, x) = weight_prev; in mog_withLearning()
259 gmm_weight((k1 + 1) * frame.rows + y, x) = weight_next; in mog_withLearning()
261 gmm_mean(k1 * frame.rows + y, x) = mean_prev; in mog_withLearning()
262 gmm_mean((k1 + 1) * frame.rows + y, x) = mean_next; in mog_withLearning()
264 gmm_var(k1 * frame.rows + y, x) = var_prev; in mog_withLearning()
265 gmm_var((k1 + 1) * frame.rows + y, x) = var_next; in mog_withLearning()
268 … sortKey_next = k1 > 0 ? gmm_sortKey((k1 - 1) * frame.rows + y, x) : 0.0f; in mog_withLearning()
271 weight_next = k1 > 0 ? gmm_weight((k1 - 1) * frame.rows + y, x) : 0.0f; in mog_withLearning()
274 … mean_next = k1 > 0 ? gmm_mean((k1 - 1) * frame.rows + y, x) : VecTraits<WorkT>::all(0.0f); in mog_withLearning()
277 … var_next = k1 > 0 ? gmm_var((k1 - 1) * frame.rows + y, x) : VecTraits<WorkT>::all(0.0f); in mog_withLearning()
290 wsum += w0 - gmm_weight(k * frame.rows + y, x); in mog_withLearning()
292 gmm_weight(k * frame.rows + y, x) = w0; in mog_withLearning()
293 gmm_mean(k * frame.rows + y, x) = pix; in mog_withLearning()
294 gmm_var(k * frame.rows + y, x) = VecTraits<WorkT>::all(var0); in mog_withLearning()
295 gmm_sortKey(k * frame.rows + y, x) = sk0; in mog_withLearning()
300 wsum += gmm_weight(k * frame.rows + y, x); in mog_withLearning()
307 float w = gmm_weight(k * frame.rows + y, x); in mog_withLearning()
310 gmm_weight(k * frame.rows + y, x) = w; in mog_withLearning()
311 gmm_sortKey(k * frame.rows + y, x) *= wscale; in mog_withLearning()
326 dim3 grid(divUp(frame.cols, block.x), divUp(frame.rows, block.y)); in mog_withLearning_caller()
371 if (x >= dst.cols || y >= dst.rows) in getBackgroundImage()
379 float weight = gmm_weight(mode * dst.rows + y, x); in getBackgroundImage()
381 WorkT mean = gmm_mean(mode * dst.rows + y, x); in getBackgroundImage()
399 dim3 grid(divUp(dst.cols, block.x), divUp(dst.rows, block.y)); in getBackgroundImage_caller()