Improved 3d triangulation and [fix] returns new bestReprojectionError when camera removed (#904)

This commit is contained in:
sergionegri
2019-05-16 18:03:46 -04:00
committed by Gines
parent ac2dde6002
commit 0dd7f5aedc
+2 -1
View File
@@ -196,7 +196,7 @@ namespace op
&& projectionErrorSubset < 1.1 * projectionError)
{
bestReprojectionIndex = -1;
break;
continue;
}
// Save maximum
if (bestReprojection > projectionErrorSubset)
@@ -212,6 +212,7 @@ namespace op
cameraMatricesFinal.erase(cameraMatricesFinal.begin() + bestReprojectionIndex);
pointsOnEachCameraFinal.erase(pointsOnEachCameraFinal.begin() + bestReprojectionIndex);
}
projectionError = bestReprojection; // updates the projection error with the best found after camera removal
}
#ifdef USE_CERES