licornea_tools
|
#include <viewer.h>
Classes | |
class | int_slider |
class | real_slider |
class | slider_base |
Public Types | |
enum | text_alignment { left, center, right } |
Public Member Functions | |
viewer (const std::string &title, int width, int height, bool resizeable=false) | |
viewer (const std::string &title, cv::Size sz, bool resizeable=false) | |
viewer (int width, int height, bool resizeable=false) | |
viewer (cv::Size sz, bool resizeable=false) | |
viewer (const std::string &title, bool resizeable=false) | |
viewer (const viewer &)=delete | |
~viewer () | |
viewer & | operator= (const viewer &)=delete |
int_slider & | add_int_slider (const std::string &caption, int default_val, int min_val, int max_val, int step=1) |
real_slider & | add_real_slider (const std::string &caption, real default_val, real min_val, real max_val, int steps=100) |
int | width () const |
int | height () const |
void | clear (int width, int height) |
void | clear (cv::Size) |
void | clear () |
void | draw (const cv::Mat_< cv::Vec3b > &, real blend=1.0) |
void | draw (const cv::Mat_< uchar > &, real blend=1.0) |
void | draw (cv::Rect rect, const cv::Mat_< cv::Vec3b > &img, real blend=1.0) |
void | draw (cv::Point pt, const cv::Mat_< cv::Vec3b > &img, real blend=1.0) |
void | draw (cv::Rect rect, const cv::Mat_< uchar > &img, real blend=1.0) |
void | draw (cv::Point pt, const cv::Mat_< uchar > &img, real blend=1.0) |
void | draw_depth (cv::Rect rect, const cv::Mat_< float > &depth_img, float min_d, float max_d, real blend=1.0) |
void | draw_depth (cv::Point pt, const cv::Mat_< float > &depth_img, float min_d, float max_d, real blend=1.0) |
void | draw_text (cv::Rect rect, const std::string &text, text_alignment=left) |
void | draw_text (cv::Rect rect, const std::string &text, text_alignment, cv::Vec3b color) |
void | draw_2d_cross_indicator (cv::Rect rect, real value_x, real value_y, real max_abs_value) |
void | draw_2d_arrow_indicator (cv::Rect rect, real value_x, real value_y, real max_value) |
bool | show (int &keycode) |
bool | show () |
void | show_modal () |
void | update_modal () |
void | close_modal () |
Static Public Member Functions | |
static cv::Mat_< uchar > | visualize_depth (const cv::Mat &, float min_d, float max_d) |
static cv::Mat_< uchar > | visualize_ir (const cv::Mat &, float min_ir, float max_ir) |
Public Attributes | |
cv::Vec3b | black = cv::Vec3b(0, 0, 0) |
cv::Vec3b | white = cv::Vec3b(255, 255, 255) |
cv::Vec3b | indicator_color = cv::Vec3b(255, 100, 100) |
cv::Vec3b | background_color = cv::Vec3b(0, 0, 0) |
cv::Vec3b | text_color = cv::Vec3b(255, 255, 255) |
std::function< void()> | update_callback |
std::function< void(int keycode)> | key_callback |
std::function< void(int event, int x, int y)> | mouse_callback |
tlz::viewer::viewer | ( | const std::string & | title, |
int | width, | ||
int | height, | ||
bool | resizeable = false |
||
) |
|
inline |
tlz::viewer::viewer | ( | int | width, |
int | height, | ||
bool | resizeable = false |
||
) |
|
inline |
|
explicit |
|
delete |
viewer::int_slider & tlz::viewer::add_int_slider | ( | const std::string & | caption, |
int | default_val, | ||
int | min_val, | ||
int | max_val, | ||
int | step = 1 |
||
) |
viewer::real_slider & tlz::viewer::add_real_slider | ( | const std::string & | caption, |
real | default_val, | ||
real | min_val, | ||
real | max_val, | ||
int | steps = 100 |
||
) |
void tlz::viewer::clear | ( | int | width, |
int | height | ||
) |
void tlz::viewer::clear | ( | cv::Size | sz | ) |
void tlz::viewer::draw | ( | const cv::Mat_< cv::Vec3b > & | img, |
real | blend = 1.0 |
||
) |
void tlz::viewer::draw | ( | const cv::Mat_< uchar > & | img, |
real | blend = 1.0 |
||
) |
void tlz::viewer::draw | ( | cv::Rect | rect, |
const cv::Mat_< cv::Vec3b > & | img, | ||
real | blend = 1.0 |
||
) |
|
inline |
void tlz::viewer::draw | ( | cv::Rect | rect, |
const cv::Mat_< uchar > & | img, | ||
real | blend = 1.0 |
||
) |
|
inline |
void tlz::viewer::draw_depth | ( | cv::Rect | rect, |
const cv::Mat_< float > & | depth_img, | ||
float | min_d, | ||
float | max_d, | ||
real | blend = 1.0 |
||
) |
|
inline |
void tlz::viewer::draw_text | ( | cv::Rect | rect, |
const std::string & | text, | ||
text_alignment | align = left |
||
) |
void tlz::viewer::draw_text | ( | cv::Rect | rect, |
const std::string & | text, | ||
text_alignment | align, | ||
cv::Vec3b | color | ||
) |
void tlz::viewer::show_modal | ( | ) |
|
static |
|
static |
cv::Vec3b tlz::viewer::background_color = cv::Vec3b(0, 0, 0) |
cv::Vec3b tlz::viewer::indicator_color = cv::Vec3b(255, 100, 100) |
std::function<void(int event, int x, int y)> tlz::viewer::mouse_callback |
cv::Vec3b tlz::viewer::text_color = cv::Vec3b(255, 255, 255) |