24 #ifndef FERNIMAGEDETECTOR_H 25 #define FERNIMAGEDETECTOR_H 58 const vector<Mat> &referenceImages,
59 const vector<vector<int> > &labels = vector<vector<int> >(),
62 int _signatureSize = DEFAULT_SIGNATURE_SIZE,
63 int _nstructs = DEFAULT_STRUCTS,
64 int _structSize = DEFAULT_STRUCT_SIZE,
65 int _nviews = DEFAULT_VIEWS,
66 int _compressionMethod = COMPRESSION_NONE,
67 const PatchGenerator &patchGenerator = PatchGenerator());
70 virtual void readBinary(std::fstream &stream);
71 virtual void writeBinary(std::fstream &stream)
const;
83 void imagePoints(vector<CvPoint2D64f> &points);
84 void modelPoints(vector<CvPoint3D64f> &points,
bool normalize =
true);
90 void train(
const std::string &
filename);
91 void train(Mat &
image);
92 void findFeatures(Mat &image,
bool planeAssumption =
true);
94 bool read(
const std::string &filename,
const bool binary =
true);
95 bool write(
const std::string &filename,
const bool binary =
true);
This file implements a camera used for projecting points and computing homographies.
std::vector< Mat > mObjects
Image detector based on a Fern classifier.
std::vector< FernClassifierWrapper > mClassifier
TFSIMD_FORCE_INLINE Vector3 & normalize()
vector< cv::Point2f > mModelPoints
vector< KeyPoint > mKeyPoints
PatchGenerator mPatchGenerator
This file implements a collection of External Container (EC) versions of many ALVAR classes...
vector< cv::Point2f > mImagePoints
FernClassifier subclass that implements binary reading and writting.