|
28 | 28 | // These constants define the current software version. |
29 | 29 | // They must be updated when the command line is changed. |
30 | 30 | #define ALICEVISION_SOFTWARE_VERSION_MAJOR 2 |
31 | | -#define ALICEVISION_SOFTWARE_VERSION_MINOR 2 |
| 31 | +#define ALICEVISION_SOFTWARE_VERSION_MINOR 3 |
32 | 32 |
|
33 | 33 | using namespace aliceVision; |
34 | 34 |
|
@@ -100,6 +100,7 @@ int aliceVision_main(int argc, char** argv) |
100 | 100 | double maxReprojectionError = 4.0; |
101 | 101 | double maxTriangulationError = 8.0; |
102 | 102 | bool lockAllIntrinsics = false; |
| 103 | + bool enableStructureRefinement = true; |
103 | 104 | int minNbCamerasToRefinePrincipalPoint = 3; |
104 | 105 | bool useRigConstraint = true; |
105 | 106 | int minNbCamerasForRigCalibration = 20; |
@@ -146,9 +147,10 @@ int aliceVision_main(int argc, char** argv) |
146 | 147 | ("maxTriangulationError", po::value<double>(&maxTriangulationError)->default_value(maxTriangulationError), "Maximum reprojection error in the triangulation process.") |
147 | 148 | ("maxReprojectionError", po::value<double>(&maxReprojectionError)->default_value(maxReprojectionError), "Maximum reprojection error in the bundle verification step.") |
148 | 149 | ("lockAllIntrinsics", po::value<bool>(&lockAllIntrinsics)->default_value(lockAllIntrinsics), "Force lock of all camera intrinsic parameters, so they will not be refined during Bundle Adjustment.") |
| 150 | + ("enableStructureRefinement", po::value<bool>(&enableStructureRefinement)->default_value(enableStructureRefinement), "Bundle adjustment will try to optimize the landmarks positions.") |
149 | 151 | ("minNbCamerasToRefinePrincipalPoint", po::value<int>(&minNbCamerasToRefinePrincipalPoint)->default_value(minNbCamerasToRefinePrincipalPoint), |
150 | 152 | "Minimal number of cameras to refine the principal point of the cameras (one of the intrinsic parameters of the camera). " |
151 | | - "If we do not have enough cameras, the principal point in consider is considered in the center of the image. " |
| 153 | + "If we do not have enough cameras, the principal point is considered in the center of the image. " |
152 | 154 | "If minNbCamerasToRefinePrincipalPoint<=0, the principal point is never refined. " |
153 | 155 | "If minNbCamerasToRefinePrincipalPoint==1, the principal point is always refined.") |
154 | 156 | ("useRigConstraint", po::value<bool>(&useRigConstraint)->default_value(useRigConstraint), "Enable/Disable rig constraint.") |
@@ -233,6 +235,7 @@ int aliceVision_main(int argc, char** argv) |
233 | 235 | sfmBundle->setMinAngleLandmark(minAngleForLandmark); |
234 | 236 | sfmBundle->setMaxReprojectionError(maxReprojectionError); |
235 | 237 | sfmBundle->setMinNbCamerasToRefinePrincipalPoint(minNbCamerasToRefinePrincipalPoint); |
| 238 | + sfmBundle->setIsStructureRefinementEnabled(enableStructureRefinement); |
236 | 239 |
|
237 | 240 | sfm::PointFetcher::uptr pointFetcherHandler; |
238 | 241 | if (!meshFilename.empty()) |
|
0 commit comments