-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/MvgMvsPipeline.py b/MvgMvsPipeline.py.in | ||
similarity index 97% | ||
rename from MvgMvsPipeline.py | ||
rename to MvgMvsPipeline.py.in | ||
index f4914bf..6ecc060 100644 | ||
--- a/MvgMvsPipeline.py | ||
+++ b/MvgMvsPipeline.py.in | ||
@@ -91,12 +91,12 @@ def find(afile): | ||
return None | ||
|
||
# Try to find openMVG and openMVS binaries in PATH | ||
-OPENMVG_BIN = whereis("openMVG_main_SfMInit_ImageListing") | ||
-OPENMVS_BIN = whereis("ReconstructMesh") | ||
+OPENMVG_BIN = "@OPENMVG_TOOLS_PATH@" | ||
+OPENMVS_BIN = "@OPENMVS_TOOLS_PATH@" | ||
|
||
# Try to find openMVG camera sensor database | ||
-CAMERA_SENSOR_DB_FILE = "sensor_width_camera_database.txt" | ||
-CAMERA_SENSOR_DB_DIRECTORY = find(CAMERA_SENSOR_DB_FILE) | ||
+CAMERA_SENSOR_DB_FILE = "@SENSOR_WIDTH_CAMERA_DATABASE_TXT_PATH@" | ||
+CAMERA_SENSOR_DB_DIRECTORY = "@OPENMVG_TOOLS_PATH@" | ||
|
||
# Ask user for openMVG and openMVS directories if not found | ||
if not OPENMVG_BIN: | ||
@@ -175,10 +175,10 @@ class StepsStore: | ||
["-i", "%input_dir%", "-o", "%matches_dir%", "-d", "%camera_file_params%"]], | ||
["Compute features", # 1 | ||
os.path.join(OPENMVG_BIN, "openMVG_main_ComputeFeatures"), | ||
- ["-i", "%matches_dir%/sfm_data.json", "-o", "%matches_dir%", "-m", "SIFT", "-n", "4"]], | ||
+ ["-i", "%matches_dir%/sfm_data.json", "-o", "%matches_dir%", "-m", "SIFT"]], | ||
["Compute matches", # 2 | ||
os.path.join(OPENMVG_BIN, "openMVG_main_ComputeMatches"), | ||
- ["-i", "%matches_dir%/sfm_data.json", "-o", "%matches_dir%", "-n", "HNSWL2", "-r", ".8"]], | ||
+ ["-i", "%matches_dir%/sfm_data.json", "-o", "%matches_dir%", "-n", "AUTO", "-r", ".8"]], | ||
["Incremental reconstruction", # 3 | ||
os.path.join(OPENMVG_BIN, "openMVG_main_IncrementalSfM"), | ||
["-i", "%matches_dir%/sfm_data.json", "-m", "%matches_dir%", "-o", "%reconstruction_dir%"]], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters