MeanshiftGrouping Bugfix (Bug #2685)
authorSiegfried Hochdorfer <hochdorfer@inmach.de>
Thu, 17 Jan 2013 10:46:24 +0000 (11:46 +0100)
committerSiegfried Hochdorfer <hochdorfer@inmach.de>
Thu, 17 Jan 2013 10:46:24 +0000 (11:46 +0100)
modules/objdetect/src/cascadedetect.cpp

index 38c2e0a..1702678 100644 (file)
@@ -237,7 +237,7 @@ class MeanshiftGrouping
 {
 public:
     MeanshiftGrouping(const Point3d& densKer, const vector<Point3d>& posV,
-        const vector<double>& wV, double, int maxIter = 20)
+        const vector<double>& wV, double eps, int maxIter = 20)
     {
         densityKernel = densKer;
         weightsV = wV;
@@ -246,6 +246,7 @@ public:
         meanshiftV.resize(positionsCount);
         distanceV.resize(positionsCount);
         iterMax = maxIter;
+       modeEps = eps;
 
         for (unsigned i = 0; i<positionsV.size(); i++)
         {