Skip to content

Commit

Permalink
task05 added cameras.out for saharov32 and herzjesu25 datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
I-7 committed Jun 16, 2024
1 parent d730ce6 commit 6523c66
Show file tree
Hide file tree
Showing 7 changed files with 150,261 additions and 14 deletions.
7 changes: 4 additions & 3 deletions data/src/datasets/herzjesu25/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
!.gitignore
!cameras.out
!LINK.txt
!ordered_filenames.txt
137,674 changes: 137,674 additions & 0 deletions data/src/datasets/herzjesu25/cameras.out

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions data/src/datasets/saharov32/.gitignore

This file was deleted.

12,576 changes: 12,576 additions & 0 deletions data/src/datasets/saharov32/cameras.out

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/phg/mvs/depth_maps/pm_depth_maps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include "pm_geometry.h"
#include "pm_depth_maps_defines.h"

#define SOFT_PERTURBATION 1

namespace phg {

matrix3d extractR(const matrix34d &P)
Expand Down
2 changes: 2 additions & 0 deletions src/phg/mvs/depth_maps/pm_depth_maps_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#define COSTS_K_RATIO 1.2f
#define COSTS_BEST_K_LIMIT 5

#define SOFT_PERTURBATION 1

#define VERBOSE_LOGGING
#ifdef VERBOSE_LOGGING
#define verbose_cout std::cout
Expand Down
10 changes: 5 additions & 5 deletions tests/test_depth_maps_pm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
// Datasets:

// достаточно чтобы у вас работало на этом датасете, тестирование на Travis CI тоже ведется на нем
//#define DATASET_DIR "saharov32"
//#define DATASET_DOWNSCALE 4
#define DATASET_DIR "saharov32"
#define DATASET_DOWNSCALE 4

#define DATASET_DIR "temple47"
#define DATASET_DOWNSCALE 8
//#define DATASET_DIR "temple47"
//#define DATASET_DOWNSCALE 8

// скачайте картинки этого датасета в папку data/src/datasets/herzjesu25/ по ссылке из файла LINK.txt в папке датасета
//#define DATASET_DIR "herzjesu25"
Expand Down Expand Up @@ -69,7 +69,7 @@ TEST (test_depth_maps_pm, AllDepthMaps) {
all_points, all_colors, all_normals);
++ndepth_maps;

std::string tie_points_filename = std::string("data/debug/test_depth_maps_pm/") + getTestName() + "/all_points_" + to_string(ndepth_maps) + ".ply";
std::string tie_points_filename = std::string("data/debug/test_depth_maps_pm/") + getTestName() + "/" + DATASET_DIR + "_all_points_" + to_string(ndepth_maps) + ".ply";
phg::exportPointCloud(all_points, tie_points_filename, all_colors, all_normals);
}
}

0 comments on commit 6523c66

Please sign in to comment.