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
("minAngleInitialPair", po::value<double>(&minAngle)->default_value(minAngle), "Minimum angle for the initial pair.")
240
+
("maxAngleInitialPair", po::value<double>(&maxAngle)->default_value(maxAngle), "Maximum angle for the initial pair.")
241
+
("initialPairA", po::value<std::string>(&initialPairString.first)->default_value(initialPairString.first), "UID or filepath or filename of the first image.")
242
+
("initialPairB", po::value<std::string>(&initialPairString.second)->default_value(initialPairString.second), "UID or filepath or filename of the second image.");
243
+
235
244
CmdLine cmdline("AliceVision SfM Bootstraping");
236
245
237
246
cmdline.add(requiredParams);
247
+
cmdline.add(optionalParams);
238
248
if(!cmdline.execute(argc, argv))
239
249
{
240
250
return EXIT_FAILURE;
@@ -259,6 +269,45 @@ int aliceVision_main(int argc, char** argv)
259
269
return EXIT_SUCCESS;
260
270
}
261
271
272
+
if (!initialPairString.first.empty() || !initialPairString.second.empty())
273
+
{
274
+
if (initialPairString.first == initialPairString.second)
275
+
{
276
+
ALICEVISION_LOG_ERROR("Invalid image names. You cannot use the same image to initialize a pair.");
0 commit comments