OpenCV  2.4.13.7
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

§ RandomizedTree()

cv::RandomizedTree::RandomizedTree ( )

§ ~RandomizedTree()

cv::RandomizedTree::~RandomizedTree ( )

Member Function Documentation

§ applyQuantization()

void cv::RandomizedTree::applyQuantization ( int  num_quant_bits)
inline

§ classes()

int cv::RandomizedTree::classes ( )
inline

§ depth()

int cv::RandomizedTree::depth ( )
inline

§ discardFloatPosteriors()

void cv::RandomizedTree::discardFloatPosteriors ( )
inline

§ GET_LOWER_QUANT_PERC()

static float cv::RandomizedTree::GET_LOWER_QUANT_PERC ( )
inlinestatic

§ GET_UPPER_QUANT_PERC()

static float cv::RandomizedTree::GET_UPPER_QUANT_PERC ( )
inlinestatic

§ getPosterior() [1/2]

float* cv::RandomizedTree::getPosterior ( uchar patch_data)

§ getPosterior() [2/2]

const float* cv::RandomizedTree::getPosterior ( uchar patch_data) const

§ getPosterior2() [1/2]

uchar* cv::RandomizedTree::getPosterior2 ( uchar patch_data)

§ getPosterior2() [2/2]

const uchar* cv::RandomizedTree::getPosterior2 ( uchar patch_data) const

§ quantizeVector() [1/2]

static void cv::RandomizedTree::quantizeVector ( float *  vec,
int  dim,
int  N,
float  bnds[2],
int  clamp_mode = 0 
)
static

§ quantizeVector() [2/2]

static void cv::RandomizedTree::quantizeVector ( float *  src,
int  dim,
int  N,
float  bnds[2],
uchar dst 
)
static

§ read() [1/2]

void cv::RandomizedTree::read ( const char *  file_name,
int  num_quant_bits 
)

§ read() [2/2]

void cv::RandomizedTree::read ( std::istream &  is,
int  num_quant_bits 
)

§ savePosteriors()

void cv::RandomizedTree::savePosteriors ( std::string  url,
bool  append = false 
)

§ savePosteriors2()

void cv::RandomizedTree::savePosteriors2 ( std::string  url,
bool  append = false 
)

§ train() [1/2]

void cv::RandomizedTree::train ( vector< BaseKeypoint > const &  base_set,
RNG rng,
int  depth,
int  views,
size_t  reduced_num_dim,
int  num_quant_bits 
)

§ train() [2/2]

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 
)

§ write() [1/2]

void cv::RandomizedTree::write ( const char *  file_name) const

§ write() [2/2]

void cv::RandomizedTree::write ( std::ostream &  os) const

Friends And Related Function Documentation

§ RTreeClassifier

friend class RTreeClassifier
friend

Member Data Documentation

§ DEFAULT_DEPTH

const int cv::RandomizedTree::DEFAULT_DEPTH = 9
static

§ DEFAULT_REDUCED_NUM_DIM

const size_t cv::RandomizedTree::DEFAULT_REDUCED_NUM_DIM = 176
static

§ DEFAULT_VIEWS

const int cv::RandomizedTree::DEFAULT_VIEWS = 5000
static

§ PATCH_SIZE

const uchar cv::RandomizedTree::PATCH_SIZE = 32
static

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