mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Fixed most clang -Wextra-semi warnings
This commit is contained in:
@@ -43,7 +43,7 @@ class FastX : public cv::Feature2D
|
||||
|
||||
public:
|
||||
FastX(const Parameters &config = Parameters());
|
||||
virtual ~FastX(){};
|
||||
virtual ~FastX(){}
|
||||
|
||||
void reconfigure(const Parameters ¶);
|
||||
|
||||
@@ -74,8 +74,8 @@ class FastX : public cv::Feature2D
|
||||
std::vector<std::vector<float> > calcAngles(const std::vector<cv::Mat> &rotated_images,
|
||||
std::vector<cv::KeyPoint> &keypoints)const;
|
||||
// define pure virtual methods
|
||||
virtual int descriptorSize()const override{return 0;};
|
||||
virtual int descriptorType()const override{return 0;};
|
||||
virtual int descriptorSize()const override{return 0;}
|
||||
virtual int descriptorType()const override{return 0;}
|
||||
virtual void operator()( cv::InputArray image, cv::InputArray mask, std::vector<cv::KeyPoint>& keypoints, cv::OutputArray descriptors, bool useProvidedKeypoints=false )const
|
||||
{
|
||||
descriptors.clear();
|
||||
@@ -620,10 +620,10 @@ class Chessboard: public cv::Feature2D
|
||||
*/
|
||||
void swap(Chessboard::Board &other);
|
||||
|
||||
bool operator==(const Chessboard::Board& other) const {return rows*cols == other.rows*other.cols;};
|
||||
bool operator< (const Chessboard::Board& other) const {return rows*cols < other.rows*other.cols;};
|
||||
bool operator> (const Chessboard::Board& other) const {return rows*cols > other.rows*other.cols;};
|
||||
bool operator>= (const cv::Size& size)const { return rows*cols >= size.width*size.height; };
|
||||
bool operator==(const Chessboard::Board& other) const {return rows*cols == other.rows*other.cols;}
|
||||
bool operator< (const Chessboard::Board& other) const {return rows*cols < other.rows*other.cols;}
|
||||
bool operator> (const Chessboard::Board& other) const {return rows*cols > other.rows*other.cols;}
|
||||
bool operator>= (const cv::Size& size)const { return rows*cols >= size.width*size.height; }
|
||||
|
||||
/**
|
||||
* \brief Returns a specific corner
|
||||
@@ -824,8 +824,8 @@ class Chessboard: public cv::Feature2D
|
||||
Chessboard::Board detectImpl(const cv::Mat& image,std::vector<cv::Mat> &feature_maps,const cv::Mat& mask)const;
|
||||
|
||||
// define pure virtual methods
|
||||
virtual int descriptorSize()const override{return 0;};
|
||||
virtual int descriptorType()const override{return 0;};
|
||||
virtual int descriptorSize()const override{return 0;}
|
||||
virtual int descriptorType()const override{return 0;}
|
||||
virtual void operator()( cv::InputArray image, cv::InputArray mask, std::vector<cv::KeyPoint>& keypoints, cv::OutputArray descriptors, bool useProvidedKeypoints=false )const
|
||||
{
|
||||
descriptors.clear();
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
int estimateModelNonMinimalSample(const std::vector<int> &sample, int sample_size,
|
||||
std::vector<Mat> &models, const std::vector<double> &weights) const override {
|
||||
return non_min_solver->estimate (sample, sample_size, models, weights);
|
||||
};
|
||||
}
|
||||
int getMaxNumSolutions () const override {
|
||||
return min_solver->getMaxNumberOfSolutions();
|
||||
}
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
int estimateModelNonMinimalSample(const std::vector<int> &sample, int sample_size,
|
||||
std::vector<Mat> &models, const std::vector<double> &weights) const override {
|
||||
return non_min_solver->estimate(sample, sample_size, models, weights);
|
||||
};
|
||||
}
|
||||
int getMaxNumSolutions () const override {
|
||||
return min_solver->getMaxNumberOfSolutions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user