licornea_tools
Classes | Typedefs | Enumerations | Functions | Variables
tlz Namespace Reference

Classes

class  args_list
 
struct  border
 
struct  camera
 
struct  checkerboard
 
struct  checkerboard_extrinsics
 
struct  checkerboard_pixel_depth_sample
 
struct  checkerboard_visualization_parameters
 
class  dataset
 
class  dataset_group
 
class  dataset_view
 
class  depth_densify_base
 
class  depth_densify_fast
 
class  depth_densify_mine
 
class  depth_densify_splat
 
struct  distortion_parameters
 
class  failed_assertion
 
struct  feature_point
 
struct  feature_points
 Points of different features, on one view. More...
 
struct  feature_slope
 
struct  feature_slopes
 
class  grabber
 
struct  image_correspondence_feature
 Feature on set of views. Optionally one view is "reference". More...
 
struct  image_correspondences
 Set of features, each on set of views. More...
 
struct  index_2d
 
struct  intrinsics
 
struct  ir_to_color_sample
 
struct  kinect_internal_parameters
 
class  kinect_remapping
 
class  kinect_reprojection
 
struct  kinect_reprojection_parameters
 
class  multiprojection
 
struct  obj_img_correspondence
 
struct  obj_img_correspondences_set_dim
 
class  ply_exporter
 Exports point cloud into PLY file. More...
 
class  ply_importer
 Imports point cloud from PLY file. More...
 
class  ply_importer_error
 
struct  point_full
 
struct  point_xyz
 
struct  references_grid
 
struct  relative_camera_positions
 
struct  rgb_color
 RGB color, 8 bit. More...
 
struct  straight_depth
 
struct  view_homography
 
struct  view_index
 
class  viewer
 
struct  ycbcr_color
 YCbCr color, 8 bit. More...
 

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 >
 

Enumerations

enum  line_delimitor { line_delimitor::unknown, line_delimitor::LF, line_delimitor::CR, line_delimitor::CRLF }
 
enum  raw_image_format { raw_image_format::ycbcr420, raw_image_format::rgb_planar, raw_image_format::rgb_interleaved }
 

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_indexget_reference_views (const relative_camera_positions &rcpos)
 
std::vector< view_indexget_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< vec2positions (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_indexget_reference_views_set (const image_correspondences &cors)
 
std::vector< view_indexget_reference_views (const image_correspondences &cors)
 
std::set< view_indexget_all_views_set (const image_correspondences &cors)
 
std::vector< view_indexget_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_basemake_depth_densify (const std::string &method)
 
std::pair< freenect2_color_params, freenect2_ir_paramsto_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 &param)
 
kinect_internal_parameters decode_kinect_internal_parameters (const json &j)
 
json encode_kinect_reprojection_parameters (const kinect_reprojection_parameters &parameters)
 
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< vec3checkerboard_world_corners (int cols, int rows, real square_width)
 
std::vector< vec2checkerboard_image_corners (const checkerboard &chk)
 
cv::Mat_< cv::Vec3b > visualize_checkerboard (const cv::Mat_< cv::Vec3b > &img, const checkerboard &chk, const checkerboard_visualization_parameters &param)
 
cv::Mat_< cv::Vec3b > visualize_checkerboard (const cv::Mat_< uchar > &img, const checkerboard &chk, const checkerboard_visualization_parameters &param)
 
cv::Mat_< cv::Vec3b > visualize_checkerboard (const cv::Mat_< ushort > &img, const checkerboard &chk, const checkerboard_visualization_parameters &param)
 
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_samplecheckerboard_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_listargs ()
 
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, cameracameras_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, cameracameras_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< vec2undistort_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< vec2distort_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_< realdecode_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 >
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 >
clamp (T value, T2 minimum, T3 maximum)
 Clamp value between minimum and maximum value. More...
 
template<typename T >
gcd (T a, T b)
 Compute greatest common divisor of a and b. More...
 
template<typename 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_enginerandom_engine ()
 
