OpenCV  2.4.13
Open Source Computer Vision
cv::RTreeClassifier Class Reference

#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 ucharsafeSignatureAlloc (int num_sig=1, int sig_len=176)
 

Public Attributes

vector< RandomizedTreetrees_
 

Static Public Attributes

static const int DEFAULT_TREES = 48
 
static const size_t DEFAULT_NUM_QUANT_BITS = 4
 

Constructor & Destructor Documentation

cv::RTreeClassifier::RTreeClassifier ( )

Member Function Documentation

int cv::RTreeClassifier::classes ( ) const
inline
static int cv::RTreeClassifier::countNonZeroElements ( float *  vec,
int  n,
double  tol = 1e-10 
)
static
float cv::RTreeClassifier::countZeroElements ( )
void cv::RTreeClassifier::discardFloatPosteriors ( )
void cv::RTreeClassifier::getFloatSignature ( IplImage patch,
float *  sig 
) const
inline
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
int cv::RTreeClassifier::original_num_classes ( ) const
inline
void cv::RTreeClassifier::read ( const char *  file_name)
void cv::RTreeClassifier::read ( std::istream &  is)
static void cv::RTreeClassifier::safeSignatureAlloc ( uchar **  sig,
int  num_sig = 1,
int  sig_len = 176 
)
inlinestatic
static uchar* cv::RTreeClassifier::safeSignatureAlloc ( int  num_sig = 1,
int  sig_len = 176 
)
inlinestatic
void cv::RTreeClassifier::saveAllBytePosteriors ( std::string  file_url)
void cv::RTreeClassifier::saveAllFloatPosteriors ( std::string  file_url)
void cv::RTreeClassifier::setFloatPosteriorsFromTextfile_176 ( std::string  url)
void cv::RTreeClassifier::setQuantization ( int  num_quant_bits)
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::write ( const char *  file_name) const
void cv::RTreeClassifier::write ( std::ostream &  os) const

Member Data Documentation

const size_t cv::RTreeClassifier::DEFAULT_NUM_QUANT_BITS = 4
static
const int cv::RTreeClassifier::DEFAULT_TREES = 48
static
vector<RandomizedTree> cv::RTreeClassifier::trees_

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