mirror of
https://github.com/gosticks/openpose.git
synced 2026-08-16 06:10:25 +00:00
Improved 3d triangulation and [fix] returns new bestReprojectionError when camera removed (#904)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user