MeanshiftGrouping Bugfix (Bug #2685)

pull/305/head
Siegfried Hochdorfer 12 years ago
parent 7341eaa654
commit 82a9f9a5a9
  1. 3
      modules/objdetect/src/cascadedetect.cpp

@ -237,7 +237,7 @@ class MeanshiftGrouping
{ {
public: public:
MeanshiftGrouping(const Point3d& densKer, const vector<Point3d>& posV, 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; densityKernel = densKer;
weightsV = wV; weightsV = wV;
@ -246,6 +246,7 @@ public:
meanshiftV.resize(positionsCount); meanshiftV.resize(positionsCount);
distanceV.resize(positionsCount); distanceV.resize(positionsCount);
iterMax = maxIter; iterMax = maxIter;
modeEps = eps;
for (unsigned i = 0; i<positionsV.size(); i++) for (unsigned i = 0; i<positionsV.size(); i++)
{ {

Loading…
Cancel
Save