#ifndef DEPTHGUIDE_IMAGE_VIEWER_H #define DEPTHGUIDE_IMAGE_VIEWER_H #include "object_manager.h" #include "render/render_utility.h" #include enum image_viewer_mode { VIEW_COLOR_DEPTH, VIEW_STEREO }; class image_viewer { public: struct create_config { image_viewer_mode mode = VIEW_COLOR_DEPTH; bool flip_y = false; smart_cuda_stream *stream = nullptr; union { struct { obj_name_type c_name, d_name; } color_depth; } extra = {}; }; explicit image_viewer(create_config conf); ~image_viewer(); void show(); void render(); private: struct impl; std::unique_ptr pimpl; }; #endif //DEPTHGUIDE_IMAGE_VIEWER_H