template<typename 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 &center, 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 >
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< vec2quadrilateral (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
 

Typedef Documentation

using tlz::byte = typedef std::uint8_t

Definition at line 17 of file common.h.

using tlz::camera_array = typedef std::vector<camera>

Definition at line 26 of file camera.h.

using tlz::default_random_engine = typedef std::mt19937

Definition at line 12 of file misc.h.

template<std::size_t Rows, std::size_t Cols>
using tlz::Eigen_mat = typedef Eigen::Matrix<real, Rows, Cols>

Definition at line 14 of file eigen.h.

using tlz::Eigen_mat22 = typedef Eigen_mat<2, 2>

Definition at line 16 of file eigen.h.

using tlz::Eigen_mat33 = typedef Eigen_mat<3, 3>

Definition at line 15 of file eigen.h.

template<std::size_t Rows>
using tlz::Eigen_matnX = typedef Eigen::Matrix<real, Rows, Eigen::Dynamic>

Definition at line 13 of file eigen.h.

template<std::size_t Cols>
using tlz::Eigen_matXn = typedef Eigen::Matrix<real, Eigen::Dynamic, Cols>

Definition at line 12 of file eigen.h.

using tlz::Eigen_matXX = typedef Eigen::Matrix<real, Eigen::Dynamic, Eigen::Dynamic>

Definition at line 11 of file eigen.h.

template<std::size_t Rows>
using tlz::Eigen_vec = typedef Eigen::Matrix<real, Rows, 1>

Definition at line 19 of file eigen.h.

using tlz::Eigen_vec2 = typedef Eigen_vec<2>

Definition at line 21 of file eigen.h.

using tlz::Eigen_vec3 = typedef Eigen_vec<3>

Definition at line 20 of file eigen.h.

using tlz::Eigen_vecX = typedef Eigen::Matrix<real, Eigen::Dynamic, 1>

Definition at line 18 of file eigen.h.

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::json = typedef nlohmann::json

Definition at line 11 of file json.h.

using tlz::mat33 = typedef cv::Matx<real, 3, 3>

Definition at line 26 of file common.h.

using tlz::mat44 = typedef cv::Matx<real, 4, 4>

Definition at line 27 of file common.h.

template<std::size_t Obj_count, std::size_t Img_count>
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.

template<std::size_t Obj_count, std::size_t Img_count>
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::real = typedef double

Definition at line 16 of file common.h.

using tlz::straight_depths = typedef std::map<std::string, straight_depth>

Definition at line 18 of file straight_depths.h.

using tlz::vec2 = typedef cv::Vec<real, 2>

Definition at line 22 of file common.h.

using tlz::vec3 = typedef cv::Vec<real, 3>

Definition at line 23 of file common.h.

using tlz::vec4 = typedef cv::Vec<real, 4>

Definition at line 24 of file common.h.

Definition at line 17 of file view_homography.h.

template<typename... >
using tlz::void_t = typedef void

Definition at line 14 of file misc.h.

Enumeration Type Documentation

enum tlz::line_delimitor
strong
Enumerator
unknown 
LF 
CR 
CRLF 

Definition at line 11 of file io.h.

enum tlz::raw_image_format
strong
Enumerator
ycbcr420 
rgb_planar 
rgb_interleaved 

Definition at line 8 of file raw_image_io.h.

Function Documentation

cv::Size tlz::add_border ( const border bord,
const cv::Size &  sz 
)

Definition at line 24 of file border.cc.

cv::Point tlz::add_border ( const border bord,
const cv::Point &  pt 
)

Definition at line 31 of file border.cc.

args_list & tlz::args ( )

Definition at line 43 of file args.cc.

bool tlz::batch_mode ( )

Definition at line 58 of file args.cc.

bool tlz::bool_arg ( const std::string &  expected)

Definition at line 161 of file args.cc.

Here is the call graph for this function:

bool tlz::bool_opt_arg ( const std::string &  expected,
bool  def = false 
)
inline

Definition at line 62 of file args.h.

Here is the call graph for this function:

void tlz::calculate_checkerboard_pixel_depths ( const intrinsics intr,
const checkerboard_extrinsics ext,
std::vector< checkerboard_pixel_depth_sample > &  inout_samples 
)

Definition at line 374 of file checkerboard.cc.

Here is the call graph for this function:

real tlz::calculate_parallel_checkerboard_depth ( const checkerboard chk,
const intrinsics intr 
)

Definition at line 312 of file checkerboard.cc.

Here is the call graph for this function:

camera_array tlz::cameras_arg ( )

Definition at line 107 of file camera.cc.

Here is the call graph for this function:

std::map<std::string, camera> tlz::cameras_map ( const std::vector< camera > &  )
std::map<std::string, camera> tlz::cameras_map ( const camera_array arr)

Definition at line 112 of file camera.cc.

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 
)

Definition at line 187 of file checkerboard.cc.

Here is the call graph for this function:

obj_img_correspondences< 1, 1 > tlz::checkerboard_obj_img_correspondences ( const checkerboard chk)

Definition at line 173 of file checkerboard.cc.

Here is the call graph for this function:

vec2 tlz::checkerboard_parallel_measures ( const checkerboard chk)

Definition at line 279 of file checkerboard.cc.

Here is the call graph for this function:

std::vector< checkerboard_pixel_depth_sample > tlz::checkerboard_pixel_depth_samples ( const checkerboard chk,
const cv::Mat_< float > &  depth_image,
int  granularity 
)

Definition at line 344 of file checkerboard.cc.

Here is the call graph for this function:

real tlz::checkerboard_reprojection_error ( const checkerboard chk,
const intrinsics intr,
const checkerboard_extrinsics ext 
)

Definition at line 254 of file checkerboard.cc.

Here is the call graph for this function:

std::vector< vec3 > tlz::checkerboard_world_corners ( int  cols,
int  rows,
real  square_width 
)

Definition at line 101 of file checkerboard.cc.

template<typename T , typename T2 , typename T3 >
T tlz::clamp ( value,
T2  minimum,
T3  maximum 
)

Clamp value between minimum and maximum value.

rgb_color tlz::color_blend ( const rgb_color a,
const rgb_color b 
)

Color blend.

Definition at line 39 of file color.cc.

rgb_color tlz::color_blend ( const rgb_color a,
real  a_weight,
const rgb_color b,
real  b_weight 
)

Definition at line 53 of file color.cc.

Here is the call graph for this function:

template<>
rgb_color tlz::color_convert ( const ycbcr_color in)

Definition at line 11 of file color.cc.

Here is the call graph for this function:

template<>
ycbcr_color tlz::color_convert ( const rgb_color in)

Definition at line 26 of file color.cc.

Here is the call graph for this function:

template<typename Output , typename Input >
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 
)

Definition at line 5 of file opencv.cc.

dataset tlz::dataset_arg ( )

Definition at line 297 of file dataset.cc.

Here is the call graph for this function:

border tlz::decode_border ( const json j_bord)

Definition at line 15 of file border.cc.

Here is the call graph for this function:

camera_array tlz::decode_cameras ( const json j_cams)

Definition at line 60 of file camera.cc.

Here is the call graph for this function:

feature_point tlz::decode_feature_point ( const json j_pt)

Definition at line 5 of file feature_point.cc.

Here is the call graph for this function:

feature_points tlz::decode_feature_points ( const json j_fpoints)

Definition at line 9 of file feature_points.cc.

Here is the call graph for this function:

feature_slopes tlz::decode_feature_slopes ( const json j_fslopes)

Definition at line 14 of file feature_slopes.cc.

Here is the call graph for this function:

image_correspondence_feature tlz::decode_image_correspondence_feature ( const json j_feat)

Definition at line 15 of file image_correspondence.cc.

Here is the call graph for this function:

image_correspondences tlz::decode_image_correspondences ( const json j_cors)

Definition at line 47 of file image_correspondence.cc.

Here is the call graph for this function:

intrinsics tlz::decode_intrinsics ( const json j_intr)

Definition at line 6 of file intrinsics.cc.

Here is the call graph for this function:

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.

Here is the call graph for this function:

cv::Mat_< real > tlz::decode_mat ( const json j)

Definition at line 32 of file json.cc.

multiprojection tlz::decode_multiprojection ( const json j)

Definition at line 5 of file multiprojection.cc.

