OpenCV  2.4.13
Open Source Computer Vision
cv::PlanarObjectDetector Class Reference

#include <legacy.hpp>

Public Member Functions

 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< KeyPointgetModelPoints () const
 
const LDetectorgetDetector () const
 
const FernClassifiergetClassifier () 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 Attributes

bool verbose
 
Rect modelROI
 
vector< KeyPointmodelPoints
 
LDetector ldetector
 
FernClassifier fernClassifier
 

Constructor & Destructor Documentation

cv::PlanarObjectDetector::PlanarObjectDetector ( )
cv::PlanarObjectDetector::PlanarObjectDetector ( const FileNode node)
cv::PlanarObjectDetector::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 cv::PlanarObjectDetector::~PlanarObjectDetector ( )
virtual

Member Function Documentation

const FernClassifier& cv::PlanarObjectDetector::getClassifier ( ) const
const LDetector& cv::PlanarObjectDetector::getDetector ( ) const
vector<KeyPoint> cv::PlanarObjectDetector::getModelPoints ( ) const
Rect cv::PlanarObjectDetector::getModelROI ( ) const
bool cv::PlanarObjectDetector::operator() ( const Mat image,
CV_OUT Mat H,
CV_OUT vector< Point2f > &  corners 
) const
bool cv::PlanarObjectDetector::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
void cv::PlanarObjectDetector::read ( const FileNode node)
void cv::PlanarObjectDetector::setVerbose ( bool  verbose)
virtual void cv::PlanarObjectDetector::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
virtual void cv::PlanarObjectDetector::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() 
)
virtual
void cv::PlanarObjectDetector::write ( FileStorage fs,
const String name = String() 
) const

Member Data Documentation

FernClassifier cv::PlanarObjectDetector::fernClassifier
protected
LDetector cv::PlanarObjectDetector::ldetector
protected
vector<KeyPoint> cv::PlanarObjectDetector::modelPoints
protected
Rect cv::PlanarObjectDetector::modelROI
protected
bool cv::PlanarObjectDetector::verbose
protected

The documentation for this class was generated from the following file: