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

§ RTreeClassifier()

cv::RTreeClassifier::RTreeClassifier ( )

Member Function Documentation

§ classes()

int cv::RTreeClassifier::classes ( ) const
inline

§ countNonZeroElements()

static int cv::RTreeClassifier::countNonZeroElements ( float *  vec,
int  n,
double  tol = 1e-10 
)
static

§ countZeroElements()

float cv::RTreeClassifier::countZeroElements ( )

§ discardFloatPosteriors()

void cv::RTreeClassifier::discardFloatPosteriors ( )

§ getFloatSignature()

void cv::RTreeClassifier::getFloatSignature ( IplImage patch,
float *  sig 
) const
inline

§ getSignature() [1/2]

void cv::RTreeClassifier::getSignature ( IplImage patch,
uchar sig 
) const

§ getSignature() [2/2]

void cv::RTreeClassifier::getSignature ( IplImage patch,
float *  sig 
) const

§ getSparseSignature()

void cv::RTreeClassifier::getSparseSignature ( IplImage patch,
float *  sig,
float  thresh 
) const

§ original_num_classes()

int cv::RTreeClassifier::original_num_classes ( ) const
inline

§ read() [1/2]

void cv::RTreeClassifier::read ( const char *  file_name)

§ read() [2/2]

void cv::RTreeClassifier::read ( std::istream &  is)

§ safeSignatureAlloc() [1/2]

static void cv::RTreeClassifier::safeSignatureAlloc ( uchar **  sig,
int  num_sig = 1,
int  sig_len = 176 
)
inlinestatic

§ safeSignatureAlloc() [2/2]

static uchar* cv::RTreeClassifier::safeSignatureAlloc ( int  num_sig = 1,
int  sig_len = 176 
)
inlinestatic

§ saveAllBytePosteriors()

void cv::RTreeClassifier::saveAllBytePosteriors ( std::string  file_url)

§ saveAllFloatPosteriors()

void cv::RTreeClassifier::saveAllFloatPosteriors ( std::string  file_url)

§ setFloatPosteriorsFromTextfile_176()

void cv::RTreeClassifier::setFloatPosteriorsFromTextfile_176 ( std::string  url)

§ setQuantization()

void cv::RTreeClassifier::setQuantization ( int  num_quant_bits)

§ train() [1/2]

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 
)

§ train() [2/2]

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 
)

§ write() [1/2]

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

§ write() [2/2]

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

Member Data Documentation

§ DEFAULT_NUM_QUANT_BITS

const size_t cv::RTreeClassifier::DEFAULT_NUM_QUANT_BITS = 4
static

§ DEFAULT_TREES

const int cv::RTreeClassifier::DEFAULT_TREES = 48
static

§ trees_

vector<RandomizedTree> cv::RTreeClassifier::trees_

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