template<std::size_t Obj_count, std::size_t Img_count>
obj_img_correspondence<Obj_count, Img_count> tlz::decode_obj_img_correspondence ( const json )
template<std::size_t Obj_count, std::size_t Img_count>
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.

Here is the call graph for this function:

straight_depths tlz::decode_straight_depths ( const json j_depths)

Definition at line 20 of file straight_depths.cc.

Here is the call graph for this function:

view_homographies tlz::decode_view_homographies ( const json j_homs)

Definition at line 37 of file view_homography.cc.

Here is the call graph for this function:

view_homography tlz::decode_view_homography ( const json j_hom)

Definition at line 18 of file view_homography.cc.

Here is the call graph for this function:

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 
)

Definition at line 46 of file checkerboard.cc.

Here is the call graph for this function:

checkerboard tlz::detect_ir_checkerboard ( cv::Mat_< uchar > &  img,
int  cols,
int  rows,
real  square_width 
)

Definition at line 62 of file checkerboard.cc.

Here is the call graph for this function:

checkerboard tlz::detect_ir_checkerboard ( cv::Mat_< ushort > &  ir_orig,
int  cols,
int  rows,
real  square_width 
)

Definition at line 87 of file checkerboard.cc.

Here is the call graph for this function:

line_delimitor tlz::detect_line_delimitor ( std::istream &  ,
std::size_t  max_offset = 512 
)

Detects line delimitor used in given file.

Reads up to max_offset characters into file until line delimitor is found. Reads from current stream position, and rewinds to that starting position afterwards. Throws exception if no line ending detected.

Definition at line 34 of file io.cc.

vec2 tlz::distort_point ( const intrinsics intr,
const vec2 undistorted 
)

Definition at line 82 of file intrinsics.cc.

Here is the call graph for this function:

std::vector< vec2 > tlz::distort_points ( const intrinsics intr,
const std::vector< vec2 > &  undistorted 
)

Definition at line 106 of file intrinsics.cc.

Here is the call graph for this function:

json tlz::encode_border ( const border bord)

Definition at line 5 of file border.cc.

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)

Definition at line 23 of file feature_points.cc.

Here is the call graph for this function:

json tlz::encode_feature_slopes ( const feature_slopes fslopes)

Definition at line 34 of file feature_slopes.cc.

Here is the call graph for this function:

json tlz::encode_image_correspondence_feature ( const image_correspondence_feature feat)

Definition at line 31 of file image_correspondence.cc.

Here is the call graph for this function:

json tlz::encode_image_correspondences ( const image_correspondences cors)

Definition at line 60 of file image_correspondence.cc.

Here is the call graph for this function:

json tlz::encode_intrinsics ( const intrinsics intr)

Definition at line 23 of file intrinsics.cc.

Here is the call graph for this function:

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.

Here is the call graph for this function:

template<typename Mat >
json tlz::encode_mat ( const Mat &  mat)

Definition at line 19 of file json.h.

Here is the call graph for this function:

json tlz::encode_mat_ ( const cv::Mat_< real > &  mat)

Definition at line 51 of file json.cc.

json tlz::encode_multiprojection ( const multiprojection mproj)

Definition at line 18 of file multiprojection.cc.

template<std::size_t Obj_count, std::size_t Img_count>
json tlz::encode_obj_img_correspondence ( const obj_img_correspondence< Obj_count, Img_count > &  )
template<std::size_t Obj_count, std::size_t 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.

Here is the call graph for this function:

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)

Definition at line 26 of file view_homography.cc.

Here is the call graph for this function:

json tlz::encode_view_homography ( const view_homography hom)

Definition at line 10 of file view_homography.cc.

Here is the call graph for this function:

std::string tlz::encode_view_index ( view_index  idx)

Definition at line 275 of file dataset.cc.

Here is the call graph for this function:

void tlz::end_line ( std::ostream &  str,
line_delimitor  ld 
)

Definition at line 88 of file io.cc.

std::string tlz::enum_arg ( const std::vector< std::string > &  options)

Definition at line 154 of file args.cc.

Here is the call graph for this function:

std::string tlz::enum_opt_arg ( const std::vector< std::string > &  options,
const std::string &  def 
)
inline

