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

#include <st_manhattan_hog.h>

Inheritance diagram for kjb::Manhattan_hog:
kjb::Readable kjb::Writeable

Public Member Functions

 Manhattan_hog (const Hog_responses &hog_responses, const Image &image, const Perspective_camera &camera, const Parametric_parapiped &parapiped)
 
 Manhattan_hog (const std::string &file_name)
 
 Manhattan_hog (const Manhattan_hog &src)
 
 ~Manhattan_hog ()
 
Manhattan_hogoperator= (const Manhattan_hog &src)
 
void read (std::istream &in)
 Reads this Line segment from an input stream. More...
 
void write (std::ostream &out) const
 Writes this Line segment to an output stream. More...
 
int compute_manhattan_hog_size (int hog_size_2D)
 
void get_3D_manhattan_directions (std::vector< kjb::Vector > &manhattan_dir_3d_vertical, std::vector< kjb::Vector > &manhattan_dir_3d_vertical1, std::vector< kjb::Vector > &manhattan_dir_3d_vertical2, int num_directions) const
 
void get_projected_manhattan_directions (const std::vector< kjb::Vector > &manhattan_dir_3d_vertical, const std::vector< kjb::Vector > &manhattan_dir_3d_vertical1, const std::vector< kjb::Vector > &manhattan_dir_3d_vertical2, const kjb::Vector &center_in_pp_coordinates, const kjb::Parametric_parapiped &pp, const kjb::Perspective_camera &camera, int img_height, std::vector< kjb::Vector > &projected_manhattan_dir_horizontal, std::vector< kjb::Vector > &projected_manhattan_dir_vertical1, std::vector< kjb::Vector > &projected_manhattan_dir_vertical2) const
 
void interpolate_projected_directions (const std::vector< kjb::Vector > &projected_directions, const float *weights_2D, float *weights_3D, double angle_increment, int inum_bins)
 
void get_line_segments_for_drawing (std::vector< Line_segment > &line_segments, const std::vector< kjb::Vector > &projected_directions, double center_x, double center_y, double length) const
 
Image draw_image_with_vertical_segments (const Hog_responses &hog_responses, const Image &image, const Perspective_camera &camera, const Parametric_parapiped &parapiped) const
 
void get_hog_pixels (std::vector< std::pair< int, int > > &hog_pixels) const
 
void get_hog_offsets (std::vector< int > &hog_offsets) const
 
int get_hog_cell_x_center (int hog_x_index) const
 
int get_hog_cell_y_center (int hog_y_index) const
 
const float * get_horizontal () const
 
const float * get_vertical1 () const
 
const float * get_vertical2 () const
 
const Vectorget_hog_maxs () const
 
int get_num_hog_rows () const
 
int get_num_hog_cols () const
 
- Public Member Functions inherited from kjb::Readable
virtual ~Readable ()
 Deletes this Readable. More...
 
virtual void read (const char *fname)
 Reads this Readable from a file. More...
 
- Public Member Functions inherited from kjb::Writeable
virtual ~Writeable ()
 Deletes this Writeable. More...
 
virtual void write (const char *fname) const
 Writes this Writeable to a file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from kjb::Readable
static const char * read_field_value (std::istream &in, const char *field_name, char *field_buf, size_t buf_len, char separator=':')
 Reads a line off in into a buffer and returns a pointer to the field value in the buffer. More...
 
static const char * read_field_value (std::istream &in, const char *field_name, char separator=':')
 Reads a line off in into an internal buffer and returns a pointer to the field value in the buffer. More...
 

Constructor & Destructor Documentation

Manhattan_hog::Manhattan_hog ( const Hog_responses hog_responses,
const Image image,
const Perspective_camera camera,
const Parametric_parapiped parapiped 
)
kjb::Manhattan_hog::Manhattan_hog ( const std::string &  file_name)
inline
kjb::Manhattan_hog::Manhattan_hog ( const Manhattan_hog src)
inline
kjb::Manhattan_hog::~Manhattan_hog ( )
inline

Member Function Documentation

int kjb::Manhattan_hog::compute_manhattan_hog_size ( int  hog_size_2D)
inline
Image Manhattan_hog::draw_image_with_vertical_segments ( const Hog_responses hog_responses,
const Image image,
const Perspective_camera camera,
const Parametric_parapiped parapiped 
) const
void Manhattan_hog::get_3D_manhattan_directions ( std::vector< kjb::Vector > &  manhattan_dir_3d_vertical,
std::vector< kjb::Vector > &  manhattan_dir_3d_vertical1,
std::vector< kjb::Vector > &  manhattan_dir_3d_vertical2,
int  num_directions 
) const
int kjb::Manhattan_hog::get_hog_cell_x_center ( int  hog_x_index) const
inline
int kjb::Manhattan_hog::get_hog_cell_y_center ( int  hog_y_index) const
inline
const Vector& kjb::Manhattan_hog::get_hog_maxs ( ) const
inline
void Manhattan_hog::get_hog_offsets ( std::vector< int > &  hog_offsets) const
void Manhattan_hog::get_hog_pixels ( std::vector< std::pair< int, int > > &  hog_pixels) const
const float* kjb::Manhattan_hog::get_horizontal ( ) const
inline
void Manhattan_hog::get_line_segments_for_drawing ( std::vector< Line_segment > &  line_segments,
const std::vector< kjb::Vector > &  projected_directions,
double  center_x,
double  center_y,
double  length 
) const
int kjb::Manhattan_hog::get_num_hog_cols ( ) const
inline
int kjb::Manhattan_hog::get_num_hog_rows ( ) const
inline
void Manhattan_hog::get_projected_manhattan_directions ( const std::vector< kjb::Vector > &  manhattan_dir_3d_vertical,
const std::vector< kjb::Vector > &  manhattan_dir_3d_vertical1,
const std::vector< kjb::Vector > &  manhattan_dir_3d_vertical2,
const kjb::Vector center_in_pp_coordinates,
const kjb::Parametric_parapiped pp,
const kjb::Perspective_camera camera,
int  img_height,
std::vector< kjb::Vector > &  projected_manhattan_dir_horizontal,
std::vector< kjb::Vector > &  projected_manhattan_dir_vertical1,
std::vector< kjb::Vector > &  projected_manhattan_dir_vertical2 
) const
const float* kjb::Manhattan_hog::get_vertical1 ( ) const
inline
const float* kjb::Manhattan_hog::get_vertical2 ( ) const
inline
void Manhattan_hog::interpolate_projected_directions ( const std::vector< kjb::Vector > &  projected_directions,
const float *  weights_2D,
float *  weights_3D,
double  angle_increment,
int  inum_bins 
)
Manhattan_hog& kjb::Manhattan_hog::operator= ( const Manhattan_hog src)
inline
void Manhattan_hog::read ( std::istream &  in)
virtual

Reads this Line segment from an input stream.

Implements kjb::Readable.

void Manhattan_hog::write ( std::ostream &  out) const
virtual

Writes this Line segment to an output stream.

Implements kjb::Writeable.


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