KJB
|
#include <st_manhattan_hog.h>
Public Member Functions | |
Manhattan_hog (const Hog_responses &hog_responses, const Image &image, const Perspective_camera &camera, const Parametric_parapiped ¶piped) | |
Manhattan_hog (const std::string &file_name) | |
Manhattan_hog (const Manhattan_hog &src) | |
~Manhattan_hog () | |
Manhattan_hog & | operator= (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 ¢er_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 ¶piped) 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 Vector & | get_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... | |
Manhattan_hog::Manhattan_hog | ( | const Hog_responses & | hog_responses, |
const Image & | image, | ||
const Perspective_camera & | camera, | ||
const Parametric_parapiped & | parapiped | ||
) |
|
inline |
|
inline |
|
inline |
|
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 |
|
inline |
|
inline |
|
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 |
|
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 |
|
inline |
|
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 |
|
inline |
|
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 | ||
) |
|
inline |
|
virtual |
Reads this Line segment from an input stream.
Implements kjb::Readable.
|
virtual |
Writes this Line segment to an output stream.
Implements kjb::Writeable.