mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
dpm: apply CV_OVERRIDE/CV_FINAL
This commit is contained in:
@@ -141,7 +141,7 @@ class ParalComputeRootPCAScores : public ParallelLoopBody
|
|||||||
int dim, std::vector< Mat > &scores);
|
int dim, std::vector< Mat > &scores);
|
||||||
|
|
||||||
// parallel loop body
|
// parallel loop body
|
||||||
void operator() (const Range &range) const;
|
void operator() (const Range &range) const CV_OVERRIDE;
|
||||||
|
|
||||||
ParalComputeRootPCAScores(const ParalComputeRootPCAScores &pComp);
|
ParalComputeRootPCAScores(const ParalComputeRootPCAScores &pComp);
|
||||||
|
|
||||||
|
@@ -49,19 +49,19 @@ namespace cv
|
|||||||
namespace dpm
|
namespace dpm
|
||||||
{
|
{
|
||||||
|
|
||||||
class DPMDetectorImpl : public DPMDetector
|
class DPMDetectorImpl CV_FINAL : public DPMDetector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DPMDetectorImpl( const vector<string>& filenames, const vector<string>& classNames=vector<string>() );
|
DPMDetectorImpl( const vector<string>& filenames, const vector<string>& classNames=vector<string>() );
|
||||||
~DPMDetectorImpl();
|
~DPMDetectorImpl() CV_OVERRIDE;
|
||||||
|
|
||||||
bool isEmpty() const;
|
bool isEmpty() const CV_OVERRIDE;
|
||||||
|
|
||||||
void detect(Mat &image, CV_OUT vector<ObjectDetection>& objects);
|
void detect(Mat &image, CV_OUT vector<ObjectDetection>& objects) CV_OVERRIDE;
|
||||||
|
|
||||||
const vector<string>& getClassNames() const;
|
const vector<string>& getClassNames() const CV_OVERRIDE;
|
||||||
size_t getClassCount() const;
|
size_t getClassCount() const CV_OVERRIDE;
|
||||||
string extractModelName( const string& filename );
|
string extractModelName( const string& filename );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -153,7 +153,7 @@ class ParalComputePyramid : public ParallelLoopBody
|
|||||||
void initialize();
|
void initialize();
|
||||||
|
|
||||||
// parallel loop body
|
// parallel loop body
|
||||||
void operator() (const Range &range) const;
|
void operator() (const Range &range) const CV_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// image to compute feature pyramid
|
// image to compute feature pyramid
|
||||||
|
@@ -130,11 +130,11 @@ class CascadeModel : public Model
|
|||||||
std::vector< Mat > partPCAFilters;
|
std::vector< Mat > partPCAFilters;
|
||||||
public:
|
public:
|
||||||
CascadeModel() {}
|
CascadeModel() {}
|
||||||
~CascadeModel() {}
|
~CascadeModel() CV_OVERRIDE {}
|
||||||
|
|
||||||
void initModel();
|
void initModel() CV_OVERRIDE;
|
||||||
bool serialize(const std::string &filename) const;
|
bool serialize(const std::string &filename) const CV_OVERRIDE;
|
||||||
bool deserialize(const std::string &filename);
|
bool deserialize(const std::string &filename) CV_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace lsvm
|
} // namespace lsvm
|
||||||
|
Reference in New Issue
Block a user