You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("force-neighbors-from-images", boost::program_options::value(&OPT::bForceNeighborsFromImages)->default_value(false), "force estimating neighbor views from image pairs baseline")
185
+
("sample-mesh-for-neighbors", boost::program_options::value(&OPT::fSampleMeshNeighbors)->default_value(0.f), "mesh sampling used for neighbor views estimation (0 - disabled/use mesh vertices, <0 - number of points, >0 - sample density per square unit)")
182
186
("mesh-file", boost::program_options::value<std::string>(&OPT::strMeshFileName), "mesh file name used for image pair overlap estimation")
183
187
("export-roi-file", boost::program_options::value<std::string>(&OPT::strExportROIFileName), "ROI file name to be exported form the scene")
184
188
("import-roi-file", boost::program_options::value<std::string>(&OPT::strImportROIFileName), "ROI file name to be imported into the scene")
@@ -473,8 +477,25 @@ int main(int argc, LPCTSTR* argv)
473
477
#endif
474
478
if ((ARCHIVE_TYPE)OPT::nArchiveType == ARCHIVE_MVS)
475
479
sparsePointCloud = scene.pointcloud;
480
+
if (OPT::bForceNeighborsFromImages) {
481
+
// force estimating neighbor views from image pairs baseline
482
+
if (!scene.IsEmpty()) {
483
+
scene.pointcloud.Release();
484
+
scene.mesh.Release();
485
+
VERBOSE("Remove all scene geometry");
486
+
}
487
+
boolbHasNeighbors(false);
488
+
for (Image& image: scene.images) {
489
+
if (!image.neighbors.IsEmpty()) {
490
+
image.neighbors.Release();
491
+
bHasNeighbors = true;
492
+
}
493
+
}
494
+
if (bHasNeighbors)
495
+
VERBOSE("Removed all image neighbors");
496
+
}
476
497
TD_TIMER_START();
477
-
if (!scene.DenseReconstruction(OPT::nFusionMode, OPT::bCrop2ROI, OPT::fBorderROI)) {
498
+
if (!scene.DenseReconstruction(OPT::nFusionMode, OPT::bCrop2ROI, OPT::fBorderROI, OPT::fSampleMeshNeighbors)) {
0 commit comments