mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
MeanshiftGrouping Bugfix (Bug #2685)
This commit is contained in:
parent
7341eaa654
commit
82a9f9a5a9
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user