Skip to content

Commit e931013

Browse files
fix vpConvergenceMetric
1 parent 9685f17 commit e931013

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/tracker/rbt/src/core/vpRBConvergenceMetric.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#ifdef VISP_HAVE_NLOHMANN_JSON
3434
#include VISP_NLOHMANN_JSON(json_fwd.hpp)
3535

36+
BEGIN_VISP_NAMESPACE
3637
std::shared_ptr<vpRBConvergenceMetric> vpRBConvergenceMetric::loadFromJSON(const nlohmann::json &j)
3738
{
3839
const std::string key = j.at("type");
@@ -51,6 +52,8 @@ std::shared_ptr<vpRBConvergenceMetric> vpRBConvergenceMetric::loadFromJSON(const
5152
throw vpException(vpException::badValue, "Tried to parse an incorrect convergence metric type: %s", key.c_str());
5253

5354
}
55+
#else
56+
BEGIN_VISP_NAMESPACE
5457
#endif
5558

5659

@@ -132,3 +135,4 @@ double vpRBConvergenceReprojectionMetric::operator()(const vpCameraParameters &c
132135
}
133136
return error / static_cast<double>(uv1.getRows());
134137
}
138+
END_VISP_NAMESPACE

0 commit comments

Comments
 (0)