46#include <visp3/core/vpConfig.h>
47#include <visp3/core/vpDebug.h>
48#include <visp3/io/vpImageIo.h>
50#include <visp3/core/vpImage.h>
52#include <visp3/gui/vpDisplayFactory.h>
55#include <visp3/core/vpCameraParameters.h>
56#include <visp3/core/vpHomogeneousMatrix.h>
59#include <visp3/core/vpCircle.h>
60#include <visp3/core/vpCylinder.h>
61#include <visp3/core/vpLine.h>
62#include <visp3/core/vpPoint.h>
63#include <visp3/core/vpSphere.h>
69#ifdef ENABLE_VISP_NAMESPACE
74#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
81 std::cout <<
"ViSP geometric features display example" << std::endl;
83 unsigned int width = 384;
89#if defined(VISP_HAVE_DISPLAY)
91 display->init(I, 100, 100,
"ViSP geometric features display");
139#if defined(VISP_HAVE_DISPLAY)
143 std::cout <<
"ViSP creates \"./geometricFeatures.ppm\" image" << std::endl;
148 std::cout <<
"Catch an exception: " <<
e << std::endl;
149#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
150 if (display !=
nullptr) {
157#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
158 if (display !=
nullptr) {
Generic class defining intrinsic camera parameters.
Class that defines a 3D circle in the object frame and allows forward projection of a 3D circle in th...
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE
void setWorldCoordinates(const vpColVector &oP) VP_OVERRIDE
static const vpColor orange
static const vpColor blue
static const vpColor black
Class that defines a 3D cylinder in the object frame and allows forward projection of a 3D cylinder i...
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE
void setWorldCoordinates(const vpColVector &oP) VP_OVERRIDE
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
static void flush(const vpImage< unsigned char > &I)
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
error that can be emitted by ViSP classes.
Implementation of an homogeneous matrix and operations on such kind of matrices.
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)
Definition of the vpImage class member functions.
Class that defines a 3D line in the object frame and allows forward projection of the line in the cam...
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE
void setWorldCoordinates(const double &oA1, const double &oB1, const double &oC1, const double &oD1, const double &oA2, const double &oB2, const double &oC2, const double &oD2)
Class that defines a 3D point in the object frame and allows forward projection of a 3D point in the ...
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE
void setWorldCoordinates(double oX, double oY, double oZ)
Implementation of a rotation matrix and operations on such kind of matrices.
Implementation of a rotation vector as Euler angle minimal representation.
Class that defines a 3D sphere in the object frame and allows forward projection of a 3D sphere in th...
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE
void setWorldCoordinates(const vpColVector &oP) VP_OVERRIDE
Class that consider the case of a translation vector.
std::shared_ptr< vpDisplay > createDisplay()
Return a smart pointer vpDisplay specialization if a GUI library is available or nullptr otherwise.
vpDisplay * allocateDisplay()
Return a newly allocated vpDisplay specialization if a GUI library is available or nullptr otherwise.