| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef DEPTHGUIDE_IMAGE_VIEWER_H
- #define DEPTHGUIDE_IMAGE_VIEWER_H
- #include "object_manager.h"
- #include "render/render_utility.h"
- #include <memory>
- 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<impl> pimpl;
- };
- #endif //DEPTHGUIDE_IMAGE_VIEWER_H
|