From f796c61d4a8c535ad3841bd1f7ebc4ba6ea303cd Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Mon, 17 Jun 2024 09:30:37 +0300 Subject: [PATCH] task05 experiment --- src/phg/mvs/depth_maps/pm_depth_maps.cpp | 4 ++-- tests/test_depth_maps_pm.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/phg/mvs/depth_maps/pm_depth_maps.cpp b/src/phg/mvs/depth_maps/pm_depth_maps.cpp index c082e02..c7aba72 100644 --- a/src/phg/mvs/depth_maps/pm_depth_maps.cpp +++ b/src/phg/mvs/depth_maps/pm_depth_maps.cpp @@ -119,7 +119,7 @@ namespace phg { // 2) случайной пертурбации текущей гипотезы (мутация и уточнение того что уже смогли найти) #ifdef SOFT_PERTURBATION - float w = 1.0f + 1.0f * (NITERATIONS - iter) / NITERATIONS; // decreasing from 2 to 1 + float w = 1.5f + 0.8f * (NITERATIONS - iter) / NITERATIONS; // decreasing from 2.3 to 1.5 dp = r.nextf(d0 / w, d0 * w); np = cv::normalize(n0 + randomNormalObservedFromCamera(cameras_RtoWorld[ref_cam], r) * w / 4); #else @@ -316,7 +316,7 @@ namespace phg { printCurrentStats(); #endif #ifdef DEBUG_DIR - debugCurrentPoints(to_string(ref_cam) + "_" + to_string(iter) + "_propagation"); + //debugCurrentPoints(to_string(ref_cam) + "_" + to_string(iter) + "_propagation"); #endif } diff --git a/tests/test_depth_maps_pm.cpp b/tests/test_depth_maps_pm.cpp index 2b80384..4b7a838 100644 --- a/tests/test_depth_maps_pm.cpp +++ b/tests/test_depth_maps_pm.cpp @@ -21,7 +21,7 @@ // достаточно чтобы у вас работало на этом датасете, тестирование на Travis CI тоже ведется на нем #define DATASET_DIR "saharov32" -#define DATASET_DOWNSCALE 2 +#define DATASET_DOWNSCALE 4 //#define DATASET_DIR "temple47" //#define DATASET_DOWNSCALE 8 @@ -46,8 +46,8 @@ TEST (test_depth_maps_pm, SingleDepthMap) { TEST (test_depth_maps_pm, AllDepthMaps) { Dataset full_dataset = loadDataset(DATASET_DIR, DATASET_DOWNSCALE); - const size_t ref_camera_shift = 2; - const size_t to_shift = 5; + const size_t ref_camera_shift = 3; + const size_t to_shift = 7; std::vector all_points; std::vector all_colors;