[opencv] 06/71: Fixed BackgroundSubstractorMOG2 ocl implementation.

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Mon Oct 17 20:16:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 2.4.13.1
in repository opencv.

commit 2717ba735a896d45b99a4e1143354bea19c394f7
Author: Gilles Rochefort <gilles at placemeter.com>
Date:   Fri Jun 3 11:00:31 2016 +0200

    Fixed BackgroundSubstractorMOG2 ocl implementation.
---
 modules/ocl/src/opencl/bgfg_mog.cl | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/ocl/src/opencl/bgfg_mog.cl b/modules/ocl/src/opencl/bgfg_mog.cl
index a3c2619..f18a115 100644
--- a/modules/ocl/src/opencl/bgfg_mog.cl
+++ b/modules/ocl/src/opencl/bgfg_mog.cl
@@ -369,7 +369,6 @@ __kernel void mog2_kernel(__global T_FRAME * frame, __global int* fgmask, __glob
         bool fitsPDF = false; //if it remains zero a new GMM mode will be added
 
         int nmodes = modesUsed[y * modesUsed_step + x];
-        int nNewModes = nmodes; //current number of modes in GMM
 
         float totalWeight = 0.0f;
 
@@ -430,8 +429,6 @@ __kernel void mog2_kernel(__global T_FRAME * frame, __global int* fgmask, __glob
         for (int mode = 0; mode < nmodes; ++mode)
             weight[(mode * frame_row + y) * weight_step + x] *= totalWeight;
 
-        nmodes = nNewModes;
-
         if (!fitsPDF)
         {
             int mode = nmodes == (NMIXTURES) ? (NMIXTURES) - 1 : nmodes++;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list