bazar  1.3.1
Public Member Functions | Public Attributes | List of all members
image_classification_forest Class Reference

Set of classifier trees. More...

#include <image_classification_forest.h>

Inheritance diagram for image_classification_forest:
Inheritance graph
[legend]
Collaboration diagram for image_classification_forest:
Collaboration graph
[legend]

Public Member Functions

 image_classification_forest (LEARNPROGRESSION LearnProgress=0)
 image_classification_forest (int image_width, int image_height, int class_number, int max_depth, int trees_number, LEARNPROGRESSION LearnProgress=0)
 ~image_classification_forest ()
void set_saving_directory_name (string directory_name)
void create_trees_at_random (void)
virtual void refine (example_generator *vg, int call_number)
void restore_occurances ()
void reset_class_occurances (int class_index)
virtual void test (example_generator *vg, int call_number)
int recognize (image_class_example *pv, float *confidence=0, int tree_number=-1)
virtual float * posterior_probabilities (image_class_example *pv, int tree_number=-1)
virtual void posterior_probabilities (image_class_example *pv, float *pp, int tree_number=-1)
void change_class_number_and_reset_probabilities (int new_class_number)
bool load (string directory_name)
bool save (string directory_name)
bool is_ok ()
- Public Member Functions inherited from image_classifier
 image_classifier (int image_width, int image_height, int class_number, LEARNPROGRESSION LearnProgress=0)
 image_classifier (LEARNPROGRESSION LearnProgress=0)
virtual ~image_classifier ()

Public Attributes

float * thresholds
float * misclassification_rates
vector
< image_classification_tree * > 
trees
int tree_number
int max_depth
float * weights
string directory_name
- Public Attributes inherited from image_classifier
LEARNPROGRESSION LearnProgression
int image_width
int image_height
int class_number

Detailed Description

Set of classifier trees.

Definition at line 32 of file image_classification_forest.h.

Constructor & Destructor Documentation

image_classification_forest::image_classification_forest ( LEARNPROGRESSION  LearnProgress = 0)

Definition at line 28 of file image_classification_forest.cpp.

References weights.

image_classification_forest::image_classification_forest ( int  image_width,
int  image_height,
int  class_number,
int  max_depth,
int  trees_number,
LEARNPROGRESSION  LearnProgress = 0 
)
image_classification_forest::~image_classification_forest ( )

Definition at line 135 of file image_classification_forest.cpp.

References misclassification_rates, thresholds, trees, and weights.

Member Function Documentation

void image_classification_forest::change_class_number_and_reset_probabilities ( int  new_class_number)

Definition at line 497 of file image_classification_forest.cpp.

References image_classifier::class_number, trees, and weights.

void image_classification_forest::create_trees_at_random ( void  )
bool image_classification_forest::is_ok ( )
inline

Definition at line 62 of file image_classification_forest.h.

References trees.

bool image_classification_forest::load ( string  directory_name)
virtual
float * image_classification_forest::posterior_probabilities ( image_class_example pv,
int  tree_number = -1 
)
virtual

Implements image_classifier.

Definition at line 439 of file image_classification_forest.cpp.

References image_classifier::class_number.

Referenced by recognize().

void image_classification_forest::posterior_probabilities ( image_class_example pv,
float *  pp,
int  tree_number = -1 
)
virtual
int image_classification_forest::recognize ( image_class_example pv,
float *  confidence = 0,
int  tree_number = -1 
)
virtual

Implements image_classifier.

Definition at line 418 of file image_classification_forest.cpp.

References image_classifier::class_number, and posterior_probabilities().

Referenced by test().

void image_classification_forest::refine ( example_generator vg,
int  call_number 
)
virtual
void image_classification_forest::reset_class_occurances ( int  class_index)

Definition at line 273 of file image_classification_forest.cpp.

References trees, and weights.

void image_classification_forest::restore_occurances ( )

Definition at line 262 of file image_classification_forest.cpp.

References image_classifier::class_number, trees, and weights.

bool image_classification_forest::save ( string  directory_name)
virtual
void image_classification_forest::set_saving_directory_name ( string  directory_name)

Definition at line 152 of file image_classification_forest.cpp.

References directory_name.

void image_classification_forest::test ( example_generator vg,
int  call_number 
)
virtual

Member Data Documentation

string image_classification_forest::directory_name

Definition at line 70 of file image_classification_forest.h.

Referenced by set_saving_directory_name().

int image_classification_forest::max_depth
float* image_classification_forest::misclassification_rates
float* image_classification_forest::thresholds
int image_classification_forest::tree_number
vector<image_classification_tree *> image_classification_forest::trees
float* image_classification_forest::weights

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