image_augment_helper_v2_impl.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef DEPTHGUIDE_IMAGE_AUGMENT_HELPER_V2_IMPL_H
  2. #define DEPTHGUIDE_IMAGE_AUGMENT_HELPER_V2_IMPL_H
  3. #include "module/image_augment_helper_v2.h"
  4. #include "module/camera_augment_helper_v2.h"
  5. #include "module/viewport_downloader.hpp"
  6. #include "render/render_tools.h"
  7. struct image_augment_helper_v2::impl {
  8. // TODO: make configurable
  9. static constexpr auto max_camera_y_axis_len = 3.f;
  10. image_augment_helper_v2 *q_this = nullptr;
  11. create_config conf;
  12. obj_conn_type img_conn;
  13. using fbo_conf_type =
  14. smart_frame_buffer::create_config;
  15. smart_texture remap_tex;
  16. std::unique_ptr<camera_augment_helper_v2> cam_helper;
  17. fbo_conf_type fbo_aug_conf;
  18. smart_frame_buffer fbo_aug;
  19. fbo_conf_type fbo_conf;
  20. smart_frame_buffer fbo;
  21. color_image_render img_ren;
  22. std::unique_ptr<viewport_downloader> img_down;
  23. image_ptr output_img;
  24. color_image_render out_ren;
  25. explicit impl(create_config conf);
  26. ~impl();
  27. void img_callback(obj_name_type name);
  28. void set_camera_info(const camera_intrinsic_v0 &info);
  29. void render();
  30. // render augment frame buffer
  31. void render_augment();
  32. };
  33. #endif //DEPTHGUIDE_IMAGE_AUGMENT_HELPER_V2_IMPL_H