Skip to content

Commit

Permalink
[Trifocal+P2Pt] 3D tangent normalization by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabbri committed Nov 6, 2024
1 parent a782a37 commit 31248d5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/openMVG/sfm/pipelines/sequential/sequential_SfM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ inline static void TriangulateTangent2View
Vec3 &Tangent
)
{
Tangent = (R0.transpose()*tangent0.cross(bearing0)).cross(R1.transpose()*tangent1.cross(bearing1));
Tangent = (R0.transpose()*tangent0.cross(bearing0.normalized())).cross(R1.transpose()*tangent1.cross(bearing1.normalized()));
Tangent.normalize();
}

// Go through sfm_data and reconstructs all tangents
Expand Down Expand Up @@ -182,9 +183,6 @@ void SequentialSfMReconstructionEngine::ReconstructAllTangents()
tangent1,
li.T
);
assert(li.T.norm() > 1e-10);
li.T.normalize();
assert(li.T.norm() > .99);
} // end for each landmark
}

Expand Down Expand Up @@ -644,8 +642,6 @@ MakeInitialTriplet3D(const Triplet &current_triplet)
tangent1,
T
);
assert(T.norm() > 1e-10);
T.normalize(); assert(T.norm() > .99);

Vec2 tangent2;
{
Expand Down

0 comments on commit 31248d5

Please sign in to comment.