RSLightFields
Disparity map estimator from 3D light fields
rslf_plot.hpp
Go to the documentation of this file.
1 #ifndef _RSLF_PLOT
2 #define _RSLF_PLOT
3 
4 
5 #include <rslf_types.hpp>
6 
7 
14 namespace rslf
15 {
16 
23 void plot_mat
24 (
25  Mat img,
26  std::string window_name = "Image"
27 );
28 
36 (
37  Mat img
38 );
39 
46 {
47 public:
55  void fit(const Mat& img, bool saturate = true);
61  void copy_and_scale(const Mat& src, Mat& dst);
62 private:
63  double min;
64  double max;
65  bool m_initialized = false;
66 };
67 
79 (
80  Mat img,
81  int fill_row_red = -1,
82  int max_height = -1,
83  int fill_col_red = -1,
84  int max_width = -1
85 );
86 
87 }
88 
89 
90 #endif
void plot_mat(Mat img, std::string window_name="Image")
Plot the provided cv::Mat in a cv::namedWindow.
Definition: rslf_plot.cpp:13
Image normalizer to be fitted on a given image, that will further scale images given the preceding fi...
Definition: rslf_plot.hpp:45
Definition: rslf_depth_computation.hpp:14
Mat copy_and_scale_uchar(Mat img)
Build a copy of the matrix scaled to uchar (0..255).
Definition: rslf_plot.cpp:41
Implement a toolbox of utilitary functions.
cv::Mat Mat
RSLF Matrix class (cv::Mat)
Definition: rslf_types.hpp:26
void copy_and_scale(const Mat &src, Mat &dst)
Scales the input image to uchar and return a copy.
Definition: rslf_plot.cpp:100
Mat draw_red_lines(Mat img, int fill_row_red=-1, int max_height=-1, int fill_col_red=-1, int max_width=-1)
Scale values to plottable (uchar 0..255) and overlays the given matrix with red lines.
Definition: rslf_plot.cpp:111
void fit(const Mat &img, bool saturate=true)
Given an image, fit the internal normalization parameters.
Definition: rslf_plot.cpp:66