KJB
|
#include <omap_computer.h>
Public Types | |
enum | Orientation_map_type { OMAP_LOOSE = 0, OMAP_STRICT, OMAP_VERY_STRICT, OMAP_COUNT } |
Public Member Functions | |
~Omap_computer () | |
Omap_computer (const char *featurepath, const char *filename) | |
Omap_computer (const char *linepath, const char *vppath, const char *featurepath, const char *filename) | |
Omap_computer (const std::string featurepath) | |
Omap_computer (const Image &img) | |
Omap_computer (Features_manager *ifm) | |
std::vector< double > | move_line_towards_vp (Vector point1, Vector point2, Vanishing_point vp, double amount) |
void | compute_omap (Image &out_omap, Orientation_map_type omap_type) |
Edge_segment_set | get_edge_segments () |
std::vector< Omap_segment > | get_lines () |
std::vector< Vanishing_point > | get_vpts () |
double | get_imgsize () |
kjb::Vector | get_n_samples () |
std::vector< kjb::Vector > | get_samples () |
std::vector< int > | get_lineclasses () |
void | set_lines_at_1 (std::vector< Omap_segment > lineset) |
void | set_lines_at_2 (std::vector< Omap_segment > lineset) |
void | set_lines_at_3 (std::vector< Omap_segment > lineset) |
std::vector< Omap_segment > | get_lines_at_vp (int vp) |
std::vector< Omap_segment > | get_lines_at_1 () |
std::vector< Omap_segment > | get_lines_at_2 () |
std::vector< Omap_segment > | get_lines_at_3 () |
std::vector< kjb::Vector > | get_samples_at_vp (int vp) |
std::vector< kjb::Vector > | get_samples_at_0 () |
std::vector< kjb::Vector > | get_samples_at_1 () |
std::vector< kjb::Vector > | get_samples_at_2 () |
std::vector< kjb::Vector > | get_samples_at_3 () |
std::vector< Omap_segment > | read_matlab_line_file (const char *linepath) |
std::vector< Vanishing_point > | read_matlab_vp_file (const char *vppath) |
void | initialize_lines_and_samples () |
void | print_lines (std::string filename) |
void | print_lines (const char *filename) |
void | print_matrix_as_image (std::string filename, Matrix printme, int red, int green, int blue) |
void | print_matrix_as_image_gray (std::string filename, Matrix printme) |
void | compute_tricolor_image (Image &tricolor_image, const Matrix &red, const Matrix &green, const Matrix &blue) |
double | compare_images (std::string source, std::string check) |
double | compare_sample_files (std::string source, std::string check, std::string name) |
|
inline |
Omap_computer::Omap_computer | ( | const char * | featurepath, |
const char * | filename | ||
) |
Omap_computer::Omap_computer | ( | const char * | linepath, |
const char * | vppath, | ||
const char * | featurepath, | ||
const char * | filename | ||
) |
kjb::Omap_computer::Omap_computer | ( | const std::string | featurepath | ) |
Omap_computer::Omap_computer | ( | const Image & | img | ) |
Omap_computer::Omap_computer | ( | Features_manager * | ifm | ) |
double Omap_computer::compare_images | ( | std::string | source, |
std::string | check | ||
) |
double Omap_computer::compare_sample_files | ( | std::string | source, |
std::string | check, | ||
std::string | name | ||
) |
void Omap_computer::compute_omap | ( | Image & | out_omap, |
Orientation_map_type | omap_type | ||
) |
void Omap_computer::compute_tricolor_image | ( | Image & | tricolor_image, |
const Matrix & | red, | ||
const Matrix & | green, | ||
const Matrix & | blue | ||
) |
Edge_segment_set Omap_computer::get_edge_segments | ( | ) |
double Omap_computer::get_imgsize | ( | ) |
std::vector<int> kjb::Omap_computer::get_lineclasses | ( | ) |
std::vector< Omap_segment > Omap_computer::get_lines | ( | ) |
std::vector< Omap_segment > Omap_computer::get_lines_at_1 | ( | ) |
std::vector< Omap_segment > Omap_computer::get_lines_at_2 | ( | ) |
std::vector< Omap_segment > Omap_computer::get_lines_at_3 | ( | ) |
std::vector< Omap_segment > Omap_computer::get_lines_at_vp | ( | int | vp | ) |
kjb::Vector kjb::Omap_computer::get_n_samples | ( | ) |
std::vector<kjb::Vector> kjb::Omap_computer::get_samples | ( | ) |
std::vector< kjb::Vector > Omap_computer::get_samples_at_0 | ( | ) |
std::vector< kjb::Vector > Omap_computer::get_samples_at_1 | ( | ) |
std::vector< kjb::Vector > Omap_computer::get_samples_at_2 | ( | ) |
std::vector< kjb::Vector > Omap_computer::get_samples_at_3 | ( | ) |
std::vector< kjb::Vector > Omap_computer::get_samples_at_vp | ( | int | vp | ) |
std::vector< Vanishing_point > Omap_computer::get_vpts | ( | ) |
void Omap_computer::initialize_lines_and_samples | ( | ) |
std::vector< double > Omap_computer::move_line_towards_vp | ( | kjb::Vector | p1, |
kjb::Vector | p2, | ||
Vanishing_point | vp, | ||
double | amount | ||
) |
void kjb::Omap_computer::print_lines | ( | std::string | filename | ) |
void Omap_computer::print_lines | ( | const char * | filename | ) |
void Omap_computer::print_matrix_as_image | ( | std::string | filename, |
Matrix | printme, | ||
int | red, | ||
int | green, | ||
int | blue | ||
) |
void Omap_computer::print_matrix_as_image_gray | ( | std::string | filename, |
Matrix | printme | ||
) |
std::vector< Omap_segment > Omap_computer::read_matlab_line_file | ( | const char * | linepath | ) |
std::vector< Vanishing_point > Omap_computer::read_matlab_vp_file | ( | const char * | vppath | ) |
void kjb::Omap_computer::set_lines_at_1 | ( | std::vector< Omap_segment > | lineset | ) |
void kjb::Omap_computer::set_lines_at_2 | ( | std::vector< Omap_segment > | lineset | ) |
void kjb::Omap_computer::set_lines_at_3 | ( | std::vector< Omap_segment > | lineset | ) |