licornea_tools
|
Typedefs | |
using | straight_depths = std::map< std::string, straight_depth > |
using | freenect2_color_params = libfreenect2::Freenect2Device::ColorCameraParams |
using | freenect2_ir_params = libfreenect2::Freenect2Device::IrCameraParams |
using | camera_array = std::vector< camera > |
using | real = double |
using | byte = std::uint8_t |
using | vec2 = cv::Vec< real, 2 > |
using | vec3 = cv::Vec< real, 3 > |
using | vec4 = cv::Vec< real, 4 > |
using | mat33 = cv::Matx< real, 3, 3 > |
using | mat44 = cv::Matx< real, 4, 4 > |
using | Eigen_matXX = Eigen::Matrix< real, Eigen::Dynamic, Eigen::Dynamic > |
template<std::size_t Cols> | |
using | Eigen_matXn = Eigen::Matrix< real, Eigen::Dynamic, Cols > |
template<std::size_t Rows> | |
using | Eigen_matnX = Eigen::Matrix< real, Rows, Eigen::Dynamic > |
template<std::size_t Rows, std::size_t Cols> | |
using | Eigen_mat = Eigen::Matrix< real, Rows, Cols > |
using | Eigen_mat33 = Eigen_mat< 3, 3 > |
using | Eigen_mat22 = Eigen_mat< 2, 2 > |
using | Eigen_vecX = Eigen::Matrix< real, Eigen::Dynamic, 1 > |
template<std::size_t Rows> | |
using | Eigen_vec = Eigen::Matrix< real, Rows, 1 > |
using | Eigen_vec3 = Eigen_vec< 3 > |
using | Eigen_vec2 = Eigen_vec< 2 > |
using | json = nlohmann::json |
using | default_random_engine = std::mt19937 |
template<typename... > | |
using | void_t = void |
template<std::size_t Obj_count, std::size_t Img_count> | |
using | obj_img_correspondences = std::vector< obj_img_correspondence< Obj_count, Img_count >> |
template<std::size_t Obj_count, std::size_t Img_count> | |
using | obj_img_correspondences_set = std::vector< obj_img_correspondences< Obj_count, Img_count >> |
using | view_homographies = std::map< view_index, view_homography > |
Functions | |
feature_slopes | decode_feature_slopes (const json &j_fslopes) |
bool | has_feature_slopes (const json &j_fslopes) |
json | encode_feature_slopes (const feature_slopes &fslopes) |
real | model_horizontal_slope (const vec2 &undistorted_point, const mat33 &K, const mat33 &R) |
real | model_vertical_slope (const vec2 &undistorted_point, const mat33 &K, const mat33 &R) |
cv::Mat_< cv::Vec3b > | visualize_feature_slopes (const feature_slopes &fslopes, const cv::Mat_< cv::Vec3b > &back_img, int width, real exaggeration, int thickness, const border &bord) |
feature_slopes | merge_multiview_feature_slopes (const feature_slopes &a, const feature_slopes &b) |
feature_slopes | feature_slopes_arg () |
json | encode_references_grid (const references_grid &grid) |
references_grid | decode_references_grid (const json &j_grid) |
references_grid | get_references_grid (const image_correspondences &cors) |
references_grid | references_grid_arg () |
std::vector< view_index > | get_reference_views (const relative_camera_positions &rcpos) |
std::vector< view_index > | get_target_views (const relative_camera_positions &rcpos) |
json | encode_relative_camera_positions (const relative_camera_positions &rcpos) |
relative_camera_positions | decode_relative_camera_positions (const json &j_rcpos) |
relative_camera_positions | relative_camera_positions_arg () |
json | encode_straight_depths (const straight_depths &depths) |
straight_depths | decode_straight_depths (const json &j_depths) |
straight_depths | straight_depths_arg () |
feature_point | decode_feature_point (const json &j_pt) |
json | encode_feature_point (const feature_point &pt) |
feature_points | decode_feature_points (const json &j_fpoints) |
json | encode_feature_points (const feature_points &fpoints) |
feature_points | feature_points_for_view (const image_correspondences &cors, view_index idx, bool is_distorted) |
feature_points | undistort (const feature_points &dist_fpoints, const intrinsics &intr) |
feature_points | undistorted_feature_points_for_view (const image_correspondences &cors, view_index idx, const intrinsics &intr) |
std::vector< vec2 > | positions (const feature_points &fpoints) |
cv::Mat_< cv::Vec3b > | visualize_feature_points (const feature_points &fpoints, const cv::Mat_< cv::Vec3b > &back_img, const border &bord) |
feature_points | feature_points_arg () |
image_correspondence_feature | decode_image_correspondence_feature (const json &j_feat) |
json | encode_image_correspondence_feature (const image_correspondence_feature &feat) |
image_correspondences | decode_image_correspondences (const json &j_cors) |
json | encode_image_correspondences (const image_correspondences &cors) |
void | export_binary_image_correspondences (const image_correspondences &cors, const std::string &filename) |
image_correspondences | import_binary_image_correspondences (const std::string &filename) |
void | export_image_corresponcences (const image_correspondences &cors, const std::string &filename) |
image_correspondences | import_image_correspondences (const std::string &filename) |
std::set< view_index > | get_reference_views_set (const image_correspondences &cors) |
std::vector< view_index > | get_reference_views (const image_correspondences &cors) |
std::set< view_index > | get_all_views_set (const image_correspondences &cors) |
std::vector< view_index > | get_all_views (const image_correspondences &cors) |
std::set< std::string > | get_feature_names_set (const image_correspondences &cors) |
std::vector< std::string > | get_feature_names (const image_correspondences &cors) |
std::string | short_feature_name (const std::string &full_feature_name) |
image_correspondences | image_correspondences_with_reference (const image_correspondences &cors, const view_index &reference_view) |
image_correspondences | undistort (const image_correspondences &cors, const intrinsics &intr) |
cv::Mat_< cv::Vec3b > | visualize_view_points (const image_correspondence_feature &feature, const cv::Mat_< cv::Vec3b > &back_img, const cv::Vec3b &col, int dot_radius, const border &bord) |
cv::Mat_< cv::Vec3b > | visualize_view_points_closeup (const image_correspondence_feature &feature, const cv::Mat_< cv::Vec3b > &img, const cv::Vec3b &col, const view_index &ref_idx, real dots_opacity, const border &bord) |
image_correspondences | image_correspondences_arg () |
bool | read_camera_mpeg (std::istream &input, camera &cam, bool convert) |
void | write_camera_mpeg (std::ostream &output, const camera &orig_cam, bool convert) |
std::unique_ptr< depth_densify_base > | make_depth_densify (const std::string &method) |
std::pair< freenect2_color_params, freenect2_ir_params > | to_freenect2 (const kinect_internal_parameters &) |
kinect_internal_parameters | from_freenect2 (const freenect2_color_params &, const freenect2_ir_params &) |
json | encode_kinect_internal_parameters (const kinect_internal_parameters ¶m) |
kinect_internal_parameters | decode_kinect_internal_parameters (const json &j) |
json | encode_kinect_reprojection_parameters (const kinect_reprojection_parameters ¶meters) |
kinect_reprojection_parameters | decode_kinect_reprojection_parameters (const json &j_parameters) |
checkerboard | detect_color_checkerboard (cv::Mat_< cv::Vec3b > &img, int cols, int rows, real square_width) |
checkerboard | detect_ir_checkerboard (cv::Mat_< uchar > &img, int cols, int rows, real square_width) |
checkerboard | detect_ir_checkerboard (cv::Mat_< ushort > &ir_orig, int cols, int rows, real square_width) |
std::vector< vec3 > | checkerboard_world_corners (int cols, int rows, real square_width) |
std::vector< vec2 > | checkerboard_image_corners (const checkerboard &chk) |
cv::Mat_< cv::Vec3b > | visualize_checkerboard (const cv::Mat_< cv::Vec3b > &img, const checkerboard &chk, const checkerboard_visualization_parameters ¶m) |
cv::Mat_< cv::Vec3b > | visualize_checkerboard (const cv::Mat_< uchar > &img, const checkerboard &chk, const checkerboard_visualization_parameters ¶m) |
cv::Mat_< cv::Vec3b > | visualize_checkerboard (const cv::Mat_< ushort > &img, const checkerboard &chk, const checkerboard_visualization_parameters ¶m) |
cv::Mat_< cv::Vec3b > | visualize_checkerboard_pixel_samples (const cv::Mat_< cv::Vec3b > &img, const std::vector< checkerboard_pixel_depth_sample > &pixels, int rad) |
cv::Mat_< cv::Vec3b > | visualize_checkerboard_pixel_samples (const cv::Mat_< uchar > &img, const std::vector< checkerboard_pixel_depth_sample > &pixels, int rad) |
obj_img_correspondences< 1, 1 > | checkerboard_obj_img_correspondences (const checkerboard &chk) |
obj_img_correspondences< 1, 2 > | checkerboard_obj_2img_correspondences (const checkerboard &chk1, const checkerboard &chk2) |
checkerboard_extrinsics | estimate_checkerboard_extrinsics (const checkerboard &chk, const intrinsics &intr) |
real | checkerboard_reprojection_error (const checkerboard &chk, const intrinsics &intr, const checkerboard_extrinsics &ext) |
vec2 | checkerboard_parallel_measures (const checkerboard &chk) |
real | calculate_parallel_checkerboard_depth (const checkerboard &chk, const intrinsics &intr) |
std::vector< checkerboard_pixel_depth_sample > | checkerboard_pixel_depth_samples (const checkerboard &chk, const cv::Mat_< float > &depth_image, int granularity) |
void | calculate_checkerboard_pixel_depths (const intrinsics &intr, const checkerboard_extrinsics &ext, std::vector< checkerboard_pixel_depth_sample > &inout_samples) |
multiprojection | decode_multiprojection (const json &j) |
json | encode_multiprojection (const multiprojection &mproj) |
args_list & | args () |
void | get_args (int argc, const char *argv[], const std::string &usage) |
bool | batch_mode () |
std::string | string_arg () |
std::string | in_filename_arg () |
std::string | out_filename_arg () |
std::string | out_filename_opt_arg (const std::string &def) |
std::string | out_dirname_arg () |
std::string | out_dirname_opt_arg (const std::string &def) |
long | int_arg () |
double | real_arg () |
std::string | enum_arg (const std::vector< std::string > &options) |
bool | bool_arg (const std::string &expected) |
view_index | view_index_arg () |
std::string | string_opt_arg (const std::string &def="") |
std::string | in_filename_opt_arg (const std::string &def="") |
long | int_opt_arg (long def) |
double | real_opt_arg (double def) |
std::string | enum_opt_arg (const std::vector< std::string > &options, const std::string &def) |
bool | bool_opt_arg (const std::string &expected, bool def=false) |
json | encode_border (const border &bord) |
border | decode_border (const json &j_bord) |
cv::Size | add_border (const border &bord, const cv::Size &sz) |
cv::Point | add_border (const border &bord, const cv::Point &pt) |
camera_array | decode_cameras (const json &j_cams) |
void | export_cameras_file (const camera_array &cameras, const std::string &filename) |
camera_array | cameras_arg () |
std::map< std::string, camera > | cameras_map (const camera_array &arr) |
intrinsics | to_undistorted_intrinsics (const camera &cam, int width, int height) |
void | export_cameras_file (const std::string &filename, const std::map< std::string, camera > &map) |
std::map< std::string, camera > | cameras_map (const std::vector< camera > &) |
template<> | |
rgb_color | color_convert (const ycbcr_color &in) |
template<> | |
ycbcr_color | color_convert (const rgb_color &in) |
rgb_color | color_blend (const rgb_color &a, const rgb_color &b) |
Color blend. More... | |
rgb_color | color_blend (const rgb_color &a, real a_weight, const rgb_color &b, real b_weight) |
bool | operator== (const rgb_color &a, const rgb_color &b) |
bool | operator!= (const rgb_color &a, const rgb_color &b) |
bool | operator== (const ycbcr_color &a, const ycbcr_color &b) |
bool | operator!= (const ycbcr_color &a, const ycbcr_color &b) |
template<typename Output , typename Input > | |
Output | color_convert (const Input &) |
Color conversion, specialized for different color formats. More... | |
vec3 | mul_h (const mat44 &mat, const vec3 &vec) |
vec2 | mul_h (const mat33 &mat, const vec2 &vec) |
template<typename In , typename Out , typename Func > | |
std::vector< Out > | point_vec_conv_tpl (const std::vector< In > &in, Func func) |
constexpr long double | operator""_deg (long double deg) |
bool | operator== (const index_2d &a, const index_2d &b) |
bool | operator!= (const index_2d &a, const index_2d &b) |
bool | operator< (const index_2d &a, const index_2d &b) |
bool | operator<= (const index_2d &a, const index_2d &b) |
bool | operator> (const index_2d &a, const index_2d &b) |
bool | operator>= (const index_2d &a, const index_2d &b) |
std::string | encode_view_index (view_index idx) |
view_index | decode_view_index (const std::string &key) |
std::ostream & | operator<< (std::ostream &, const view_index &) |
dataset | dataset_arg () |
template<int Rows, int Cols> | |
Eigen_mat< Rows, Cols > | to_eigen_mat (const cv::Matx< real, Rows, Cols > &cv_mat) |
template<int Rows> | |
Eigen_vec< Rows > | to_eigen (const cv::Vec< real, Rows > &cv_vec) |
template<std::size_t Rows, std::size_t Cols> | |
cv::Matx< real, Rows, Cols > | from_eigen_mat (const Eigen_mat< Rows, Cols > &eigen_mat) |
template<int Rows> | |
cv::Vec< real, Rows > | from_eigen (const Eigen_vec< Rows > &eigen_vec) |
std::string | filename_parent (const std::string &filename) |
std::string | filename_append (const std::string &a, const std::string &b) |
std::string | get_current_directory () |
bool | file_exists (const std::string &filename) |
bool | is_directory (const std::string &filename) |
bool | is_file (const std::string &filename) |
std::size_t | file_size (const std::string &filename) |
void | make_directory (const std::string &dirname) |
void | make_parent_directories (const std::string &filename) |
void | delete_file (const std::string &filename) |
cv::Mat_< cv::Vec3b > | load_texture (const std::string &filename) |
void | save_texture (const std::string &filename, const cv::Mat_< cv::Vec3b > &texture) |
cv::Mat_< ushort > | load_ir (const std::string &filename) |
void | save_ir (const std::string &filename, const cv::Mat_< ushort > &ir) |
cv::Mat_< ushort > | load_depth (const std::string &filename) |
void | save_depth (const std::string &filename, const cv::Mat_< ushort > &depth) |
intrinsics | decode_intrinsics (const json &j_intr) |
json | encode_intrinsics (const intrinsics &intr) |
vec2 | undistort_point (const intrinsics &intr, const vec2 &distorted) |
std::vector< vec2 > | undistort_points (const intrinsics &intr, const std::vector< vec2 > &distorted) |
std::vector< cv::Vec2f > | undistort_points (const intrinsics &intr, const std::vector< cv::Vec2f > &distorted) |
vec2 | distort_point (const intrinsics &intr, const vec2 &undistorted) |
std::vector< vec2 > | distort_points (const intrinsics &intr, const std::vector< vec2 > &undistorted) |
intrinsics | intrinsics_arg () |
line_delimitor | detect_line_delimitor (std::istream &, std::size_t max_offset=512) |
Detects line delimitor used in given file. More... | |
void | read_line (std::istream &str, std::string &line, line_delimitor ld) |
void | skip_line (std::istream &str, line_delimitor ld) |
void | write_line (std::ostream &str, const std::string &line, line_delimitor ld) |
void | end_line (std::ostream &str, line_delimitor ld) |
void | flip_endianness (byte *data, std::size_t sz) |
template<typename T > | |
void | flip_endianness (T &t) |
void | export_json_file (const json &j, const std::string &filename, bool compact) |
json | import_json_file (const std::string &filename) |
cv::Mat_< real > | decode_mat (const json &j) |
json | encode_mat_ (const cv::Mat_< real > &mat) |
template<typename Mat > | |
json | encode_mat (const Mat &mat) |
bool | has (const json &j, const std::string &key) |
template<typename T > | |
T | get_or (const json &j, const std::string &key, const T &default_value) |
json | json_arg () |
template<typename Numeric > | |
Numeric | sq (Numeric n) |
Compute square of a number. More... | |
template<typename T , typename T2 , typename T3 > | |
T | clamp (T value, T2 minimum, T3 maximum) |
Clamp value between minimum and maximum value. More... | |
template<typename T > | |
T | gcd (T a, T b) |
Compute greatest common divisor of a and b . More... | |
template<typename T > | |
T | lcm (T a, T b) |
Compute least common multiple of a and b . More... | |
template<typename T > | |
bool | is_power_of_two (T x) |
Check if x is a power of 2. More... | |
template<typename T , typename T2 > | |
bool | is_multiple_of (T x, T2 base) |
Check if x is a multiple of base , including zero. More... | |
template<typename T , typename T2 > | |
bool | is_nonzero_multiple_of (T x, T2 base) |
Check if x is a non-zero multiple of base . More... | |
template<typename T > | |
bool | is_odd (T x) |
Check if x is odd. More... | |
template<typename T > | |
bool | is_even (T x) |
Check if x is even. More... | |
default_random_engine & | random_engine () |
template<typename T > | |
T | randint (T a, T b) |
template<typename T > | |
auto | forward_make_shared (T &&t) |
Get shared_ptr to new object copy- or move- constructed from t. More... | |
template<typename T > | |
auto | forward_make_shared_const (T &&t) |
Get shared_ptr to new const object copy- or move- constructed from t. More... | |
obj_img_correspondences_set_dim | decode_obj_img_correspondences_set_dim (const json &j_set) |
template<std::size_t Obj_count, std::size_t Img_count> | |
obj_img_correspondence< Obj_count, Img_count > | decode_obj_img_correspondence (const json &) |
template<std::size_t Obj_count, std::size_t Img_count> | |
json | encode_obj_img_correspondence (const obj_img_correspondence< Obj_count, Img_count > &) |
template<std::size_t Obj_count, std::size_t Img_count> | |
json | encode_obj_img_correspondences_set (const obj_img_correspondences_set< Obj_count, Img_count > &) |
template<std::size_t Obj_count, std::size_t Img_count> | |
obj_img_correspondences_set< Obj_count, Img_count > | decode_obj_img_correspondences_set (const json &) |
void | cv_aa_circle (cv::Mat &mat, const cv::Point2f ¢er, float rad, cv::Scalar col, int thickness) |
cv::Vec3b | random_color (int i) |
cv::Mat | import_raw_color (const std::string &yuv_filename, int width, int height, raw_image_format form) |
cv::Mat | import_raw_mono (const std::string &yuv_filename, int width, int height, int bit_depth) |
void | export_raw_color (const cv::Mat &img, const std::string &yuv_filename, raw_image_format form) |
void | export_raw_mono (const cv::Mat &img, const std::string &yuv_filename, int out_bit_depth) |
bool | is_orthogonal_matrix (const mat33 &R) |
mat33 | to_rotation_matrix (const vec3 &euler) |
vec3 | to_euler (const mat33 &R_) |
std::string | file_name_extension (const std::string &filename) |
std::vector< std::string > | explode (char separator, const std::string &str) |
std::string | implode (char separator, const std::vector< std::string > &vec) |
std::string | to_lower (const std::string &s_orig) |
std::string | to_upper (const std::string &s_orig) |
std::string | replace_all (const std::string &subject_orig, const std::string &find, const std::string &replace) |
std::size_t | replace_all_inplace (std::string &subject, const std::string &find, const std::string &replace) |
int | string_hash (const std::string &str) |
template<typename T > | |
std::string | to_string (const T &) |
template<typename T > | |
T | from_string (const std::string &) |
template<typename It > | |
std::string | to_string (It begin, It end, const std::string &separator=", ") |
template<typename T > | |
std::vector< T > | explode_from_string (char separator, const std::string &) |
template<typename T > | |
std::string | implode_to_string (char separator, const std::vector< T > &) |
json | encode_view_homography (const view_homography &hom) |
view_homography | decode_view_homography (const json &j_hom) |
json | encode_view_homographies (const view_homographies &homs) |
view_homographies | decode_view_homographies (const json &j_homs) |
bool | is_single_view_homography (const json &j) |
real | view_homographies_error (const view_homographies &homs) |
std::vector< vec2 > | quadrilateral (const view_homography &hom, real width, real height) |
border | maximal_border (const view_homography &hom, real width, real height) |
border | maximal_border (const view_homographies &homs, real width, real height) |
view_homography | homography_arg () |
view_homographies | homographies_arg () |
Variables | |
constexpr std::size_t | depth_width = 512 |
constexpr std::size_t | depth_height = 424 |
constexpr std::size_t | texture_width = 1920 |
constexpr std::size_t | texture_height = 1080 |
constexpr int | enter_keycode = 10 |
constexpr int | escape_keycode = 27 |
constexpr real | pi = 3.14159265358979323846 |
constexpr real | deg_per_rad = 180.0 / pi |
constexpr real | rad_per_deg = pi / 180.0 |
constexpr real | golden_ratio = 1.61803398874989484820 |
const line_delimitor | default_line_delimitor = line_delimitor::LF |
const bool | host_has_iec559_float |
const bool | host_is_little_endian = check_host_little_endian_() |
constexpr real | epsilon = 1.0e-6 |
using tlz::camera_array = typedef std::vector<camera> |
using tlz::default_random_engine = typedef std::mt19937 |
using tlz::Eigen_mat = typedef Eigen::Matrix<real, Rows, Cols> |
using tlz::Eigen_mat22 = typedef Eigen_mat<2, 2> |
using tlz::Eigen_mat33 = typedef Eigen_mat<3, 3> |
using tlz::Eigen_matnX = typedef Eigen::Matrix<real, Rows, Eigen::Dynamic> |
using tlz::Eigen_matXn = typedef Eigen::Matrix<real, Eigen::Dynamic, Cols> |
using tlz::Eigen_matXX = typedef Eigen::Matrix<real, Eigen::Dynamic, Eigen::Dynamic> |
using tlz::Eigen_vec = typedef Eigen::Matrix<real, Rows, 1> |
using tlz::Eigen_vec2 = typedef Eigen_vec<2> |
using tlz::Eigen_vec3 = typedef Eigen_vec<3> |
using tlz::Eigen_vecX = typedef Eigen::Matrix<real, Eigen::Dynamic, 1> |
using tlz::freenect2_color_params = typedef libfreenect2::Freenect2Device::ColorCameraParams |
Definition at line 14 of file freenect2.h.
using tlz::freenect2_ir_params = typedef libfreenect2::Freenect2Device::IrCameraParams |
Definition at line 15 of file freenect2.h.
using tlz::mat33 = typedef cv::Matx<real, 3, 3> |
using tlz::mat44 = typedef cv::Matx<real, 4, 4> |
using tlz::obj_img_correspondences = typedef std::vector<obj_img_correspondence<Obj_count, Img_count>> |
Definition at line 19 of file obj_img_correspondence.h.
using tlz::obj_img_correspondences_set = typedef std::vector<obj_img_correspondences<Obj_count, Img_count>> |
Definition at line 22 of file obj_img_correspondence.h.
using tlz::straight_depths = typedef std::map<std::string, straight_depth> |
Definition at line 18 of file straight_depths.h.
using tlz::view_homographies = typedef std::map<view_index, view_homography> |
Definition at line 17 of file view_homography.h.
using tlz::void_t = typedef void |
|
strong |
|
strong |
Enumerator | |
---|---|
ycbcr420 | |
rgb_planar | |
rgb_interleaved |
Definition at line 8 of file raw_image_io.h.
cv::Size tlz::add_border | ( | const border & | bord, |
const cv::Size & | sz | ||
) |
cv::Point tlz::add_border | ( | const border & | bord, |
const cv::Point & | pt | ||
) |
bool tlz::bool_arg | ( | const std::string & | expected | ) |
|
inline |
void tlz::calculate_checkerboard_pixel_depths | ( | const intrinsics & | intr, |
const checkerboard_extrinsics & | ext, | ||
std::vector< checkerboard_pixel_depth_sample > & | inout_samples | ||
) |
real tlz::calculate_parallel_checkerboard_depth | ( | const checkerboard & | chk, |
const intrinsics & | intr | ||
) |
camera_array tlz::cameras_arg | ( | ) |
std::map<std::string, camera> tlz::cameras_map | ( | const camera_array & | arr | ) |
std::vector< vec2 > tlz::checkerboard_image_corners | ( | const checkerboard & | chk | ) |
Definition at line 109 of file checkerboard.cc.
obj_img_correspondences< 1, 2 > tlz::checkerboard_obj_2img_correspondences | ( | const checkerboard & | chk1, |
const checkerboard & | chk2 | ||
) |
obj_img_correspondences< 1, 1 > tlz::checkerboard_obj_img_correspondences | ( | const checkerboard & | chk | ) |
vec2 tlz::checkerboard_parallel_measures | ( | const checkerboard & | chk | ) |
std::vector< checkerboard_pixel_depth_sample > tlz::checkerboard_pixel_depth_samples | ( | const checkerboard & | chk, |
const cv::Mat_< float > & | depth_image, | ||
int | granularity | ||
) |
real tlz::checkerboard_reprojection_error | ( | const checkerboard & | chk, |
const intrinsics & | intr, | ||
const checkerboard_extrinsics & | ext | ||
) |
Definition at line 101 of file checkerboard.cc.
T tlz::clamp | ( | T | value, |
T2 | minimum, | ||
T3 | maximum | ||
) |
Clamp value
between minimum
and maximum
value.
rgb_color tlz::color_convert | ( | const ycbcr_color & | in | ) |
ycbcr_color tlz::color_convert | ( | const rgb_color & | in | ) |
Output tlz::color_convert | ( | const Input & | ) |
Color conversion, specialized for different color formats.
void tlz::cv_aa_circle | ( | cv::Mat & | mat, |
const cv::Point2f & | center, | ||
float | rad, | ||
cv::Scalar | col, | ||
int | thickness | ||
) |
dataset tlz::dataset_arg | ( | ) |
camera_array tlz::decode_cameras | ( | const json & | j_cams | ) |
feature_point tlz::decode_feature_point | ( | const json & | j_pt | ) |
feature_points tlz::decode_feature_points | ( | const json & | j_fpoints | ) |
feature_slopes tlz::decode_feature_slopes | ( | const json & | j_fslopes | ) |
image_correspondence_feature tlz::decode_image_correspondence_feature | ( | const json & | j_feat | ) |
image_correspondences tlz::decode_image_correspondences | ( | const json & | j_cors | ) |
intrinsics tlz::decode_intrinsics | ( | const json & | j_intr | ) |
kinect_internal_parameters tlz::decode_kinect_internal_parameters | ( | const json & | j | ) |
Definition at line 21 of file kinect_internal_parameters.cc.
kinect_reprojection_parameters tlz::decode_kinect_reprojection_parameters | ( | const json & | j_parameters | ) |
Definition at line 51 of file kinect_reprojection_parameters.cc.
multiprojection tlz::decode_multiprojection | ( | const json & | j | ) |
Definition at line 5 of file multiprojection.cc.
obj_img_correspondence<Obj_count, Img_count> tlz::decode_obj_img_correspondence | ( | const json & | ) |
obj_img_correspondences_set<Obj_count, Img_count> tlz::decode_obj_img_correspondences_set | ( | const json & | ) |
obj_img_correspondences_set_dim tlz::decode_obj_img_correspondences_set_dim | ( | const json & | j_set | ) |
Definition at line 5 of file obj_img_correspondence.cc.
references_grid tlz::decode_references_grid | ( | const json & | j_grid | ) |
Definition at line 25 of file references_grid.cc.
relative_camera_positions tlz::decode_relative_camera_positions | ( | const json & | j_rcpos | ) |
Definition at line 73 of file relative_camera_positions.cc.
straight_depths tlz::decode_straight_depths | ( | const json & | j_depths | ) |
view_homographies tlz::decode_view_homographies | ( | const json & | j_homs | ) |
view_homography tlz::decode_view_homography | ( | const json & | j_hom | ) |
view_index tlz::decode_view_index | ( | const std::string & | key | ) |
Definition at line 281 of file dataset.cc.
void tlz::delete_file | ( | const std::string & | filename | ) |
checkerboard tlz::detect_color_checkerboard | ( | cv::Mat_< cv::Vec3b > & | img, |
int | cols, | ||
int | rows, | ||
real | square_width | ||
) |
checkerboard tlz::detect_ir_checkerboard | ( | cv::Mat_< uchar > & | img, |
int | cols, | ||
int | rows, | ||
real | square_width | ||
) |
checkerboard tlz::detect_ir_checkerboard | ( | cv::Mat_< ushort > & | ir_orig, |
int | cols, | ||
int | rows, | ||
real | square_width | ||
) |
line_delimitor tlz::detect_line_delimitor | ( | std::istream & | , |
std::size_t | max_offset = 512 |
||
) |
vec2 tlz::distort_point | ( | const intrinsics & | intr, |
const vec2 & | undistorted | ||
) |
std::vector< vec2 > tlz::distort_points | ( | const intrinsics & | intr, |
const std::vector< vec2 > & | undistorted | ||
) |
json tlz::encode_feature_point | ( | const feature_point & | pt | ) |
Definition at line 15 of file feature_point.cc.
json tlz::encode_feature_points | ( | const feature_points & | fpoints | ) |
json tlz::encode_feature_slopes | ( | const feature_slopes & | fslopes | ) |
json tlz::encode_image_correspondence_feature | ( | const image_correspondence_feature & | feat | ) |
json tlz::encode_image_correspondences | ( | const image_correspondences & | cors | ) |
json tlz::encode_intrinsics | ( | const intrinsics & | intr | ) |
json tlz::encode_kinect_internal_parameters | ( | const kinect_internal_parameters & | param | ) |
Definition at line 5 of file kinect_internal_parameters.cc.
json tlz::encode_kinect_reprojection_parameters | ( | const kinect_reprojection_parameters & | parameters | ) |
Definition at line 39 of file kinect_reprojection_parameters.cc.
json tlz::encode_mat | ( | const Mat & | mat | ) |
json tlz::encode_multiprojection | ( | const multiprojection & | mproj | ) |
Definition at line 18 of file multiprojection.cc.
json tlz::encode_obj_img_correspondence | ( | const obj_img_correspondence< Obj_count, Img_count > & | ) |
json tlz::encode_obj_img_correspondences_set | ( | const obj_img_correspondences_set< Obj_count, Img_count > & | ) |
json tlz::encode_references_grid | ( | const references_grid & | grid | ) |
Definition at line 17 of file references_grid.cc.
json tlz::encode_relative_camera_positions | ( | const relative_camera_positions & | rcpos | ) |
Definition at line 62 of file relative_camera_positions.cc.
json tlz::encode_straight_depths | ( | const straight_depths & | depths | ) |
Definition at line 5 of file straight_depths.cc.
json tlz::encode_view_homographies | ( | const view_homographies & | homs | ) |
json tlz::encode_view_homography | ( | const view_homography & | hom | ) |
std::string tlz::encode_view_index | ( | view_index | idx | ) |
void tlz::end_line | ( | std::ostream & | str, |
line_delimitor | ld | ||
) |
std::string tlz::enum_arg | ( | const std::vector< std::string > & | options | ) |
|
inline |
checkerboard_extrinsics tlz::estimate_checkerboard_extrinsics | ( | const checkerboard & | chk, |
const intrinsics & | intr | ||
) |
std::vector< std::string > tlz::explode | ( | char | separator, |
const std::string & | str | ||
) |
std::vector<T> tlz::explode_from_string | ( | char | separator, |
const std::string & | |||
) |
void tlz::export_binary_image_correspondences | ( | const image_correspondences & | cors, |
const std::string & | filename | ||
) |
Definition at line 74 of file image_correspondence.cc.
void tlz::export_cameras_file | ( | const camera_array & | cameras, |
const std::string & | filename | ||
) |
void tlz::export_cameras_file | ( | const std::string & | filename, |
const std::map< std::string, camera > & | map | ||
) |
void tlz::export_image_corresponcences | ( | const image_correspondences & | cors, |
const std::string & | filename | ||
) |
void tlz::export_json_file | ( | const json & | j, |
const std::string & | filename, | ||
bool | compact | ||
) |
void tlz::export_raw_color | ( | const cv::Mat & | img, |
const std::string & | yuv_filename, | ||
raw_image_format | form | ||
) |
Definition at line 145 of file raw_image_io.cc.
void tlz::export_raw_mono | ( | const cv::Mat & | img, |
const std::string & | yuv_filename, | ||
int | out_bit_depth | ||
) |
Definition at line 156 of file raw_image_io.cc.
feature_points tlz::feature_points_arg | ( | ) |
feature_points tlz::feature_points_for_view | ( | const image_correspondences & | cors, |
view_index | idx, | ||
bool | is_distorted | ||
) |
Definition at line 49 of file feature_points.cc.
feature_slopes tlz::feature_slopes_arg | ( | ) |
bool tlz::file_exists | ( | const std::string & | filename | ) |
std::string tlz::file_name_extension | ( | const std::string & | filename | ) |
std::size_t tlz::file_size | ( | const std::string & | filename | ) |
std::string tlz::filename_append | ( | const std::string & | a, |
const std::string & | b | ||
) |
std::string tlz::filename_parent | ( | const std::string & | filename | ) |
void tlz::flip_endianness | ( | T & | t | ) |
auto tlz::forward_make_shared | ( | T && | t | ) |
auto tlz::forward_make_shared_const | ( | T && | t | ) |
kinect_internal_parameters tlz::from_freenect2 | ( | const freenect2_color_params & | , |
const freenect2_ir_params & | |||
) |
T tlz::from_string | ( | const std::string & | ) |
T tlz::gcd | ( | T | a, |
T | b | ||
) |
Compute greatest common divisor of a
and b
.
std::vector< view_index > tlz::get_all_views | ( | const image_correspondences & | cors | ) |
std::set< view_index > tlz::get_all_views_set | ( | const image_correspondences & | cors | ) |
Definition at line 206 of file image_correspondence.cc.
void tlz::get_args | ( | int | argc, |
const char * | argv[], | ||
const std::string & | usage | ||
) |
std::string tlz::get_current_directory | ( | ) |
std::vector< std::string > tlz::get_feature_names | ( | const image_correspondences & | cors | ) |
Definition at line 227 of file image_correspondence.cc.
std::set< std::string > tlz::get_feature_names_set | ( | const image_correspondences & | cors | ) |
T tlz::get_or | ( | const json & | j, |
const std::string & | key, | ||
const T & | default_value | ||
) |
std::vector< view_index > tlz::get_reference_views | ( | const relative_camera_positions & | rcpos | ) |
Definition at line 48 of file relative_camera_positions.cc.
std::vector< view_index > tlz::get_reference_views | ( | const image_correspondences & | cors | ) |
std::set< view_index > tlz::get_reference_views_set | ( | const image_correspondences & | cors | ) |
Definition at line 192 of file image_correspondence.cc.
references_grid tlz::get_references_grid | ( | const image_correspondences & | cors | ) |
std::vector< view_index > tlz::get_target_views | ( | const relative_camera_positions & | rcpos | ) |
Definition at line 55 of file relative_camera_positions.cc.
|
inline |
bool tlz::has_feature_slopes | ( | const json & | j_fslopes | ) |
view_homographies tlz::homographies_arg | ( | ) |
view_homography tlz::homography_arg | ( | ) |
image_correspondences tlz::image_correspondences_arg | ( | ) |
image_correspondences tlz::image_correspondences_with_reference | ( | const image_correspondences & | cors, |
const view_index & | reference_view | ||
) |
Definition at line 242 of file image_correspondence.cc.
std::string tlz::implode | ( | char | separator, |
const std::vector< std::string > & | vec | ||
) |
std::string tlz::implode_to_string | ( | char | separator, |
const std::vector< T > & | |||
) |
image_correspondences tlz::import_binary_image_correspondences | ( | const std::string & | filename | ) |
Definition at line 121 of file image_correspondence.cc.
image_correspondences tlz::import_image_correspondences | ( | const std::string & | filename | ) |
cv::Mat tlz::import_raw_color | ( | const std::string & | yuv_filename, |
int | width, | ||
int | height, | ||
raw_image_format | form | ||
) |
Definition at line 119 of file raw_image_io.cc.
cv::Mat tlz::import_raw_mono | ( | const std::string & | yuv_filename, |
int | width, | ||
int | height, | ||
int | bit_depth | ||
) |
Definition at line 130 of file raw_image_io.cc.
std::string tlz::in_filename_arg | ( | ) |
|
inline |
long tlz::int_arg | ( | ) |
|
inline |
intrinsics tlz::intrinsics_arg | ( | ) |
bool tlz::is_directory | ( | const std::string & | filename | ) |
bool tlz::is_even | ( | T | x | ) |
bool tlz::is_file | ( | const std::string & | filename | ) |
bool tlz::is_multiple_of | ( | T | x, |
T2 | base | ||
) |
bool tlz::is_nonzero_multiple_of | ( | T | x, |
T2 | base | ||
) |
bool tlz::is_odd | ( | T | x | ) |
bool tlz::is_orthogonal_matrix | ( | const mat33 & | R | ) |
Definition at line 7 of file rotation.cc.
bool tlz::is_power_of_two | ( | T | x | ) |
bool tlz::is_single_view_homography | ( | const json & | j | ) |
|
inline |
T tlz::lcm | ( | T | a, |
T | b | ||
) |
Compute least common multiple of a
and b
.
cv::Mat_< ushort > tlz::load_depth | ( | const std::string & | filename | ) |
Definition at line 35 of file image_io.cc.
cv::Mat_< ushort > tlz::load_ir | ( | const std::string & | filename | ) |
Definition at line 20 of file image_io.cc.
cv::Mat_< cv::Vec3b > tlz::load_texture | ( | const std::string & | filename | ) |
Definition at line 6 of file image_io.cc.
std::unique_ptr< depth_densify_base > tlz::make_depth_densify | ( | const std::string & | method | ) |
Definition at line 13 of file depth_densify.cc.
void tlz::make_directory | ( | const std::string & | dirname | ) |
void tlz::make_parent_directories | ( | const std::string & | filename | ) |
border tlz::maximal_border | ( | const view_homography & | hom, |
real | width, | ||
real | height | ||
) |
border tlz::maximal_border | ( | const view_homographies & | homs, |
real | width, | ||
real | height | ||
) |
feature_slopes tlz::merge_multiview_feature_slopes | ( | const feature_slopes & | a, |
const feature_slopes & | b | ||
) |
Definition at line 107 of file feature_slopes.cc.
real tlz::model_horizontal_slope | ( | const vec2 & | undistorted_point, |
const mat33 & | K, | ||
const mat33 & | R | ||
) |
Definition at line 48 of file feature_slopes.cc.
Definition at line 56 of file feature_slopes.cc.
bool tlz::operator!= | ( | const ycbcr_color & | a, |
const ycbcr_color & | b | ||
) |
|
inline |
std::ostream & tlz::operator<< | ( | std::ostream & | stream, |
const view_index & | idx | ||
) |
bool tlz::operator== | ( | const ycbcr_color & | a, |
const ycbcr_color & | b | ||
) |
std::string tlz::out_dirname_arg | ( | ) |
std::string tlz::out_dirname_opt_arg | ( | const std::string & | def | ) |
std::string tlz::out_filename_arg | ( | ) |
std::string tlz::out_filename_opt_arg | ( | const std::string & | def | ) |
std::vector<Out> tlz::point_vec_conv_tpl | ( | const std::vector< In > & | in, |
Func | func | ||
) |
std::vector< vec2 > tlz::positions | ( | const feature_points & | fpoints | ) |
Definition at line 103 of file feature_points.cc.
std::vector< vec2 > tlz::quadrilateral | ( | const view_homography & | hom, |
real | width, | ||
real | height | ||
) |
Definition at line 61 of file view_homography.cc.
T tlz::randint | ( | T | a, |
T | b | ||
) |
cv::Vec3b tlz::random_color | ( | int | i | ) |
Definition at line 8 of file random_color.cc.
default_random_engine& tlz::random_engine | ( | ) |
bool tlz::read_camera_mpeg | ( | std::istream & | input, |
camera & | cam, | ||
bool | convert | ||
) |
Definition at line 9 of file camera_mpeg.cc.
void tlz::read_line | ( | std::istream & | str, |
std::string & | line, | ||
line_delimitor | ld | ||
) |
double tlz::real_arg | ( | ) |
|
inline |
references_grid tlz::references_grid_arg | ( | ) |
relative_camera_positions tlz::relative_camera_positions_arg | ( | ) |
Definition at line 83 of file relative_camera_positions.cc.
std::string tlz::replace_all | ( | const std::string & | subject_orig, |
const std::string & | find, | ||
const std::string & | replace | ||
) |
std::size_t tlz::replace_all_inplace | ( | std::string & | subject, |
const std::string & | find, | ||
const std::string & | replace | ||
) |
void tlz::save_depth | ( | const std::string & | filename, |
const cv::Mat_< ushort > & | depth | ||
) |
Definition at line 43 of file image_io.cc.
void tlz::save_ir | ( | const std::string & | filename, |
const cv::Mat_< ushort > & | ir | ||
) |
Definition at line 28 of file image_io.cc.
void tlz::save_texture | ( | const std::string & | filename, |
const cv::Mat_< cv::Vec3b > & | texture | ||
) |
Definition at line 13 of file image_io.cc.
std::string tlz::short_feature_name | ( | const std::string & | full_feature_name | ) |
Definition at line 235 of file image_correspondence.cc.
void tlz::skip_line | ( | std::istream & | str, |
line_delimitor | ld | ||
) |
Numeric tlz::sq | ( | Numeric | n | ) |
straight_depths tlz::straight_depths_arg | ( | ) |
std::string tlz::string_arg | ( | ) |
|
inline |
std::pair<freenect2_color_params, freenect2_ir_params> tlz::to_freenect2 | ( | const kinect_internal_parameters & | ) |
Definition at line 17 of file rotation.cc.
std::string tlz::to_string | ( | const T & | ) |
std::string tlz::to_string | ( | It | begin, |
It | end, | ||
const std::string & | separator = ", " |
||
) |
intrinsics tlz::to_undistorted_intrinsics | ( | const camera & | cam, |
int | width, | ||
int | height | ||
) |
feature_points tlz::undistort | ( | const feature_points & | dist_fpoints, |
const intrinsics & | intr | ||
) |
image_correspondences tlz::undistort | ( | const image_correspondences & | cors, |
const intrinsics & | intr | ||
) |
vec2 tlz::undistort_point | ( | const intrinsics & | intr, |
const vec2 & | distorted | ||
) |
std::vector< vec2 > tlz::undistort_points | ( | const intrinsics & | intr, |
const std::vector< vec2 > & | distorted | ||
) |
std::vector< cv::Vec2f > tlz::undistort_points | ( | const intrinsics & | intr, |
const std::vector< cv::Vec2f > & | distorted | ||
) |
feature_points tlz::undistorted_feature_points_for_view | ( | const image_correspondences & | cors, |
view_index | idx, | ||
const intrinsics & | intr | ||
) |
real tlz::view_homographies_error | ( | const view_homographies & | homs | ) |
Definition at line 53 of file view_homography.cc.
view_index tlz::view_index_arg | ( | ) |
cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard | ( | const cv::Mat_< cv::Vec3b > & | img, |
const checkerboard & | chk, | ||
const checkerboard_visualization_parameters & | param | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard | ( | const cv::Mat_< uchar > & | img, |
const checkerboard & | chk, | ||
const checkerboard_visualization_parameters & | param | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard | ( | const cv::Mat_< ushort > & | img, |
const checkerboard & | chk, | ||
const checkerboard_visualization_parameters & | param | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard_pixel_samples | ( | const cv::Mat_< cv::Vec3b > & | img, |
const std::vector< checkerboard_pixel_depth_sample > & | pixels, | ||
int | rad | ||
) |
Definition at line 149 of file checkerboard.cc.
cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard_pixel_samples | ( | const cv::Mat_< uchar > & | img, |
const std::vector< checkerboard_pixel_depth_sample > & | pixels, | ||
int | rad | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_feature_points | ( | const feature_points & | fpoints, |
const cv::Mat_< cv::Vec3b > & | back_img, | ||
const border & | bord | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_feature_slopes | ( | const feature_slopes & | fslopes, |
const cv::Mat_< cv::Vec3b > & | back_img, | ||
int | width, | ||
real | exaggeration, | ||
int | thickness, | ||
const border & | bord | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_view_points | ( | const image_correspondence_feature & | feature, |
const cv::Mat_< cv::Vec3b > & | back_img, | ||
const cv::Vec3b & | col, | ||
int | dot_radius, | ||
const border & | bord | ||
) |
cv::Mat_< cv::Vec3b > tlz::visualize_view_points_closeup | ( | const image_correspondence_feature & | feature, |
const cv::Mat_< cv::Vec3b > & | img, | ||
const cv::Vec3b & | col, | ||
const view_index & | ref_idx, | ||
real | dots_opacity, | ||
const border & | bord | ||
) |
void tlz::write_camera_mpeg | ( | std::ostream & | output, |
const camera & | orig_cam, | ||
bool | convert | ||
) |
Definition at line 35 of file camera_mpeg.cc.
void tlz::write_line | ( | std::ostream & | str, |
const std::string & | line, | ||
line_delimitor | ld | ||
) |
const line_delimitor tlz::default_line_delimitor = line_delimitor::LF |
constexpr real tlz::epsilon = 1.0e-6 |
Definition at line 5 of file rotation.cc.
const bool tlz::host_has_iec559_float |
const bool tlz::host_is_little_endian = check_host_little_endian_() |