#include <legacy.hpp>
Public Member Functions | |
| RTreeClassifier () | |
| void | train (vector< BaseKeypoint > const &base_set, RNG &rng, int num_trees=RTreeClassifier::DEFAULT_TREES, int depth=RandomizedTree::DEFAULT_DEPTH, int views=RandomizedTree::DEFAULT_VIEWS, size_t reduced_num_dim=RandomizedTree::DEFAULT_REDUCED_NUM_DIM, int num_quant_bits=DEFAULT_NUM_QUANT_BITS) |
| void | train (vector< BaseKeypoint > const &base_set, RNG &rng, PatchGenerator &make_patch, int num_trees=RTreeClassifier::DEFAULT_TREES, int depth=RandomizedTree::DEFAULT_DEPTH, int views=RandomizedTree::DEFAULT_VIEWS, size_t reduced_num_dim=RandomizedTree::DEFAULT_REDUCED_NUM_DIM, int num_quant_bits=DEFAULT_NUM_QUANT_BITS) |
| void | getSignature (IplImage *patch, uchar *sig) const |
| void | getSignature (IplImage *patch, float *sig) const |
| void | getSparseSignature (IplImage *patch, float *sig, float thresh) const |
| void | getFloatSignature (IplImage *patch, float *sig) const |
| int | classes () const |
| int | original_num_classes () const |
| void | setQuantization (int num_quant_bits) |
| void | discardFloatPosteriors () |
| void | read (const char *file_name) |
| void | read (std::istream &is) |
| void | write (const char *file_name) const |
| void | write (std::ostream &os) const |
| void | saveAllFloatPosteriors (std::string file_url) |
| void | saveAllBytePosteriors (std::string file_url) |
| void | setFloatPosteriorsFromTextfile_176 (std::string url) |
| float | countZeroElements () |
Static Public Member Functions | |
| static int | countNonZeroElements (float *vec, int n, double tol=1e-10) |
| static void | safeSignatureAlloc (uchar **sig, int num_sig=1, int sig_len=176) |
| static uchar * | safeSignatureAlloc (int num_sig=1, int sig_len=176) |
Public Attributes | |
| vector< RandomizedTree > | trees_ |
Static Public Attributes | |
| static const int | DEFAULT_TREES = 48 |
| static const size_t | DEFAULT_NUM_QUANT_BITS = 4 |
| void cv::RTreeClassifier::train | ( | vector< BaseKeypoint > const & | base_set, |
| RNG & | rng, | ||
| int | num_trees = RTreeClassifier::DEFAULT_TREES, |
||
| int | depth = RandomizedTree::DEFAULT_DEPTH, |
||
| int | views = RandomizedTree::DEFAULT_VIEWS, |
||
| size_t | reduced_num_dim = RandomizedTree::DEFAULT_REDUCED_NUM_DIM, |
||
| int | num_quant_bits = DEFAULT_NUM_QUANT_BITS |
||
| ) |
| void cv::RTreeClassifier::train | ( | vector< BaseKeypoint > const & | base_set, |
| RNG & | rng, | ||
| PatchGenerator & | make_patch, | ||
| int | num_trees = RTreeClassifier::DEFAULT_TREES, |
||
| int | depth = RandomizedTree::DEFAULT_DEPTH, |
||
| int | views = RandomizedTree::DEFAULT_VIEWS, |
||
| size_t | reduced_num_dim = RandomizedTree::DEFAULT_REDUCED_NUM_DIM, |
||
| int | num_quant_bits = DEFAULT_NUM_QUANT_BITS |
||
| ) |
| void cv::RTreeClassifier::getSignature | ( | IplImage * | patch, |
| uchar * | sig | ||
| ) | const |
| void cv::RTreeClassifier::getSignature | ( | IplImage * | patch, |
| float * | sig | ||
| ) | const |
| void cv::RTreeClassifier::getSparseSignature | ( | IplImage * | patch, |
| float * | sig, | ||
| float | thresh | ||
| ) | const |
| void cv::RTreeClassifier::getFloatSignature | ( | IplImage * | patch, |
| float * | sig | ||
| ) | const |
| static int cv::RTreeClassifier::countNonZeroElements | ( | float * | vec, |
| int | n, | ||
| double | tol = 1e-10 |
||
| ) | [static] |
| static void cv::RTreeClassifier::safeSignatureAlloc | ( | uchar ** | sig, |
| int | num_sig = 1, |
||
| int | sig_len = 176 |
||
| ) | [static] |
| static uchar* cv::RTreeClassifier::safeSignatureAlloc | ( | int | num_sig = 1, |
| int | sig_len = 176 |
||
| ) | [static] |
| int cv::RTreeClassifier::classes | ( | ) | const |
| int cv::RTreeClassifier::original_num_classes | ( | ) | const |
| void cv::RTreeClassifier::setQuantization | ( | int | num_quant_bits | ) |
| void cv::RTreeClassifier::read | ( | const char * | file_name | ) |
| void cv::RTreeClassifier::read | ( | std::istream & | is | ) |
| void cv::RTreeClassifier::write | ( | const char * | file_name | ) | const |
| void cv::RTreeClassifier::write | ( | std::ostream & | os | ) | const |
| void cv::RTreeClassifier::saveAllFloatPosteriors | ( | std::string | file_url | ) |
| void cv::RTreeClassifier::saveAllBytePosteriors | ( | std::string | file_url | ) |
| void cv::RTreeClassifier::setFloatPosteriorsFromTextfile_176 | ( | std::string | url | ) |
| float cv::RTreeClassifier::countZeroElements | ( | ) |
const int cv::RTreeClassifier::DEFAULT_TREES = 48 [static] |
const size_t cv::RTreeClassifier::DEFAULT_NUM_QUANT_BITS = 4 [static] |