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

#include <legacy.hpp>

Public Member Functions

 RandomizedTree ()
 
 ~RandomizedTree ()
 
void train (vector< BaseKeypoint > const &base_set, RNG &rng, int depth, int views, size_t reduced_num_dim, int num_quant_bits)
 
void train (vector< BaseKeypoint > const &base_set, RNG &rng, PatchGenerator &make_patch, int depth, int views, size_t reduced_num_dim, int num_quant_bits)
 
float * getPosterior (uchar *patch_data)
 
const float * getPosterior (uchar *patch_data) const
 
uchargetPosterior2 (uchar *patch_data)
 
const uchargetPosterior2 (uchar *patch_data) const
 
void read (const char *file_name, int num_quant_bits)
 
void read (std::istream &is, int num_quant_bits)
 
void write (const char *file_name) const
 
void write (std::ostream &os) const
 
int classes ()
 
int depth ()
 
void discardFloatPosteriors ()
 
void applyQuantization (int num_quant_bits)
 
void savePosteriors (std::string url, bool append=false)
 
void savePosteriors2 (std::string url, bool append=false)
 

Static Public Member Functions

static float GET_LOWER_QUANT_PERC ()
 
static float GET_UPPER_QUANT_PERC ()
 
static void quantizeVector (float *vec, int dim, int N, float bnds[2], int clamp_mode=0)
 
static void quantizeVector (float *src, int dim, int N, float bnds[2], uchar *dst)
 

Static Public Attributes

static const uchar PATCH_SIZE = 32
 
static const int DEFAULT_DEPTH = 9
 
static const int DEFAULT_VIEWS = 5000
 
static const size_t DEFAULT_REDUCED_NUM_DIM = 176
 

Friends

class RTreeClassifier
 

Constructor & Destructor Documentation

cv::RandomizedTree::RandomizedTree ( )
cv::RandomizedTree::~RandomizedTree ( )

Member Function Documentation

void cv::RandomizedTree::applyQuantization ( int  num_quant_bits)
inline
int cv::RandomizedTree::classes ( )
inline
int cv::RandomizedTree::depth ( )
inline
void cv::RandomizedTree::discardFloatPosteriors ( )
inline
static float cv::RandomizedTree::GET_LOWER_QUANT_PERC ( )
inlinestatic
static float cv::RandomizedTree::GET_UPPER_QUANT_PERC ( )
inlinestatic
float* cv::RandomizedTree::getPosterior ( uchar patch_data)
const float* cv::RandomizedTree::getPosterior ( uchar patch_data) const
uchar* cv::RandomizedTree::getPosterior2 ( uchar patch_data)
const uchar* cv::RandomizedTree::getPosterior2 ( uchar patch_data) const
static void cv::RandomizedTree::quantizeVector ( float *  vec,
int  dim,
int  N,
float  bnds[2],
int  clamp_mode = 0 
)
static
static void cv::RandomizedTree::quantizeVector ( float *  src,
int  dim,
int  N,
float  bnds[2],
uchar dst 
)
static
void cv::RandomizedTree::read ( const char *  file_name,
int  num_quant_bits 
)
void cv::RandomizedTree::read ( std::istream &  is,
int  num_quant_bits 
)
void cv::RandomizedTree::savePosteriors ( std::string  url,
bool  append = false 
)
void cv::RandomizedTree::savePosteriors2 ( std::string  url,
bool  append = false 
)
void cv::RandomizedTree::train ( vector< BaseKeypoint > const &  base_set,
RNG rng,
int  depth,
int  views,
size_t  reduced_num_dim,
int  num_quant_bits 
)
void cv::RandomizedTree::train ( vector< BaseKeypoint > const &  base_set,
RNG rng,
PatchGenerator make_patch,
int  depth,
int  views,
size_t  reduced_num_dim,
int  num_quant_bits 
)
void cv::RandomizedTree::write ( const char *  file_name) const
void cv::RandomizedTree::write ( std::ostream &  os) const

Friends And Related Function Documentation

friend class RTreeClassifier
friend

Member Data Documentation

const int cv::RandomizedTree::DEFAULT_DEPTH = 9
static
const size_t cv::RandomizedTree::DEFAULT_REDUCED_NUM_DIM = 176
static
const int cv::RandomizedTree::DEFAULT_VIEWS = 5000
static
const uchar cv::RandomizedTree::PATCH_SIZE = 32
static

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