OpenCV  2.4.13.7
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

§ PlanarObjectDetector() [1/3]

cv::PlanarObjectDetector::PlanarObjectDetector ( )

§ PlanarObjectDetector() [2/3]

cv::PlanarObjectDetector::PlanarObjectDetector ( const FileNode node)

§ PlanarObjectDetector() [3/3]

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() 
)

§ ~PlanarObjectDetector()

virtual cv::PlanarObjectDetector::~PlanarObjectDetector ( )
virtual

Member Function Documentation

§ getClassifier()

const FernClassifier& cv::PlanarObjectDetector::getClassifier ( ) const

§ getDetector()

const LDetector& cv::PlanarObjectDetector::getDetector ( ) const

§ getModelPoints()

vector<KeyPoint> cv::PlanarObjectDetector::getModelPoints ( ) const

§ getModelROI()

Rect cv::PlanarObjectDetector::getModelROI ( ) const

§ operator()() [1/2]

bool cv::PlanarObjectDetector::operator() ( const Mat image,
CV_OUT Mat H,
CV_OUT vector< Point2f > &  corners 
) const

§ operator()() [2/2]

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

§ read()

void cv::PlanarObjectDetector::read ( const FileNode node)

§ setVerbose()

void cv::PlanarObjectDetector::setVerbose ( bool  verbose)

§ train() [1/2]

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

§ train() [2/2]

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

§ write()

void cv::PlanarObjectDetector::write ( FileStorage fs,
const String name = String() 
) const

Member Data Documentation

§ fernClassifier

FernClassifier cv::PlanarObjectDetector::fernClassifier
protected

§ ldetector

LDetector cv::PlanarObjectDetector::ldetector
protected

§ modelPoints

vector<KeyPoint> cv::PlanarObjectDetector::modelPoints
protected

§ modelROI

Rect cv::PlanarObjectDetector::modelROI
protected

§ verbose

bool cv::PlanarObjectDetector::verbose
protected

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