MeanshiftGrouping Bugfix (Bug #2685)

This commit is contained in:
Siegfried Hochdorfer 2013-01-17 11:46:24 +01:00
parent 7341eaa654
commit 82a9f9a5a9

View 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++)
{