deleted excess semicolons, commas

This commit is contained in:
Ilya Lavrenov
2014-01-18 01:30:29 +04:00
parent e965f3d3d4
commit 37789f015a
68 changed files with 442 additions and 413 deletions

View File

@@ -112,7 +112,7 @@ protected:
struct Stump
{
Stump() {};
Stump() { }
Stump(int _featureIdx, float _threshold, float _left, float _right)
: featureIdx(_featureIdx), threshold(_threshold), left(_left), right(_right) {}

View File

@@ -83,7 +83,7 @@ public:
//Constructor
ERFilterNM();
//Destructor
~ERFilterNM() {};
~ERFilterNM() {}
float minProbability;
bool nonMaxSuppression;
@@ -146,7 +146,7 @@ public:
//Constructor
ERClassifierNM1(const std::string& filename);
// Destructor
~ERClassifierNM1() {};
~ERClassifierNM1() {}
// The classifier must return probability measure for the region.
double eval(const ERStat& stat);
@@ -162,7 +162,7 @@ public:
//constructor
ERClassifierNM2(const std::string& filename);
// Destructor
~ERClassifierNM2() {};
~ERClassifierNM2() {}
// The classifier must return probability measure for the region.
double eval(const ERStat& stat);
@@ -933,14 +933,14 @@ ERStat* ERFilterNM::er_tree_nonmax_suppression ( ERStat * stat, ERStat *parent,
void ERFilterNM::setCallback(const Ptr<ERFilter::Callback>& cb)
{
classifier = cb;
};
}
void ERFilterNM::setMinArea(float _minArea)
{
CV_Assert( (_minArea >= 0) && (_minArea < maxArea) );
minArea = _minArea;
return;
};
}
void ERFilterNM::setMaxArea(float _maxArea)
{
@@ -948,39 +948,39 @@ void ERFilterNM::setMaxArea(float _maxArea)
CV_Assert(minArea < _maxArea);
maxArea = _maxArea;
return;
};
}
void ERFilterNM::setThresholdDelta(int _thresholdDelta)
{
CV_Assert( (_thresholdDelta > 0) && (_thresholdDelta <= 128) );
thresholdDelta = _thresholdDelta;
return;
};
}
void ERFilterNM::setMinProbability(float _minProbability)
{
CV_Assert( (_minProbability >= 0.0) && (_minProbability <= 1.0) );
minProbability = _minProbability;
return;
};
}
void ERFilterNM::setMinProbabilityDiff(float _minProbabilityDiff)
{
CV_Assert( (_minProbabilityDiff >= 0.0) && (_minProbabilityDiff <= 1.0) );
minProbabilityDiff = _minProbabilityDiff;
return;
};
}
void ERFilterNM::setNonMaxSuppression(bool _nonMaxSuppression)
{
nonMaxSuppression = _nonMaxSuppression;
return;
};
}
int ERFilterNM::getNumRejected()
{
return num_rejected_regions;
};
}
@@ -993,7 +993,7 @@ ERClassifierNM1::ERClassifierNM1(const std::string& filename)
boost.load( filename.c_str(), "boost" );
else
CV_Error(CV_StsBadArg, "Default classifier file not found!");
};
}
double ERClassifierNM1::eval(const ERStat& stat)
{
@@ -1009,7 +1009,7 @@ double ERClassifierNM1::eval(const ERStat& stat)
// Logistic Correction returns a probability value (in the range(0,1))
return (double)1-(double)1/(1+exp(-2*votes));
};
}
// load default 2nd stage classifier if found
@@ -1019,7 +1019,7 @@ ERClassifierNM2::ERClassifierNM2(const std::string& filename)
boost.load( filename.c_str(), "boost" );
else
CV_Error(CV_StsBadArg, "Default classifier file not found!");
};
}
double ERClassifierNM2::eval(const ERStat& stat)
{
@@ -1036,7 +1036,7 @@ double ERClassifierNM2::eval(const ERStat& stat)
// Logistic Correction returns a probability value (in the range(0,1))
return (double)1-(double)1/(1+exp(-2*votes));
};
}
/*!
@@ -2164,7 +2164,7 @@ public:
unsigned char metric_;
/// Constructor.
MaxMeaningfulClustering(unsigned char method, unsigned char metric){ method_=method; metric_=metric; };
MaxMeaningfulClustering(unsigned char method, unsigned char metric){ method_=method; metric_=metric; }
void operator()(double *data, unsigned int num, int dim, unsigned char method,
unsigned char metric, vector< vector<int> > *meaningful_clusters);