Skip to content

Commit

Permalink
Second fix for col vector c++98 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Sep 15, 2024
1 parent 495c363 commit 9db7431
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,10 @@ bool vpMbtFaceDepthNormal::planeIsInvalid(const vpHomogeneousMatrix &cMo, double
computePolygonCentroid(polyPts, centroid);
centroid.changeFrame(cMo);
centroid.project();
const vpColVector c({ centroid.get_X(), centroid.get_Y(), centroid.get_Z() });
vpColVector c(3);
c[0] = centroid.get_X();
c[1] = centroid.get_Y();
c[2] = centroid.get_Z();
const double L = c.frobeniusNorm();
const double minD = L * cos(maxAngle);
return fabs(D) <= minD;
Expand Down

0 comments on commit 9db7431

Please sign in to comment.