Skip to content

Commit

Permalink
[FIX] Moved wrongly placed END_VISP_NAMESPACE + include forgotten vpC…
Browse files Browse the repository at this point in the history
…Onfig
  • Loading branch information
rlagneau committed Jun 4, 2024
1 parent 14e5d4a commit 90136e6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 17 deletions.
3 changes: 2 additions & 1 deletion modules/core/include/visp3/core/vpCylinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define vpCylinder_hh

#include <math.h>
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpHomogeneousMatrix.h>
#include <visp3/core/vpMath.h>

Expand Down Expand Up @@ -96,7 +97,7 @@ BEGIN_VISP_NAMESPACE
* get_p(), getRho1(), getTheta1() and getRho2(), getTheta2() allow to access to the
* projected line parameters.
*/
class VISP_EXPORT vpCylinder : public vpForwardProjection
class VISP_EXPORT vpCylinder : public vpForwardProjection
{
public:
typedef enum
Expand Down
1 change: 1 addition & 0 deletions modules/core/include/visp3/core/vpPolygon3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include <vector>

#include <visp3/core/vpConfig.h>
#include <visp3/core/vpMeterPixelConversion.h>
#include <visp3/core/vpPixelMeterConversion.h>
#include <visp3/core/vpPoint.h>
Expand Down
4 changes: 2 additions & 2 deletions modules/tracker/mbt/include/visp3/mbt/vpMbScanLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
#include <set>
#include <vector>

#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpImage.h>
#include <visp3/core/vpImageConvert.h>
Expand All @@ -70,7 +70,7 @@ BEGIN_VISP_NAMESPACE
\ingroup group_mbt_faces
*/
class VISP_EXPORT vpMbScanLine
class VISP_EXPORT vpMbScanLine
{
public:
//! Structure to define if a scanline intersection is a starting or an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#ifndef vpMbtDistanceCircle_HH
#define vpMbtDistanceCircle_HH

#include <visp3/core/vpCircle.h>
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpCircle.h>
#include <visp3/core/vpHomogeneousMatrix.h>
#include <visp3/core/vpPoint.h>
#include <visp3/mbt/vpMbHiddenFaces.h>
Expand Down
25 changes: 13 additions & 12 deletions modules/tracker/mbt/include/visp3/mbt/vpMbtTukeyEstimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
#define _vpMbtTukeyEstimator_h_

#include <vector>
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpColVector.h>

#ifndef DOXYGEN_SHOULD_SKIP_THIS

Expand All @@ -59,8 +59,9 @@ template <typename T> class vpMbtTukeyEstimator
std::vector<T> m_normres;
std::vector<T> m_residues;
};
#endif //#ifndef DOXYGEN_SHOULD_SKIP_THIS
END_VISP_NAMESPACE
#endif //#ifndef DOXYGEN_SHOULD_SKIP_THIS

/*
* The code bellow previously in vpMbtTuckeyEstimator.cpp produced
* a link issue with MinGW-W64 x86_64-8.1.0-posix-seh-rt_v6-rev0 (g++ 8.1.0)
Expand Down Expand Up @@ -113,7 +114,7 @@ END_VISP_NAMESPACE
#ifndef DOXYGEN_SHOULD_SKIP_THIS

#if HAVE_TRANSFORM
namespace
namespace
{
// Check if std:c++14 or higher
#if ((__cplusplus >= 201402L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201402L)))
Expand Down Expand Up @@ -180,7 +181,7 @@ void vpMbtTukeyEstimator<T>::MEstimator_impl(const std::vector<T> &residues, std
#else
for (size_t i = 0; i < m_residues.size(); i++) {
m_normres[i] = (std::fabs(residues[i] - med));
}
}
#endif

m_residues = m_normres;
Expand Down Expand Up @@ -254,11 +255,11 @@ inline void vpMbtTukeyEstimator<float>::MEstimator_impl_simd(const std::vector<f
(void)weights;
(void)NoiseThreshold;
#endif
}
}

/*!
* \relates vpMbtTukeyEstimator
*/
/*!
* \relates vpMbtTukeyEstimator
*/
template <>
inline void vpMbtTukeyEstimator<double>::MEstimator_impl_simd(const std::vector<double> &residues,
std::vector<double> &weights,
Expand Down Expand Up @@ -306,11 +307,11 @@ inline void vpMbtTukeyEstimator<double>::MEstimator_impl_simd(const std::vector<
(void)weights;
(void)NoiseThreshold;
#endif
}
}

/*!
* \relates vpMbtTukeyEstimator
*/
/*!
* \relates vpMbtTukeyEstimator
*/
template <>
inline void vpMbtTukeyEstimator<float>::MEstimator(const std::vector<float> &residues, std::vector<float> &weights,
float NoiseThreshold)
Expand Down
3 changes: 2 additions & 1 deletion modules/tracker/me/include/visp3/me/vpMeSite.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#ifndef _vpMeSite_h_
#define _vpMeSite_h_

#include <visp3/core/vpConfig.h>
#include <visp3/core/vpDisplay.h>
#include <visp3/core/vpImage.h>
#include <visp3/core/vpMatrix.h>
Expand All @@ -63,7 +64,7 @@ BEGIN_VISP_NAMESPACE
*
* - sample step.
*/
class VISP_EXPORT vpMeSite
class VISP_EXPORT vpMeSite
{
public:
/*!
Expand Down

0 comments on commit 90136e6

Please sign in to comment.