41 #include <visp3/core/vpCameraParameters.h>
42 #include <visp3/core/vpColor.h>
43 #include <visp3/core/vpHomogeneousMatrix.h>
44 #include <visp3/core/vpImage.h>
45 #include <visp3/core/vpImageCircle.h>
46 #include <visp3/core/vpImagePoint.h>
47 #include <visp3/core/vpMouseButton.h>
48 #include <visp3/core/vpPolygon.h>
49 #include <visp3/core/vpRect.h>
217 void setScale(
vpScaleType scaleType,
unsigned int width,
unsigned int height);
226 unsigned int computeAutoScale(
unsigned int width,
unsigned int height);
236 inline unsigned int getHeight()
const {
return m_height; }
241 inline unsigned int getWidth()
const {
return m_width; }
260 virtual void setDownScalingFactor(
unsigned int scale);
261 virtual void setDownScalingFactor(vpScaleType scaleType);
264 #ifndef DOXYGEN_SHOULD_SKIP_THIS
275 virtual void closeDisplay() = 0;
287 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1) = 0;
297 inline virtual void displayCircle(
const vpImageCircle &circle,
const vpColor &color,
bool fill =
false,
298 unsigned int thickness = 1)
300 this->displayCircle(circle.
getCenter(),
static_cast<unsigned int>(circle.
getRadius()), color, fill, thickness);
312 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
313 unsigned int thickness = 1) = 0;
322 unsigned int thickness = 1) = 0;
331 unsigned int thickness = 1) = 0;
340 unsigned int thickness = 1) = 0;
361 unsigned int height) = 0;
363 unsigned int height) = 0;
371 virtual void displayPoint(
const vpImagePoint &ip,
const vpColor &color,
unsigned int thickness = 1) = 0;
386 virtual void displayRectangle(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
387 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1) = 0;
401 bool fill =
false,
unsigned int thickness = 1) = 0;
413 virtual void displayRectangle(
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
414 unsigned int thickness = 1) = 0;
433 virtual void flushDisplay() = 0;
439 virtual void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height) = 0;
458 virtual bool getClick(
bool blocking =
true) = 0;
475 virtual bool getClick(
vpImagePoint &ip,
bool blocking =
true) = 0;
534 virtual bool getKeyboardEvent(
bool blocking =
true) = 0;
553 virtual bool getKeyboardEvent(std::string &key,
bool blocking =
true) = 0;
564 virtual bool getPointerMotionEvent(
vpImagePoint &ip) = 0;
581 virtual unsigned int getScreenHeight() = 0;
586 virtual void getScreenSize(
unsigned int &width,
unsigned int &height) = 0;
590 virtual unsigned int getScreenWidth() = 0;
610 virtual void init(
vpImage<vpRGBa> &I,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
672 virtual void init(
unsigned int width,
unsigned int height,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
687 virtual void setFont(
const std::string &font) = 0;
692 virtual void setTitle(
const std::string &title) = 0;
700 virtual void setWindowPosition(
int x,
int y) = 0;
712 unsigned int thickness = 1);
715 unsigned int thickness = 1);
719 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
721 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
723 bool fill =
false,
unsigned int thickness = 1);
725 const vpColor &color,
unsigned int thickness = 1);
727 unsigned int thickness = 1);
729 const vpColor &color,
unsigned int thickness = 1);
731 unsigned int thickness = 1);
732 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
733 const vpColor &color,
unsigned int thickness = 1);
734 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
735 const vpColor &color,
unsigned int thickness = 1);
737 const double &coef2,
const double &coef3,
bool use_normalized_centered_moments,
738 const vpColor &color,
unsigned int thickness = 1,
bool display_center =
false,
739 bool display_arc =
false);
741 const double &coef2,
const double &coef3,
const double &smallalpha,
742 const double &highalpha,
bool use_normalized_centered_moments,
const vpColor &color,
743 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
749 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
751 unsigned int thickness = 1,
bool segment =
true);
752 static void displayLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
753 const vpColor &color,
unsigned int thickness = 1);
754 static void displayLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
755 const vpColor &color,
unsigned int thickness = 1);
757 unsigned int thickness = 1);
759 unsigned int thickness = 1);
761 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
763 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
765 unsigned int height,
const vpColor &color,
bool fill =
false,
766 unsigned int thickness = 1);
769 unsigned int thickness = 1);
771 bool fill =
false,
unsigned int thickness = 1);
773 unsigned int width,
unsigned int height,
const vpColor &color,
774 unsigned int thickness = 1);
775 static void displayRectangle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int width,
unsigned int height,
776 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
777 static void displayRectangle(
const vpImage<unsigned char> &I,
unsigned int i,
unsigned int j,
float angle,
778 unsigned int width,
unsigned int height,
const vpColor &color,
779 unsigned int thickness = 1);
791 bool blocking =
true);
794 bool blocking =
true);
796 bool blocking =
true);
819 unsigned int thickness = 1);
820 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
822 unsigned int thickness = 1);
824 double size,
const vpColor &color,
unsigned int thickness);
826 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
828 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
829 static void displayCircle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
830 bool fill =
false,
unsigned int thickness = 1);
832 unsigned int thickness = 1);
834 unsigned int thickness = 1);
836 const vpColor &color,
unsigned int thickness = 1);
837 static void displayDotLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
838 unsigned int thickness = 1);
839 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
840 const vpColor &color,
unsigned int thickness = 1);
841 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
842 const vpColor &color,
unsigned int thickness = 1);
844 const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
845 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
847 const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
848 bool use_centered_moments,
const vpColor &color,
unsigned int thickness = 1,
849 bool display_center =
false,
bool display_arc =
false);
855 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
857 unsigned int thickness = 1,
bool segment =
true);
858 static void displayLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
859 const vpColor &color,
unsigned int thickness = 1);
860 static void displayLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
861 const vpColor &color,
unsigned int thickness = 1);
863 unsigned int thickness = 1);
864 static void displayPoint(
const vpImage<vpRGBa> &I,
int i,
int j,
const vpColor &color,
unsigned int thickness = 1);
865 static void displayPolygon(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
866 unsigned int thickness = 1,
bool closed =
true);
868 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
870 unsigned int height,
const vpColor &color,
bool fill =
false,
871 unsigned int thickness = 1);
873 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
875 bool fill =
false,
unsigned int thickness = 1);
877 unsigned int height,
const vpColor &color,
unsigned int thickness = 1);
878 static void displayRectangle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int width,
unsigned int height,
879 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
880 static void displayRectangle(
const vpImage<vpRGBa> &I,
unsigned int i,
unsigned int j,
float angle,
881 unsigned int width,
unsigned int height,
const vpColor &color,
882 unsigned int thickness = 1);
885 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
893 bool blocking =
true);
896 bool blocking =
true);
900 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
bool blocking =
true);
901 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I, std::string &key,
bool blocking =
true);
902 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
char *key,
bool blocking =
true);
907 static void setFont(
const vpImage<vpRGBa> &I,
const std::string &font);
908 static void setTitle(
const vpImage<vpRGBa> &I,
const std::string &windowtitle);
909 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
912 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
919 vp_deprecated
static void displayCharString(
const vpImage<unsigned char> &I,
int i,
int j,
const char *
string,
923 vp_deprecated
static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
Generic class defining intrinsic camera parameters.
Class to define RGB colors available for display functionalities.
static const vpColor white
static const vpColor black
static const vpColor none
static const vpColor green
Class that defines generic functionalities for display.
int getWindowXPosition() const
int m_windowXPosition
display position
int m_windowYPosition
display position
int getWindowYPosition() const
unsigned int getHeight() const
bool m_displayHasBeenInitialized
display has been initialized
unsigned int getDownScalingFactor()
unsigned int getWidth() const
Implementation of an homogeneous matrix and operations on such kind of matrices.
Class that defines a 2D circle in an image.
vpImagePoint getCenter() const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Defines a generic 2D polygon.
Defines a rectangle in the plane.
void display(vpImage< unsigned char > &I, const std::string &title)
Display a gray-scale image.
void init(vpImage< unsigned char > &Iinput, vpImage< unsigned char > &IcannyVisp, vpImage< unsigned char > *p_dIx, vpImage< unsigned char > *p_dIy, vpImage< unsigned char > *p_IcannyimgFilter)
Initialize the different displays.