KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
kjb::Feature_histogram Class Reference

#include <feature_histogram.h>

Classes

class  Image_dart
 

Public Member Functions

 Feature_histogram (DTLib::CImg< DTLib::FloatCHistogramPtr > &histo, unsigned int dart_window_size, unsigned int num_rows, unsigned int num_cols, int padding)
 
void draw_darts (kjb::Image &img)
 
unsigned int get_num_darts ()
 
void prepare_diff_matrix (DTLib::CImg< DTLib::FloatCHistogramPtr > &histo)
 
double compute_score (const kjb::Int_matrix &map, std::vector< Fh_type > &previous_darts, std::vector< Fh_type > &new_darts, std::vector< bool > changed_darts, double previous_score)
 
double compute_score (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts)
 
double compute_score2 (const kjb::Int_matrix &map, std::vector< Fh_type > &previous_darts, std::vector< Fh_type > &new_darts, std::vector< bool > changed_darts, double previous_score)
 
double compute_score2 (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts)
 
double compute_score3 (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts)
 
double compute_score4 (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts)
 
const Matrixget_diff_matrix () const
 
void draw_room (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts, kjb::Image &img)
 
void draw_room_floor (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts, kjb::Image &img)
 
void draw_room_ceiling (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts, kjb::Image &img)
 
void draw_room_walls (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts, kjb::Image &img)
 
void draw_object (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts, unsigned int obj_index, kjb::Image &img)
 
void draw_object_polymesh (const kjb::Int_matrix &map, std::vector< Fh_type > &new_darts, unsigned int obj_index, unsigned int polymsh_index, kjb::Image &img) const
 
double compute_differential (const kjb::Matrix &assignment_matrix) const
 
const std::vector< Image_dart > & get_darts () const
 

Constructor & Destructor Documentation

Feature_histogram::Feature_histogram ( DTLib::CImg< DTLib::FloatCHistogramPtr > &  histo,
unsigned int  dart_window_size,
unsigned int  num_rows,
unsigned int  num_cols,
int  padding 
)

Member Function Documentation

double Feature_histogram::compute_differential ( const kjb::Matrix assignment_matrix) const
double Feature_histogram::compute_score ( const kjb::Int_matrix map,
std::vector< Fh_type > &  previous_darts,
std::vector< Fh_type > &  new_darts,
std::vector< bool >  changed_darts,
double  previous_score 
)
double Feature_histogram::compute_score ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts 
)
double Feature_histogram::compute_score2 ( const kjb::Int_matrix map,
std::vector< Fh_type > &  previous_darts,
std::vector< Fh_type > &  new_darts,
std::vector< bool >  changed_darts,
double  previous_score 
)
double Feature_histogram::compute_score2 ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts 
)
double Feature_histogram::compute_score3 ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts 
)
double Feature_histogram::compute_score4 ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts 
)
void Feature_histogram::draw_darts ( kjb::Image img)
void Feature_histogram::draw_object ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts,
unsigned int  obj_index,
kjb::Image img 
)
void Feature_histogram::draw_object_polymesh ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts,
unsigned int  obj_index,
unsigned int  polymsh_index,
kjb::Image img 
) const
void Feature_histogram::draw_room ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts,
kjb::Image img 
)
void Feature_histogram::draw_room_ceiling ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts,
kjb::Image img 
)
void Feature_histogram::draw_room_floor ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts,
kjb::Image img 
)
void Feature_histogram::draw_room_walls ( const kjb::Int_matrix map,
std::vector< Fh_type > &  new_darts,
kjb::Image img 
)
const std::vector<Image_dart>& kjb::Feature_histogram::get_darts ( ) const
inline
const Matrix& kjb::Feature_histogram::get_diff_matrix ( ) const
inline
unsigned int kjb::Feature_histogram::get_num_darts ( )
inline
void Feature_histogram::prepare_diff_matrix ( DTLib::CImg< DTLib::FloatCHistogramPtr > &  histo)

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