Definition at line 58 of file args.h.

Here is the call graph for this function:

checkerboard_extrinsics tlz::estimate_checkerboard_extrinsics ( const checkerboard chk,
const intrinsics intr 
)

Definition at line 204 of file checkerboard.cc.

Here is the call graph for this function:

std::vector< std::string > tlz::explode ( char  separator,
const std::string &  str 
)

Definition at line 15 of file string.cc.

template<typename T >
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 
)

Definition at line 79 of file camera.cc.

void tlz::export_cameras_file ( const std::string &  filename,
const std::map< std::string, camera > &  map 
)

Definition at line 128 of file camera.cc.

Here is the call graph for this function:

void tlz::export_image_corresponcences ( const image_correspondences cors,
const std::string &  filename 
)

Definition at line 173 of file image_correspondence.cc.

Here is the call graph for this function:

void tlz::export_json_file ( const json j,
const std::string &  filename,
bool  compact 
)

Definition at line 9 of file json.cc.

Here is the call graph for this function:

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 ( )

Definition at line 133 of file feature_points.cc.

Here is the call graph for this function:

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 ( )

Definition at line 120 of file feature_slopes.cc.

Here is the call graph for this function:

bool tlz::file_exists ( const std::string &  filename)
std::string tlz::file_name_extension ( const std::string &  filename)

Definition at line 9 of file string.cc.

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)
template<typename T >
void tlz::flip_endianness ( T &  t)

Definition at line 29 of file io.h.

Here is the call graph for this function:

void tlz::flip_endianness ( byte data,
std::size_t  sz 
)

Definition at line 100 of file io.cc.

template<typename T >
auto tlz::forward_make_shared ( T &&  t)

Get shared_ptr to new object copy- or move- constructed from t.

Returns std::shared_ptr<T> (with T decayed).

Definition at line 71 of file misc.h.

template<typename T >
auto tlz::forward_make_shared_const ( T &&  t)

Get shared_ptr to new const object copy- or move- constructed from t.

Returns std::shared_ptr<const T> (with T decayed).

Definition at line 80 of file misc.h.

template<int Rows>
cv::Vec<real, Rows> tlz::from_eigen ( const Eigen_vec< Rows > &  eigen_vec)

Definition at line 45 of file eigen.h.

template<std::size_t Rows, std::size_t Cols>
cv::Matx<real, Rows, Cols> tlz::from_eigen_mat ( const Eigen_mat< Rows, Cols > &  eigen_mat)

Definition at line 39 of file eigen.h.

kinect_internal_parameters tlz::from_freenect2 ( const freenect2_color_params ,
const freenect2_ir_params  
)
template<typename T >
T tlz::from_string ( const std::string &  )
template<typename T >
T tlz::gcd ( a,
b 
)

Compute greatest common divisor of a and b.

std::vector< view_index > tlz::get_all_views ( const image_correspondences cors)

Definition at line 215 of file image_correspondence.cc.

Here is the call graph for this function:

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 
)

Definition at line 49 of file args.cc.

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)

Definition at line 221 of file image_correspondence.cc.

Here is the call graph for this function:

template<typename T >
T tlz::get_or ( const json j,
const std::string &  key,
const T &  default_value 
)

Definition at line 28 of file json.h.

Here is the call graph for this function:

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)

Definition at line 200 of file image_correspondence.cc.

Here is the call graph for this function:

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)

Definition at line 33 of file references_grid.cc.

Here is the call graph for this function:

std::vector< view_index > tlz::get_target_views ( const relative_camera_positions rcpos)

Definition at line 55 of file relative_camera_positions.cc.

bool tlz::has ( const json j,
const std::string &  key 
)
inline

Definition at line 24 of file json.h.

bool tlz::has_feature_slopes ( const json j_fslopes)

Definition at line 29 of file feature_slopes.cc.

Here is the call graph for this function:

view_homographies tlz::homographies_arg ( )

Definition at line 116 of file view_homography.cc.

Here is the call graph for this function:

view_homography tlz::homography_arg ( )

Definition at line 111 of file view_homography.cc.

Here is the call graph for this function:

