diff --git a/modules/core/include/visp3/core/vpConvert.h b/modules/core/include/visp3/core/vpConvert.h index eb012e5759..4771692d02 100644 --- a/modules/core/include/visp3/core/vpConvert.h +++ b/modules/core/include/visp3/core/vpConvert.h @@ -36,8 +36,8 @@ \brief Tools for type or general conversion. */ -#ifndef _vpConvert_h_ -#define _vpConvert_h_ +#ifndef VP_CONVERT_H +#define VP_CONVERT_H #include diff --git a/modules/core/include/visp3/core/vpMomentObject.h b/modules/core/include/visp3/core/vpMomentObject.h index 3f601d7dc1..cd96e7cd03 100644 --- a/modules/core/include/visp3/core/vpMomentObject.h +++ b/modules/core/include/visp3/core/vpMomentObject.h @@ -66,7 +66,7 @@ class vpCameraParameters; used moment order as parameter. Then there are three ways to initialize a vpMomentObject. Firstly using - fromImage() you can considerer a dense object \e O defined by an image. + fromImage() you can consider a dense object \e O defined by an image. Secondly, as described in fromVector() you can also define a dense object \e O by a closed contour. In these two cases, 2D basic moments are defined by: \f[m_{ij} = \int \int_{O} x^i y^j dx dy\f] diff --git a/modules/core/src/tracking/moments/vpMomentObject.cpp b/modules/core/src/tracking/moments/vpMomentObject.cpp index 34ea1861c8..a521b03d23 100644 --- a/modules/core/src/tracking/moments/vpMomentObject.cpp +++ b/modules/core/src/tracking/moments/vpMomentObject.cpp @@ -274,6 +274,7 @@ void vpMomentObject::fromVector(std::vector &points) \code #include #include + #include #ifdef ENABLE_VISP_NAMESPACE using namespace VISP_NAMESPACE_NAME; @@ -281,17 +282,14 @@ void vpMomentObject::fromVector(std::vector &points) int main() { - vpCameraParameters cam; // Camera parameters used for pixel to - meter conversion vpImage I(288, 384); // Image used to define - the object + vpCameraParameters cam; // Camera parameters used for pixel to meter conversion + vpImage I(288, 384); // Image used to define the object // ... Initialize the image - unsigned char threshold = 128; // Gray level used to define which part of - the image belong to the dense object + unsigned char threshold = 128; // Gray level used to define which part of the image belong to the dense object - vpMomentObject obj(3); // Create an image moment object with 3 as maximum - order obj.fromImage(I, threshold, cam); // Initialize the object from the - image + vpMomentObject obj(3); // Create an image moment object with 3 as maximum order + obj.fromImage(I, threshold, cam); // Initialize the object from the image return 0; } diff --git a/modules/io/include/visp3/io/vpVideoReader.h b/modules/io/include/visp3/io/vpVideoReader.h index 1e2a9ebb3a..d7421604dc 100644 --- a/modules/io/include/visp3/io/vpVideoReader.h +++ b/modules/io/include/visp3/io/vpVideoReader.h @@ -124,6 +124,8 @@ BEGIN_VISP_NAMESPACE * to match the first and image images of the sequence. * * \code + * #include + * #include * #include * * #ifdef ENABLE_VISP_NAMESPACE @@ -151,6 +153,8 @@ BEGIN_VISP_NAMESPACE * * Note that it is also possible to access to a specific frame using getFrame(). * \code + * #include + * #include * #include * * #ifdef ENABLE_VISP_NAMESPACE diff --git a/modules/io/src/video/vpVideoReader.cpp b/modules/io/src/video/vpVideoReader.cpp index 0e32a78a41..5e41b8b012 100644 --- a/modules/io/src/video/vpVideoReader.cpp +++ b/modules/io/src/video/vpVideoReader.cpp @@ -822,6 +822,8 @@ bool vpVideoReader::isVideoExtensionSupported() const \param I : The captured image. \code + #include + #include #include #ifdef ENABLE_VISP_NAMESPACE @@ -855,6 +857,8 @@ vpVideoReader &vpVideoReader::operator>>(vpImage &I) \param I : The captured image. \code + #include + #include #include #ifdef ENABLE_VISP_NAMESPACE