Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[software] incrementalSfM: Add option computeStructureColor #1151

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/software/pipeline/main_incrementalSfM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ int aliceVision_main(int argc, char **argv)
int maxNbMatches = 0;
int minNbMatches = 0;
bool useOnlyMatchesFromInputFolder = false;
bool computeStructureColor = true;

int randomSeed = std::mt19937::default_seed;

Expand Down Expand Up @@ -178,6 +179,8 @@ int aliceVision_main(int argc, char **argv)
"Lock/Unlock scene previously reconstructed.\n")
("observationConstraint", po::value<EFeatureConstraint>(&sfmParams.featureConstraint)->default_value(sfmParams.featureConstraint),
"Use of an observation constraint : basic, scale the observation or use of the covariance.\n")
("computeStructureColor", po::value<bool>(&computeStructureColor)->default_value(computeStructureColor),
"Compute each 3D point color.\n")
("randomSeed", po::value<int>(&randomSeed)->default_value(randomSeed),
"This seed value will generate a sequence using a linear random generator. Set -1 to use a random seed.")
;
Expand Down Expand Up @@ -331,7 +334,9 @@ int aliceVision_main(int argc, char **argv)
}

// get the color for the 3D points
sfmEngine.colorize();
if(computeStructureColor)
sfmEngine.colorize();

sfmEngine.retrieveMarkersId();

ALICEVISION_LOG_INFO("Structure from motion took (s): " + std::to_string(timer.elapsed()));
Expand Down