Moved PlanarObjectDetector to the objdetect module
This commit is contained in:
@@ -577,54 +577,6 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class CV_EXPORTS PlanarObjectDetector
|
||||
{
|
||||
public:
|
||||
PlanarObjectDetector();
|
||||
PlanarObjectDetector(const FileNode& node);
|
||||
PlanarObjectDetector(const vector<Mat>& pyr, int _npoints=300,
|
||||
int _patchSize=FernClassifier::PATCH_SIZE,
|
||||
int _nstructs=FernClassifier::DEFAULT_STRUCTS,
|
||||
int _structSize=FernClassifier::DEFAULT_STRUCT_SIZE,
|
||||
int _nviews=FernClassifier::DEFAULT_VIEWS,
|
||||
const LDetector& detector=LDetector(),
|
||||
const PatchGenerator& patchGenerator=PatchGenerator());
|
||||
virtual ~PlanarObjectDetector();
|
||||
virtual void train(const vector<Mat>& pyr, int _npoints=300,
|
||||
int _patchSize=FernClassifier::PATCH_SIZE,
|
||||
int _nstructs=FernClassifier::DEFAULT_STRUCTS,
|
||||
int _structSize=FernClassifier::DEFAULT_STRUCT_SIZE,
|
||||
int _nviews=FernClassifier::DEFAULT_VIEWS,
|
||||
const LDetector& detector=LDetector(),
|
||||
const PatchGenerator& patchGenerator=PatchGenerator());
|
||||
virtual void train(const vector<Mat>& pyr, const vector<KeyPoint>& keypoints,
|
||||
int _patchSize=FernClassifier::PATCH_SIZE,
|
||||
int _nstructs=FernClassifier::DEFAULT_STRUCTS,
|
||||
int _structSize=FernClassifier::DEFAULT_STRUCT_SIZE,
|
||||
int _nviews=FernClassifier::DEFAULT_VIEWS,
|
||||
const LDetector& detector=LDetector(),
|
||||
const PatchGenerator& patchGenerator=PatchGenerator());
|
||||
Rect getModelROI() const;
|
||||
vector<KeyPoint> getModelPoints() const;
|
||||
const LDetector& getDetector() const;
|
||||
const FernClassifier& getClassifier() const;
|
||||
void setVerbose(bool verbose);
|
||||
|
||||
void read(const FileNode& node);
|
||||
void write(FileStorage& fs, const String& name=String()) const;
|
||||
bool operator()(const Mat& image, CV_OUT Mat& H, CV_OUT vector<Point2f>& corners) const;
|
||||
bool operator()(const vector<Mat>& pyr, const vector<KeyPoint>& keypoints,
|
||||
CV_OUT Mat& H, CV_OUT vector<Point2f>& corners,
|
||||
CV_OUT vector<int>* pairs=0) const;
|
||||
|
||||
protected:
|
||||
bool verbose;
|
||||
Rect modelROI;
|
||||
vector<KeyPoint> modelPoints;
|
||||
LDetector ldetector;
|
||||
FernClassifier fernClassifier;
|
||||
};
|
||||
|
||||
/****************************************************************************************\
|
||||
* Calonder Classifier *
|
||||
\****************************************************************************************/
|
||||
|
Reference in New Issue
Block a user