|
@@ -7,6 +7,8 @@
|
|
|
#include "device_v5/ndi_stray_point_tracker.h"
|
|
#include "device_v5/ndi_stray_point_tracker.h"
|
|
|
|
|
|
|
|
// from sophiar
|
|
// from sophiar
|
|
|
|
|
+#include <image_process_v5/cuda_impl/image_enhance.cuh>
|
|
|
|
|
+
|
|
|
#include "core/local_connection.h"
|
|
#include "core/local_connection.h"
|
|
|
|
|
|
|
|
app_remote_ar_v2::app_remote_ar_v2(create_config _conf)
|
|
app_remote_ar_v2::app_remote_ar_v2(create_config _conf)
|
|
@@ -34,6 +36,13 @@ app_remote_ar_v2::app_remote_ar_v2(create_config _conf)
|
|
|
uvc_cam.emplace(uvc_cam_conf);
|
|
uvc_cam.emplace(uvc_cam_conf);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (true) {
|
|
|
|
|
+ auto sub_conf = image_enhance_ui::create_config{
|
|
|
|
|
+ .in_name = left_img_id, .out_name = left_img_fix_id
|
|
|
|
|
+ };
|
|
|
|
|
+ img_isp.emplace(sub_conf);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (true) {
|
|
if (true) {
|
|
|
auto sub_conf = stereo_output_helper::create_config();
|
|
auto sub_conf = stereo_output_helper::create_config();
|
|
|
sub_conf.left_name = left_img_id;
|
|
sub_conf.left_name = left_img_id;
|
|
@@ -47,7 +56,7 @@ app_remote_ar_v2::app_remote_ar_v2(create_config _conf)
|
|
|
if (true) {
|
|
if (true) {
|
|
|
auto sub_conf = image_viewer_v2::create_config();
|
|
auto sub_conf = image_viewer_v2::create_config();
|
|
|
sub_conf.items.emplace_back(uvc_img_id, "Endoscope", true);
|
|
sub_conf.items.emplace_back(uvc_img_id, "Endoscope", true);
|
|
|
- sub_conf.items.emplace_back(left_img_id, "Left", true);
|
|
|
|
|
|
|
+ sub_conf.items.emplace_back(left_img_fix_id, "Left", true);
|
|
|
sub_conf.items.emplace_back(right_img_id, "Right", true);
|
|
sub_conf.items.emplace_back(right_img_id, "Right", true);
|
|
|
bg_viewer.emplace(sub_conf);
|
|
bg_viewer.emplace(sub_conf);
|
|
|
}
|
|
}
|
|
@@ -61,21 +70,21 @@ app_remote_ar_v2::app_remote_ar_v2(create_config _conf)
|
|
|
|
|
|
|
|
if (true) {
|
|
if (true) {
|
|
|
auto sub_conf = versatile_saver::create_config();
|
|
auto sub_conf = versatile_saver::create_config();
|
|
|
- // sub_conf.items.emplace_back(left_img_id, "Left", true);
|
|
|
|
|
- // sub_conf.items.emplace_back(right_img_id, "Right", true);
|
|
|
|
|
|
|
+ sub_conf.items.emplace_back(left_img_id, "Left", true);
|
|
|
|
|
+ sub_conf.items.emplace_back(right_img_id, "Right", true);
|
|
|
sub_conf.items.emplace_back(uvc_img_id, "Endoscope", true);
|
|
sub_conf.items.emplace_back(uvc_img_id, "Endoscope", true);
|
|
|
saver.emplace(sub_conf);
|
|
saver.emplace(sub_conf);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- start_sophiar(LOAD_STR("sophiar_config"),
|
|
|
|
|
- LOAD_STR("sophiar_start_name"));
|
|
|
|
|
|
|
+ // start_sophiar(LOAD_STR("sophiar_config"),
|
|
|
|
|
+ // LOAD_STR("sophiar_start_name"));
|
|
|
|
|
|
|
|
- if (true) {
|
|
|
|
|
- auto sub_conf = ndi_stray_point_tracker::create_config();
|
|
|
|
|
- sub_conf.ip_addr = LOAD_STR("ndi_ip");
|
|
|
|
|
- sub_conf.port = LOAD_NUMBER(uint16_t, "ndi_port");
|
|
|
|
|
- create_ndi_stray_points_tracker(sub_conf);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (true) {
|
|
|
|
|
+ // auto sub_conf = ndi_stray_point_tracker::create_config();
|
|
|
|
|
+ // sub_conf.ip_addr = LOAD_STR("ndi_ip");
|
|
|
|
|
+ // sub_conf.port = LOAD_NUMBER(uint16_t, "ndi_port");
|
|
|
|
|
+ // create_ndi_stray_points_tracker(sub_conf);
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
// if (true) {
|
|
// if (true) {
|
|
|
// auto sub_conf = oblique_calibrator::create_config();
|
|
// auto sub_conf = oblique_calibrator::create_config();
|
|
@@ -97,6 +106,8 @@ void app_remote_ar_v2::show_ui() {
|
|
|
if (ImGui::CollapsingHeader("MVS Camera")) {
|
|
if (ImGui::CollapsingHeader("MVS Camera")) {
|
|
|
auto id_guard = imgui_id_guard("mvs_camera");
|
|
auto id_guard = imgui_id_guard("mvs_camera");
|
|
|
mvs_cam->show();
|
|
mvs_cam->show();
|
|
|
|
|
+ ImGui::SeparatorText("Enhance");
|
|
|
|
|
+ img_isp->show_ui();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (ImGui::CollapsingHeader("UVC Camera")) {
|
|
if (ImGui::CollapsingHeader("UVC Camera")) {
|