Public Member Functions | Private Attributes | List of all members
alvar::FernImageDetector Class Reference

Image detector based on a Fern classifier. More...

#include <FernImageDetector.h>

Public Member Functions

 FernImageDetector (const bool visualize=false)
 
void findFeatures (Mat &image, bool planeAssumption=true)
 
cv::Mat homography ()
 
void imagePoints (vector< CvPoint2D64f > &points)
 
double inlierRatio ()
 
void modelPoints (vector< CvPoint3D64f > &points, bool normalize=true)
 
bool read (const std::string &filename, const bool binary=true)
 
cv::Size size ()
 
void train (const std::string &filename)
 
void train (Mat &image)
 
bool write (const std::string &filename, const bool binary=true)
 
 ~FernImageDetector ()
 

Private Attributes

std::vector< FernClassifierWrappermClassifier
 
cv::Mat mCorrespondences
 
cv::Mat mHomography
 
vector< cv::Point2f > mImagePoints
 
double mInlierRatio
 
vector< KeyPoint > mKeyPoints
 
LDetector mLDetector
 
vector< cv::Point2f > mModelPoints
 
std::vector< Mat > mObjects
 
PatchGenerator mPatchGenerator
 
cv::Size mSize
 
bool mVisualize
 

Detailed Description

Image detector based on a Fern classifier.

Examples:
SampleMarkerlessCreator.cpp, and SampleMarkerlessDetector.cpp.

Definition at line 77 of file FernImageDetector.h.

Constructor & Destructor Documentation

alvar::FernImageDetector::FernImageDetector ( const bool  visualize = false)

Definition at line 176 of file FernImageDetector.cpp.

alvar::FernImageDetector::~FernImageDetector ( )

Definition at line 194 of file FernImageDetector.cpp.

Member Function Documentation

void alvar::FernImageDetector::findFeatures ( Mat &  image,
bool  planeAssumption = true 
)
Examples:
SampleMarkerlessDetector.cpp.

Definition at line 286 of file FernImageDetector.cpp.

cv::Mat alvar::FernImageDetector::homography ( )

Definition at line 232 of file FernImageDetector.cpp.

void alvar::FernImageDetector::imagePoints ( vector< CvPoint2D64f > &  points)
Examples:
SampleMarkerlessDetector.cpp.

Definition at line 198 of file FernImageDetector.cpp.

double alvar::FernImageDetector::inlierRatio ( )
Examples:
SampleMarkerlessDetector.cpp.

Definition at line 237 of file FernImageDetector.cpp.

void alvar::FernImageDetector::modelPoints ( vector< CvPoint3D64f > &  points,
bool  normalize = true 
)
Examples:
SampleMarkerlessDetector.cpp.

Definition at line 206 of file FernImageDetector.cpp.

bool alvar::FernImageDetector::read ( const std::string &  filename,
const bool  binary = true 
)
Examples:
SampleMarkerlessDetector.cpp.

Definition at line 389 of file FernImageDetector.cpp.

cv::Size alvar::FernImageDetector::size ( )

Definition at line 227 of file FernImageDetector.cpp.

void alvar::FernImageDetector::train ( const std::string &  filename)
Examples:
SampleMarkerlessCreator.cpp.

Definition at line 242 of file FernImageDetector.cpp.

void alvar::FernImageDetector::train ( Mat &  image)

Definition at line 248 of file FernImageDetector.cpp.

bool alvar::FernImageDetector::write ( const std::string &  filename,
const bool  binary = true 
)
Examples:
SampleMarkerlessCreator.cpp.

Definition at line 461 of file FernImageDetector.cpp.

Member Data Documentation

std::vector<FernClassifierWrapper> alvar::FernImageDetector::mClassifier
private

Definition at line 100 of file FernImageDetector.h.

cv::Mat alvar::FernImageDetector::mCorrespondences
private

Definition at line 109 of file FernImageDetector.h.

cv::Mat alvar::FernImageDetector::mHomography
private

Definition at line 110 of file FernImageDetector.h.

vector<cv::Point2f> alvar::FernImageDetector::mImagePoints
private

Definition at line 103 of file FernImageDetector.h.

double alvar::FernImageDetector::mInlierRatio
private

Definition at line 111 of file FernImageDetector.h.

vector<KeyPoint> alvar::FernImageDetector::mKeyPoints
private

Definition at line 102 of file FernImageDetector.h.

LDetector alvar::FernImageDetector::mLDetector
private

Definition at line 99 of file FernImageDetector.h.

vector<cv::Point2f> alvar::FernImageDetector::mModelPoints
private

Definition at line 104 of file FernImageDetector.h.

std::vector<Mat> alvar::FernImageDetector::mObjects
private

Definition at line 107 of file FernImageDetector.h.

PatchGenerator alvar::FernImageDetector::mPatchGenerator
private

Definition at line 98 of file FernImageDetector.h.

cv::Size alvar::FernImageDetector::mSize
private

Definition at line 108 of file FernImageDetector.h.

bool alvar::FernImageDetector::mVisualize
private

Definition at line 106 of file FernImageDetector.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 19:27:24