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

Image classifier tree. More...

#include <image_classification_tree.h>

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

Public Member Functions

 image_classification_tree (LEARNPROGRESSION LearnProgress=0)
 image_classification_tree (int image_width, int image_height, int class_number, int max_depth, LEARNPROGRESSION LearnProgress=0)
 ~image_classification_tree ()
bool load (string filename)
bool save (string filename)
virtual void refine (example_generator *vg, int call_number)
virtual void test (example_generator *vg, int call_number)
int recognize (image_class_example *pv, float *confidence=0, int dummy=0)
virtual float * posterior_probabilities (image_class_example *pv, int dummy=0)
void change_class_number_and_reset_probabilities (int new_class_number)
int node_number (void)
int leaves_number (void)
int actual_max_depth (void)
double entropy (void)
- 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

image_classification_noderoot
int max_depth
- Public Attributes inherited from image_classifier
LEARNPROGRESSION LearnProgression
int image_width
int image_height
int class_number

Detailed Description

Image classifier tree.

Definition at line 34 of file image_classification_tree.h.

Constructor & Destructor Documentation

image_classification_tree::image_classification_tree ( LEARNPROGRESSION  LearnProgress = 0)

Definition at line 52 of file image_classification_tree.cpp.

References root.

image_classification_tree::image_classification_tree ( int  image_width,
int  image_height,
int  class_number,
int  max_depth,
LEARNPROGRESSION  LearnProgress = 0 
)

Definition at line 59 of file image_classification_tree.cpp.

References max_depth, and root.

image_classification_tree::~image_classification_tree ( )

Definition at line 136 of file image_classification_tree.cpp.

References root.

Member Function Documentation

int image_classification_tree::actual_max_depth ( void  )

Definition at line 280 of file image_classification_tree.cpp.

void image_classification_tree::change_class_number_and_reset_probabilities ( int  new_class_number)
double image_classification_tree::entropy ( void  )

Definition at line 285 of file image_classification_tree.cpp.

int image_classification_tree::leaves_number ( void  )

Definition at line 275 of file image_classification_tree.cpp.

References image_classification_node::leaves_number(), and root.

Referenced by save().

bool image_classification_tree::load ( string  filename)
virtual
int image_classification_tree::node_number ( void  )
float * image_classification_tree::posterior_probabilities ( image_class_example pv,
int  dummy = 0 
)
virtual
int image_classification_tree::recognize ( image_class_example pv,
float *  confidence = 0,
int  dummy = 0 
)
virtual
void image_classification_tree::refine ( example_generator vg,
int  call_number 
)
virtual
bool image_classification_tree::save ( string  filename)
virtual
void image_classification_tree::test ( example_generator vg,
int  call_number 
)
virtual

Member Data Documentation

int image_classification_tree::max_depth

Definition at line 62 of file image_classification_tree.h.

Referenced by image_classification_tree(), load(), and save().

image_classification_node* image_classification_tree::root

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