Skip to content

Commit

Permalink
task05 experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
I-7 committed Jun 17, 2024
1 parent 61ec4f5 commit f796c61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/phg/mvs/depth_maps/pm_depth_maps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down
6 changes: 3 additions & 3 deletions tests/test_depth_maps_pm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<cv::Vec3d> all_points;
std::vector<cv::Vec3b> all_colors;
Expand Down

0 comments on commit f796c61

Please sign in to comment.