image_correspondences tlz::image_correspondences_arg ( )

Definition at line 368 of file image_correspondence.cc.

Here is the call graph for this function:

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 
)

Definition at line 31 of file string.cc.

template<typename T >
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)

Definition at line 185 of file image_correspondence.cc.

Here is the call graph for this function:

json tlz::import_json_file ( const std::string &  filename)

Definition at line 24 of file json.cc.

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 ( )

Definition at line 98 of file args.cc.

Here is the call graph for this function:

std::string tlz::in_filename_opt_arg ( const std::string &  def = "")
inline

Definition at line 40 of file args.h.

Here is the call graph for this function:

long tlz::int_arg ( )

Definition at line 138 of file args.cc.

Here is the call graph for this function:

long tlz::int_opt_arg ( long  def)
inline

Definition at line 50 of file args.h.

Here is the call graph for this function:

intrinsics tlz::intrinsics_arg ( )

Definition at line 119 of file intrinsics.cc.

Here is the call graph for this function:

bool tlz::is_directory ( const std::string &  filename)
template<typename T >
bool tlz::is_even ( x)

Check if x is even.

Definition at line 53 of file misc.h.

Here is the call graph for this function:

bool tlz::is_file ( const std::string &  filename)
template<typename T , typename T2 >
bool tlz::is_multiple_of ( x,
T2  base 
)

Check if x is a multiple of base, including zero.

Definition at line 37 of file misc.h.

template<typename T , typename T2 >
bool tlz::is_nonzero_multiple_of ( x,
T2  base 
)

Check if x is a non-zero multiple of base.

Definition at line 43 of file misc.h.

Here is the call graph for this function:

template<typename T >
bool tlz::is_odd ( x)

Check if x is odd.

Definition at line 49 of file misc.h.

bool tlz::is_orthogonal_matrix ( const mat33 R)

Definition at line 7 of file rotation.cc.

template<typename T >
bool tlz::is_power_of_two ( x)

Check if x is a power of 2.

Definition at line 31 of file misc.h.

bool tlz::is_single_view_homography ( const json j)

Definition at line 48 of file view_homography.cc.

Here is the call graph for this function:

json tlz::json_arg ( )
inline

Definition at line 34 of file json.h.

Here is the call graph for this function:

template<typename T >
T tlz::lcm ( a,
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 
)

Definition at line 75 of file view_homography.cc.

Here is the call graph for this function:

border tlz::maximal_border ( const view_homographies homs,
real  width,
real  height 
)

Definition at line 92 of file view_homography.cc.

Here is the call graph for this function:

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.

real tlz::model_vertical_slope ( const vec2 undistorted_point,
const mat33 K,
const mat33 R 
)

Definition at line 56 of file feature_slopes.cc.

vec3 tlz::mul_h ( const mat44 mat,
const vec3 vec 
)
inline

Definition at line 29 of file common.h.

vec2 tlz::mul_h ( const mat33 mat,
const vec2 vec 
)
inline

Definition at line 35 of file common.h.

bool tlz::operator!= ( const rgb_color a,
const rgb_color b 
)

Definition at line 71 of file color.cc.

bool tlz::operator!= ( const ycbcr_color a,
const ycbcr_color b 
)

Definition at line 79 of file color.cc.

bool tlz::operator!= ( const index_2d a,
const index_2d b 
)
inline

Definition at line 98 of file common.h.

constexpr long double tlz::operator""_deg ( long double  deg)
inline

Definition at line 83 of file common.h.

bool tlz::operator< ( const index_2d a,
const index_2d b 
)
inline

Definition at line 101 of file common.h.

std::ostream & tlz::operator<< ( std::ostream &  stream,
const view_index idx 
)

Definition at line 290 of file dataset.cc.

Here is the call graph for this function:

bool tlz::operator<= ( const index_2d a,
const index_2d b 
)
inline

Definition at line 105 of file common.h.

bool tlz::operator== ( const rgb_color a,
const rgb_color b 
)

Definition at line 67 of file color.cc.

bool tlz::operator== ( const ycbcr_color a,
const ycbcr_color b 
)

Definition at line 75 of file color.cc.

