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 < FernClassifierWrapper > | mClassifier |
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 |
Image detector based on a Fern classifier.
Definition at line 77 of file FernImageDetector.h.
alvar::FernImageDetector::FernImageDetector | ( | const bool | visualize = false | ) |
Definition at line 176 of file FernImageDetector.cpp.
Definition at line 194 of file FernImageDetector.cpp.
void alvar::FernImageDetector::findFeatures | ( | Mat & | image, |
bool | planeAssumption = true |
||
) |
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 | ) |
Definition at line 198 of file FernImageDetector.cpp.
double alvar::FernImageDetector::inlierRatio | ( | ) |
Definition at line 237 of file FernImageDetector.cpp.
void alvar::FernImageDetector::modelPoints | ( | vector< CvPoint3D64f > & | points, |
bool | normalize = true |
||
) |
Definition at line 206 of file FernImageDetector.cpp.
bool alvar::FernImageDetector::read | ( | const std::string & | filename, |
const bool | binary = true |
||
) |
Definition at line 389 of file FernImageDetector.cpp.
cv::Size alvar::FernImageDetector::size | ( | void | ) |
Definition at line 227 of file FernImageDetector.cpp.
void alvar::FernImageDetector::train | ( | const std::string & | filename | ) |
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 |
||
) |
Definition at line 461 of file FernImageDetector.cpp.
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.