Skip to content

Commit

Permalink
Trigger new build after fixing visp_sample
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Nov 8, 2024
1 parent 953d237 commit f65fb95
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions modules/core/include/visp3/core/vpConvert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <visp3/core/vpConfig.h>

Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpMomentObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
14 changes: 6 additions & 8 deletions modules/core/src/tracking/moments/vpMomentObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,22 @@ void vpMomentObject::fromVector(std::vector<vpPoint> &points)
\code
#include <visp3/core/vpImage.h>
#include <visp3/core/vpMomentObject.h>
#include <visp3/core/vpCameraParameters.h>
#ifdef ENABLE_VISP_NAMESPACE
using namespace VISP_NAMESPACE_NAME;
#endif
int main()
{
vpCameraParameters cam; // Camera parameters used for pixel to
meter conversion vpImage<unsigned char> I(288, 384); // Image used to define
the object
vpCameraParameters cam; // Camera parameters used for pixel to meter conversion
vpImage<unsigned char> 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;
}
Expand Down
4 changes: 4 additions & 0 deletions modules/io/include/visp3/io/vpVideoReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ BEGIN_VISP_NAMESPACE
* to match the first and image images of the sequence.
*
* \code
* #include <visp3/core/vpRGBa.h>
* #include <visp3/core/vpImage.h>
* #include <visp3/io/vpVideoReader.h>
*
* #ifdef ENABLE_VISP_NAMESPACE
Expand Down Expand Up @@ -151,6 +153,8 @@ BEGIN_VISP_NAMESPACE
*
* Note that it is also possible to access to a specific frame using getFrame().
* \code
* #include <visp3/core/vpRGBa.h>
* #include <visp3/core/vpImage.h>
* #include <visp3/io/vpVideoReader.h>
*
* #ifdef ENABLE_VISP_NAMESPACE
Expand Down
4 changes: 4 additions & 0 deletions modules/io/src/video/vpVideoReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ bool vpVideoReader::isVideoExtensionSupported() const
\param I : The captured image.
\code
#include <visp3/core/vpRGBa.h>
#include <visp3/core/vpImage.h>
#include <visp3/io/vpVideoReader.h>
#ifdef ENABLE_VISP_NAMESPACE
Expand Down Expand Up @@ -855,6 +857,8 @@ vpVideoReader &vpVideoReader::operator>>(vpImage<unsigned char> &I)
\param I : The captured image.
\code
#include <visp3/core/vpRGBa.h>
#include <visp3/core/vpImage.h>
#include <visp3/io/vpVideoReader.h>
#ifdef ENABLE_VISP_NAMESPACE
Expand Down

0 comments on commit f65fb95

Please sign in to comment.