bool tlz::operator== ( const index_2d a,
const index_2d b 
)
inline

Definition at line 95 of file common.h.

bool tlz::operator> ( const index_2d a,
const index_2d b 
)
inline

Definition at line 108 of file common.h.

bool tlz::operator>= ( const index_2d a,
const index_2d b 
)
inline

Definition at line 111 of file common.h.

std::string tlz::out_dirname_arg ( )

Definition at line 121 of file args.cc.

Here is the call graph for this function:

std::string tlz::out_dirname_opt_arg ( const std::string &  def)

Definition at line 127 of file args.cc.

Here is the call graph for this function:

std::string tlz::out_filename_arg ( )

Definition at line 104 of file args.cc.

Here is the call graph for this function:

std::string tlz::out_filename_opt_arg ( const std::string &  def)

Definition at line 110 of file args.cc.

Here is the call graph for this function:

template<typename In , typename Out , typename Func >
std::vector<Out> tlz::point_vec_conv_tpl ( const std::vector< In > &  in,
Func  func 
)

Definition at line 45 of file common.h.

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.

template<typename T >
T tlz::randint ( a,
b 
)

Definition at line 60 of file misc.h.

Here is the call graph for this function:

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 
)

Definition at line 52 of file io.cc.

double tlz::real_arg ( )

Definition at line 146 of file args.cc.

Here is the call graph for this function:

double tlz::real_opt_arg ( double  def)
inline

Definition at line 54 of file args.h.

Here is the call graph for this function:

references_grid tlz::references_grid_arg ( )

Definition at line 60 of file references_grid.cc.

Here is the call graph for this function:

relative_camera_positions tlz::relative_camera_positions_arg ( )

Definition at line 83 of file relative_camera_positions.cc.

Here is the call graph for this function:

std::string tlz::replace_all ( const std::string &  subject_orig,
const std::string &  find,
const std::string &  replace 
)

Definition at line 56 of file string.cc.

Here is the call graph for this function:

std::size_t tlz::replace_all_inplace ( std::string &  subject,
const std::string &  find,
const std::string &  replace 
)

Definition at line 63 of file string.cc.

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 
)

Definition at line 68 of file io.cc.

template<typename Numeric >
Numeric tlz::sq ( Numeric  n)

Compute square of a number.

Definition at line 17 of file misc.h.

Here is the call graph for this function:

straight_depths tlz::straight_depths_arg ( )

Definition at line 34 of file straight_depths.cc.

Here is the call graph for this function:

std::string tlz::string_arg ( )

Definition at line 94 of file args.cc.

Here is the call graph for this function:

int tlz::string_hash ( const std::string &  str)

Definition at line 75 of file string.cc.

std::string tlz::string_opt_arg ( const std::string &  def = "")
inline

Definition at line 36 of file args.h.

Here is the call graph for this function:

template<int Rows>
Eigen_vec<Rows> tlz::to_eigen ( const cv::Vec< real, Rows > &  cv_vec)

Definition at line 30 of file eigen.h.

template<int Rows, int Cols>
Eigen_mat<Rows, Cols> tlz::to_eigen_mat ( const cv::Matx< real, Rows, Cols > &  cv_mat)

Definition at line 24 of file eigen.h.

vec3 tlz::to_euler ( const mat33 R_)

Definition at line 39 of file rotation.cc.

Here is the call graph for this function:

std::pair<freenect2_color_params, freenect2_ir_params> tlz::to_freenect2 ( const kinect_internal_parameters )
std::string tlz::to_lower ( const std::string &  s_orig)

Definition at line 42 of file string.cc.

mat33 tlz::to_rotation_matrix ( const vec3 euler)

Definition at line 17 of file rotation.cc.

template<typename T >
std::string tlz::to_string ( const T &  )
template<typename It >
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 
)

Definition at line 119 of file camera.cc.

std::string tlz::to_upper ( const std::string &  s_orig)

Definition at line 49 of file string.cc.

feature_points tlz::undistort ( const feature_points dist_fpoints,
const intrinsics intr 
)

Definition at line 65 of file feature_points.cc.

Here is the call graph for this function:

