Scale 3d score with 2d scores.
This commit is contained in:
@ -1429,8 +1429,12 @@ std::pair<std::vector<std::array<float, 4>>, float> TriangulatorInternal::triang
|
||||
{
|
||||
if (mask[i])
|
||||
{
|
||||
float score = 0.5 * (score1[i] + score2[i]);
|
||||
pose3d[i][3] = score;
|
||||
float scoreT = 0.5 * (score1[i] + score2[i]);
|
||||
float scoreP = 0.5 * (pose1[i][2] + pose2[i][2]);
|
||||
|
||||
// Since the triangulation score is less sensitive and generally higher,
|
||||
// weight it stronger to balance the two scores.
|
||||
pose3d[i][3] = 0.9 * scoreT + 0.1 * scoreP;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user