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