image_correspondences tlz::undistort ( const image_correspondences cors,
const intrinsics intr 
)

Definition at line 254 of file image_correspondence.cc.

Here is the call graph for this function:

vec2 tlz::undistort_point ( const intrinsics intr,
const vec2 distorted 
)

Definition at line 38 of file intrinsics.cc.

Here is the call graph for this function:

std::vector< vec2 > tlz::undistort_points ( const intrinsics intr,
const std::vector< vec2 > &  distorted 
)

Definition at line 45 of file intrinsics.cc.

Here is the call graph for this function:

std::vector< cv::Vec2f > tlz::undistort_points ( const intrinsics intr,
const std::vector< cv::Vec2f > &  distorted 
)

Definition at line 62 of file intrinsics.cc.

Here is the call graph for this function:

feature_points tlz::undistorted_feature_points_for_view ( const image_correspondences cors,
view_index  idx,
const intrinsics intr 
)

Definition at line 92 of file feature_points.cc.

Here is the call graph for this function:

real tlz::view_homographies_error ( const view_homographies homs)

Definition at line 53 of file view_homography.cc.

view_index tlz::view_index_arg ( )

Definition at line 166 of file args.cc.

Here is the call graph for this function:

cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard ( const cv::Mat_< cv::Vec3b > &  img,
const checkerboard chk,
const checkerboard_visualization_parameters param 
)

Definition at line 114 of file checkerboard.cc.

Here is the call graph for this function:

cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard ( const cv::Mat_< uchar > &  img,
const checkerboard chk,
const checkerboard_visualization_parameters param 
)

Definition at line 132 of file checkerboard.cc.

Here is the call graph for this function:

cv::Mat_< cv::Vec3b > tlz::visualize_checkerboard ( const cv::Mat_< ushort > &  img,
const checkerboard chk,
const checkerboard_visualization_parameters param 
)

Definition at line 137 of file checkerboard.cc.

Here is the call graph for this function:

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 
)

Definition at line 164 of file checkerboard.cc.

Here is the call graph for this function:

cv::Mat_< cv::Vec3b > tlz::visualize_feature_points ( const feature_points fpoints,
const cv::Mat_< cv::Vec3b > &  back_img,
const border bord 
)

Definition at line 114 of file feature_points.cc.

Here is the call graph for this function:

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 
)

Definition at line 64 of file feature_slopes.cc.

Here is the call graph for this function:

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 
)

Definition at line 284 of file image_correspondence.cc.

Here is the call graph for this function:

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 
)

Definition at line 326 of file image_correspondence.cc.

Here is the call graph for this function:

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 
)

Definition at line 82 of file io.cc.

Here is the call graph for this function:

Variable Documentation

const line_delimitor tlz::default_line_delimitor = line_delimitor::LF

Definition at line 25 of file io.cc.

constexpr real tlz::deg_per_rad = 180.0 / pi

Definition at line 78 of file common.h.

constexpr std::size_t tlz::depth_height = 424

Definition at line 11 of file common.h.

constexpr std::size_t tlz::depth_width = 512

Definition at line 10 of file common.h.

constexpr int tlz::enter_keycode = 10

Definition at line 73 of file common.h.

constexpr real tlz::epsilon = 1.0e-6

Definition at line 5 of file rotation.cc.

constexpr int tlz::escape_keycode = 27

Definition at line 74 of file common.h.

constexpr real tlz::golden_ratio = 1.61803398874989484820

Definition at line 81 of file common.h.

const bool tlz::host_has_iec559_float
Initial value:
=
std::numeric_limits<float>::is_iec559 && std::numeric_limits<double>::is_iec559

Definition at line 27 of file io.cc.

const bool tlz::host_is_little_endian = check_host_little_endian_()

Definition at line 30 of file io.cc.

constexpr real tlz::pi = 3.14159265358979323846

Definition at line 77 of file common.h.

constexpr real tlz::rad_per_deg = pi / 180.0

Definition at line 79 of file common.h.

constexpr std::size_t tlz::texture_height = 1080

Definition at line 13 of file common.h.

constexpr std::size_t tlz::texture_width = 1920

Definition at line 12 of file common.h.