Visual Servoing Platform
version 3.2.0 under development (2019-01-22)
|
#include <visp3/core/vpDisplay.h>
Public Types | |
enum | vpScaleType { SCALE_AUTO, SCALE_1, SCALE_2, SCALE_3, SCALE_4, SCALE_5, SCALE_6, SCALE_7, SCALE_8, SCALE_9, SCALE_10, SCALE_DEFAULT } |
Public Member Functions | |
vpDisplay () | |
vpDisplay (const vpDisplay &d) | |
virtual | ~vpDisplay () |
Inherited functionalities from vpDisplay | |
unsigned int | computeAutoScale (unsigned int width, unsigned int height) |
unsigned int | getDownScalingFactor () |
unsigned int | getHeight () const |
unsigned int | getWidth () const |
int | getWindowXPosition () const |
int | getWindowYPosition () const |
bool | isInitialised () |
virtual void | setDownScalingFactor (unsigned int scale) |
virtual void | setDownScalingFactor (vpScaleType scaleType) |
Static Public Member Functions | |
Static public vpDisplay functionalities on gray level images. | |
static void | close (vpImage< unsigned char > &I) |
static void | display (const vpImage< unsigned char > &I) |
static void | displayArrow (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayArrow (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayCamera (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness) |
static void | displayCharString (const vpImage< unsigned char > &I, const vpImagePoint &ip, const char *string, const vpColor &color) |
static void | displayCharString (const vpImage< unsigned char > &I, int i, int j, const char *string, const vpColor &color) |
static void | displayCircle (const vpImage< unsigned char > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCircle (const vpImage< unsigned char > &I, int i, int j, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCross (const vpImage< unsigned char > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayCross (const vpImage< unsigned char > &I, int i, int j, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &ips, const bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &theta1, const double &theta2, bool use_centered_moments, const vpColor &color, unsigned int thickness=1) |
static void | displayFrame (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0)) |
static void | displayLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &ips, const bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, int i, int j, const vpColor &color, unsigned int thickness=1) |
static void | displayPolygon (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayROI (const vpImage< unsigned char > &I, const vpRect &roi) |
static void | displayText (const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color) |
static void | displayText (const vpImage< unsigned char > &I, int i, int j, const std::string &s, const vpColor &color) |
static void | flush (const vpImage< unsigned char > &I) |
static void | flushROI (const vpImage< unsigned char > &I, const vpRect &roi) |
static bool | getClick (const vpImage< unsigned char > &I, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpImagePoint &ip, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< unsigned char > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static unsigned int | getDownScalingFactor (const vpImage< unsigned char > &I) |
static void | getImage (const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, std::string &key, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, char *key, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static void | setBackground (const vpImage< unsigned char > &I, const vpColor &color) |
static void | setFont (const vpImage< unsigned char > &I, const std::string &font) |
static void | setTitle (const vpImage< unsigned char > &I, const std::string &windowtitle) |
static void | setWindowPosition (const vpImage< unsigned char > &I, int winx, int winy) |
Static public vpDisplay functionalities on 32 bits color images. | |
static void | close (vpImage< vpRGBa > &I) |
static void | display (const vpImage< vpRGBa > &I) |
static void | displayArrow (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayArrow (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayCamera (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness) |
static void | displayCharString (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const char *string, const vpColor &color) |
static void | displayCharString (const vpImage< vpRGBa > &I, int i, int j, const char *string, const vpColor &color) |
static void | displayCircle (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCircle (const vpImage< vpRGBa > &I, int i, int j, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCross (const vpImage< vpRGBa > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayCross (const vpImage< vpRGBa > &I, int i, int j, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &ips, const bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &theta1, const double &theta2, bool use_centered_moments, const vpColor &color, unsigned int thickness=1) |
static void | displayFrame (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0)) |
static void | displayLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &ips, const bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, int i, int j, const vpColor &color, unsigned int thickness=1) |
static void | displayPolygon (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
static void | displayText (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color) |
static void | displayText (const vpImage< vpRGBa > &I, int i, int j, const std::string &s, const vpColor &color) |
static void | flush (const vpImage< vpRGBa > &I) |
static void | flushROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
static bool | getClick (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpImagePoint &ip, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< vpRGBa > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static unsigned int | getDownScalingFactor (const vpImage< vpRGBa > &I) |
static void | getImage (const vpImage< vpRGBa > &Is, vpImage< vpRGBa > &Id) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, std::string &key, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, char *key, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static void | setBackground (const vpImage< vpRGBa > &I, const vpColor &color) |
static void | setFont (const vpImage< vpRGBa > &I, const std::string &font) |
static void | setTitle (const vpImage< vpRGBa > &I, const std::string &windowtitle) |
static void | setWindowPosition (const vpImage< vpRGBa > &I, int winx, int winy) |
Protected Member Functions | |
void | setScale (vpScaleType scaleType, unsigned int width, unsigned int height) |
Protected Attributes | |
bool | m_displayHasBeenInitialized |
int | m_windowXPosition |
int | m_windowYPosition |
unsigned int | m_width |
unsigned int | m_height |
std::string | m_title |
unsigned int | m_scale |
vpScaleType | m_scaleType |
Class that defines generic functionnalities for display.
The Tutorial: How to create and build a CMake project that uses ViSP on Unix or Windows is a good starting point to know how to use this class to display an image in a window.
The example below shows how to use this class.
Other examples are available in tutorial-image-viewer.cpp and tutorial-viewer.cpp.
Definition at line 171 of file vpDisplay.h.
Values that could be applied to a display to down scale the size of the display.
Enumerator | |
---|---|
SCALE_AUTO |
Auto down scaling factor computed fom the screen resolution. |
SCALE_1 |
Display and image have the same size. |
SCALE_2 |
Display width and height is down scaled by 2 wrt the image size. |
SCALE_3 |
Display width and height is down scaled by 3 wrt the image size. |
SCALE_4 |
Display width and height is down scaled by 4 wrt the image size. |
SCALE_5 |
Display width and height is down scaled by 5 wrt the image size. |
SCALE_6 |
Display width and height is down scaled by 6 wrt the image size. |
SCALE_7 |
Display width and height is down scaled by 7 wrt the image size. |
SCALE_8 |
Display width and height is down scaled by 8 wrt the image size. |
SCALE_9 |
Display width and height is down scaled by 9 wrt the image size. |
SCALE_10 |
Display width and height is down scaled by 10 wrt the image size. |
SCALE_DEFAULT |
Display and image have the same size. Similar to vpDisplay::SCALE_1. |
Definition at line 176 of file vpDisplay.h.
vpDisplay::vpDisplay | ( | ) |
Default constructor.
Definition at line 58 of file vpDisplay.cpp.
vpDisplay::vpDisplay | ( | const vpDisplay & | d | ) |
Copy constructor.
Definition at line 67 of file vpDisplay.cpp.
|
virtual |
Destructor that desallocates memory.
Definition at line 77 of file vpDisplay.cpp.
References m_displayHasBeenInitialized.
|
static |
Close the display attached to I.
Definition at line 51 of file vpDisplay_uchar.cpp.
Close the display attached to I.
Definition at line 51 of file vpDisplay_rgba.cpp.
unsigned int vpDisplay::computeAutoScale | ( | unsigned int | width, |
unsigned int | height | ||
) |
Computes the down scaling factor that should be applied to the window size to display the image given the resolution of the screen.
width,height | : Image size. |
Definition at line 247 of file vpDisplay.cpp.
Referenced by setScale().
|
static |
Display image I.
I | : Image to display. |
Definition at line 677 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpDisplayX::clearDisplay(), vpDisplayX::closeDisplay(), vpDot2::defineDots(), vpDisplayX::displayCharString(), vpDisplayX::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayX::displayImage(), vpDisplayX::displayImageROI(), vpDisplayX::displayLine(), vpDisplayX::displayPoint(), vpDisplayX::displayRectangle(), vpDisplayX::flushDisplay(), vpDisplayX::flushDisplayROI(), vpDisplayX::getClick(), vpDisplayX::getClickUp(), vpWireFrameSimulator::getExternalImage(), vpDisplayX::getImage(), vpWireFrameSimulator::getInternalImage(), vpDisplayX::getKeyboardEvent(), vpDisplayX::getPointerMotionEvent(), vpDisplayX::getPointerPosition(), vpPlot::init(), vpDisplayX::init(), vpMbTracker::initClick(), vpDisplayOpenCV::on_mouse(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpDisplayX::setFont(), vpSimulatorAfma6::setPosition(), vpDisplayX::setTitle(), vpDisplayX::setWindowPosition(), vpSimulatorAfma6::updateArticularPosition(), vpSimulatorViper850::updateArticularPosition(), and vpPlot::~vpPlot().
Display image I.
I | : Image to display. |
Definition at line 674 of file vpDisplay_rgba.cpp.
|
static |
Display an arrow from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 61 of file vpDisplay_uchar.cpp.
Referenced by vpMeLine::computeRhoTheta(), vpProjectionDisplay::displayCamera(), vpMbtFaceDepthNormal::displayFeature(), vpMeTracker::initTracking(), and vpMeTracker::track().
|
static |
Display an arrow from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | : Initial image point. |
i2,j2 | : Final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 77 of file vpDisplay_uchar.cpp.
|
static |
Display an arrow from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 61 of file vpDisplay_rgba.cpp.
|
static |
Display an arrow from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | : Initial image point. |
i2,j2 | : Final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 77 of file vpDisplay_rgba.cpp.
|
static |
Display the projection of an object camera represented by a cone in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object camera. |
color | : Color used to display the camera in the image. |
thickness | : Thickness of the graphics drawing. |
Definition at line 96 of file vpDisplay_uchar.cpp.
Referenced by vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
static |
Display the projection of an object camera represented by a cone in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object camera. |
color | : Color used to display the camera in the image. |
thickness | : Thickness of the graphics drawing. |
Definition at line 96 of file vpDisplay_rgba.cpp.
|
static |
Display a string at the image point ip location. Use rather displayText() that does the same.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 115 of file vpDisplay_uchar.cpp.
|
static |
Display a string at the image point (i,j) location. Use rather displayText() that does the same.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 134 of file vpDisplay_uchar.cpp.
|
static |
Display a string at the image point ip location. Use rather displayText() that does the same.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 115 of file vpDisplay_rgba.cpp.
|
static |
Display a string at the image point (i,j) location. Use rather displayText() that does the same.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 134 of file vpDisplay_rgba.cpp.
|
static |
Display a circle.
I | : The image associated to the display. |
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 150 of file vpDisplay_uchar.cpp.
Referenced by vpFeatureSegment::display(), vpProjectionDisplay::display(), vpKeyPoint::displayMatching(), and vpDot2::trackAndDisplay().
|
static |
Display a circle.
I | : The image associated to the display. |
i,j | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 166 of file vpDisplay_uchar.cpp.
|
static |
Display a circle.
I | : The image associated to the display. |
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 149 of file vpDisplay_rgba.cpp.
|
static |
Display a circle.
I | : The image associated to the display. |
i,j | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 165 of file vpDisplay_rgba.cpp.
|
static |
Display a cross at the image point ip location.
I | : The image associated to the display. |
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 180 of file vpDisplay_uchar.cpp.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpKltOpencv::display(), vpDot2::display(), vpDot::display(), vpMeNurbs::display(), vpMeSite::display(), vpMeLine::display(), vpMeEllipse::display(), vpKeyPoint::display(), vpCalibration::displayData(), vpCalibration::displayGrid(), vpKeyPoint::displayMatching(), vpPose::displayModel(), vpFeatureDisplay::displayPoint(), vpMbtDistanceKltCylinder::displayPrimitive(), vpMbtDistanceKltPoints::displayPrimitive(), vpMeSite::getQueryList(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeEllipse::initTracking(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpMeEllipse::printParameters(), vpMeLine::sample(), vpDot2::searchDotsInArea(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpKltOpencv::suppressFeature(), vpDot2::track(), vpDot::track(), and vpMeEllipse::~vpMeEllipse().
|
static |
Display a cross at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 194 of file vpDisplay_uchar.cpp.
|
static |
Display a cross at the image point ip location.
I | : The image associated to the display. |
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 179 of file vpDisplay_rgba.cpp.
|
static |
Display a cross at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 193 of file vpDisplay_rgba.cpp.
|
static |
Display a dashed line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 207 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::trackAndDisplay().
|
static |
Display a dashed line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 221 of file vpDisplay_uchar.cpp.
|
static |
Display dashed lines for the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 235 of file vpDisplay_uchar.cpp.
|
static |
Display a dashed line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 206 of file vpDisplay_rgba.cpp.
|
static |
Display a dashed line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 220 of file vpDisplay_rgba.cpp.
|
static |
Display the dashed lines formed by the list of image points
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 234 of file vpDisplay_rgba.cpp.
|
static |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_centered_moments these parameters are:
|
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 296 of file vpDisplay_uchar.cpp.
References vpMath::rad().
Referenced by vpMbtDistanceCircle::display(), vpFeatureDisplay::displayEllipse(), and displayEllipse().
|
static |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_centered_moments these parameters are:
|
theta1,theta2 | : Angles in radians used to select a portion of the ellipse. If theta1=0 and theta2=vpMath::rad(360) all the ellipse is displayed. |
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 356 of file vpDisplay_uchar.cpp.
|
static |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_centered_moments these parameters are:
|
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 295 of file vpDisplay_rgba.cpp.
References displayEllipse(), and vpMath::rad().
|
static |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_centered_moments these parameters are:
|
theta1,theta2 | : Angles in radians used to select a portion of the ellipse. If theta1=0 and theta2=vpMath::rad(360) all the ellipse is displayed. |
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 356 of file vpDisplay_rgba.cpp.
|
static |
Display the projection of an object frame represented by 3 arrows in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line. |
offset | : Offset in pixels applied to the frame origin location in the image. |
Definition at line 378 of file vpDisplay_uchar.cpp.
Referenced by vpPose::display(), vpMbTracker::initClick(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
static |
Display the projection of an object frame represented by 3 arrows in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line. |
offset | : Offset in pixels applied to the frame origin location in the image. |
Definition at line 378 of file vpDisplay_rgba.cpp.
|
static |
Display a line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 392 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpTemplateTrackerZone::display(), vpFeatureSegment::display(), vpMbtDistanceLine::display(), vpMbtDistanceKltCylinder::display(), vpMbtDistanceKltPoints::display(), vpPolygon::display(), vpMbtDistanceCylinder::display(), vpMeLine::display(), vpHistogram::display(), vpMeEllipse::display(), vpWireFrameSimulator::display_scene(), vpFeatureDisplay::displayLine(), vpKeyPoint::displayMatching(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpTemplateTrackerZone::initClick(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
static |
Display a line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 406 of file vpDisplay_uchar.cpp.
|
static |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 419 of file vpDisplay_uchar.cpp.
|
static |
Display a line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 391 of file vpDisplay_rgba.cpp.
|
static |
Display a line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 405 of file vpDisplay_rgba.cpp.
|
static |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, draw a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 418 of file vpDisplay_rgba.cpp.
|
static |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 439 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::display(), vpDot::display(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpDot2::getFreemanChain(), vpMbTracker::initClick(), vpDot::operator==(), vpDot2::searchDotsInArea(), vpMeNurbs::seekExtremitiesCanny(), and vpMeSite::track().
|
static |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 452 of file vpDisplay_uchar.cpp.
|
static |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 438 of file vpDisplay_rgba.cpp.
|
static |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 451 of file vpDisplay_rgba.cpp.
|
static |
Display a polygon defined by a vector of image points.
I | : The image associated to the display. |
vip | : Vector of image point that define the vertexes of the polygon. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 465 of file vpDisplay_uchar.cpp.
|
static |
Display a polygon defined by a vector of image points.
I | : The image associated to the display. |
vip | : Vector of image point that define the vertexes of the polygon. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 463 of file vpDisplay_rgba.cpp.
|
static |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 485 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::searchDotsInArea(), and vpMeNurbs::seekExtremitiesCanny().
|
static |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 563 of file vpDisplay_uchar.cpp.
|
static |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 524 of file vpDisplay_uchar.cpp.
|
static |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
center | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 543 of file vpDisplay_uchar.cpp.
|
static |
Display a rectangle with (i,j) as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
i,j | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 505 of file vpDisplay_uchar.cpp.
|
static |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
i,j | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 583 of file vpDisplay_uchar.cpp.
|
static |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 483 of file vpDisplay_rgba.cpp.
|
static |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 561 of file vpDisplay_rgba.cpp.
|
static |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 522 of file vpDisplay_rgba.cpp.
|
static |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
center | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 541 of file vpDisplay_rgba.cpp.
|
static |
Display a rectangle with (i,j) as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
i,j | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 503 of file vpDisplay_rgba.cpp.
|
static |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
i,j | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 580 of file vpDisplay_rgba.cpp.
Update the display with the content of the image that is in the region of interest.
I | : Image. |
roi | : Region of interest. |
Definition at line 683 of file vpDisplay_uchar.cpp.
Update the display with the content of the image that is in the region of interest.
I | : Image. |
roi | : Region of interest. |
Definition at line 680 of file vpDisplay_rgba.cpp.
|
static |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 601 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpKltOpencv::display(), vpMbtDistanceKltCylinder::displayPrimitive(), vpMbtDistanceKltPoints::displayPrimitive(), vpMbTracker::initClick(), and vpKltOpencv::suppressFeature().
|
static |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 619 of file vpDisplay_uchar.cpp.
|
static |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 598 of file vpDisplay_rgba.cpp.
|
static |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 616 of file vpDisplay_rgba.cpp.
|
static |
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 653 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpMbtDistanceCircle::displayMovingEdges(), vpDot2::getFreemanChain(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeEllipse::initTracking(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpDot2::searchDotsInArea(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpSimulatorAfma6::setPosition(), vpMeEllipse::track(), vpMeLine::track(), vpDot2::trackAndDisplay(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 650 of file vpDisplay_rgba.cpp.
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 664 of file vpDisplay_uchar.cpp.
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 661 of file vpDisplay_rgba.cpp.
|
static |
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 702 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpDot2::defineDots(), getClick(), vpPlot::getPixelValue(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeEllipse::initTracking(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpDot2::initTracking(), vpDot::initTracking(), vpWireFrameSimulator::navigation(), and QPlot::wait().
|
static |
Wait for a click from one of the mouse button and get the position of the clicked image point.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : Blocking behavior.
|
Definition at line 722 of file vpDisplay_uchar.cpp.
|
static |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 747 of file vpDisplay_uchar.cpp.
|
static |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 769 of file vpDisplay_uchar.cpp.
References getClick().
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 699 of file vpDisplay_rgba.cpp.
|
static |
Wait for a click from one of the mouse button and get the position of the clicked image point.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : Blocking behavior.
|
Definition at line 719 of file vpDisplay_rgba.cpp.
|
static |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 744 of file vpDisplay_rgba.cpp.
|
static |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 766 of file vpDisplay_rgba.cpp.
References getClick().
|
static |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 795 of file vpDisplay_uchar.cpp.
Referenced by getClickUp(), and vpWireFrameSimulator::navigation().
|
static |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 817 of file vpDisplay_uchar.cpp.
References getClickUp().
|
static |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 792 of file vpDisplay_rgba.cpp.
|
static |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 814 of file vpDisplay_rgba.cpp.
References getClickUp().
|
inline |
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
Definition at line 229 of file vpDisplay.h.
|
static |
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
I | : Image associated to the display window. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1189 of file vpDisplay_uchar.cpp.
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
I | : Image associated to the display window. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1179 of file vpDisplay_rgba.cpp.
|
inline |
|
static |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 144 of file vpDisplay.cpp.
References vpImageConvert::convert(), and vpImage< Type >::display.
Referenced by getImage().
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 218 of file vpDisplay.cpp.
References vpImage< Type >::display, and getImage().
|
static |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Below you will find an example showing how to use this method.
Definition at line 906 of file vpDisplay_uchar.cpp.
|
static |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 997 of file vpDisplay_uchar.cpp.
|
static |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1088 of file vpDisplay_uchar.cpp.
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Below you will find an example showing how to use this method.
Definition at line 902 of file vpDisplay_rgba.cpp.
|
static |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 993 of file vpDisplay_rgba.cpp.
|
static |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1084 of file vpDisplay_rgba.cpp.
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1102 of file vpDisplay_uchar.cpp.
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1098 of file vpDisplay_rgba.cpp.
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1116 of file vpDisplay_uchar.cpp.
Referenced by vpPlot::getPixelValue(), vpPlot::navigate(), and vpWireFrameSimulator::navigation().
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1112 of file vpDisplay_rgba.cpp.
|
inline |
Return the display width.
Definition at line 239 of file vpDisplay.h.
|
inline |
Return the position (along the horizontal axis) on the screen of the display window.
Definition at line 245 of file vpDisplay.h.
Referenced by vpMbTracker::initClick().
|
inline |
Return the position (along the vertical axis) on the screen of the display window.
Definition at line 250 of file vpDisplay.h.
Referenced by vpMbTracker::initClick().
|
inline |
Check if the display has been initialised
Definition at line 257 of file vpDisplay.h.
References vpColor::green, vpColor::none, and vpColor::white.
Referenced by vpPlot::setFont().
Set the window background.
I | : Image associated to the display window. |
color | Background color. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1130 of file vpDisplay_uchar.cpp.
Set the window background.
I | : Image associated to the display window. |
color | Background color. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1126 of file vpDisplay_rgba.cpp.
|
virtual |
Set the down scale factor applied to the image in order to reduce the display size.
scale | : Scale factor applied to display a rescaled image. |
Reimplemented in vpDisplayWin32.
Definition at line 232 of file vpDisplay.cpp.
References m_displayHasBeenInitialized, and m_scale.
Referenced by setScale().
|
virtual |
Set the down scaling factor either in auto mode or set manually.
This method has to be called before display initialization.
Reimplemented in vpDisplayWin32.
Definition at line 325 of file vpDisplay.cpp.
References m_displayHasBeenInitialized, and m_scaleType.
|
static |
Set the font of a text printed in the display overlay. To print a text you may use displayCharString().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 1148 of file vpDisplay_uchar.cpp.
Referenced by vpPlot::setFont().
Set the font of a text printed in the display overlay. To print a text you may use displayCharString().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 1141 of file vpDisplay_rgba.cpp.
|
protected |
Set the down scaling factor either in auto mode or set manually.
Definition at line 260 of file vpDisplay.cpp.
References computeAutoScale(), SCALE_1, SCALE_10, SCALE_2, SCALE_3, SCALE_4, SCALE_5, SCALE_6, SCALE_7, SCALE_8, SCALE_9, SCALE_AUTO, SCALE_DEFAULT, and setDownScalingFactor().
Referenced by vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
static |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 1160 of file vpDisplay_uchar.cpp.
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 1150 of file vpDisplay_rgba.cpp.
|
static |
Set the window position in the screen.
I | : Image associated to the display window. |
winx,winy | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1175 of file vpDisplay_uchar.cpp.
Set the window position in the screen.
I | : Image associated to the display window. |
winx,winy | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1165 of file vpDisplay_rgba.cpp.
|
protected |
display has been initialized
Definition at line 204 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayWin32::closeDisplay(), vpDisplayGTK::closeDisplay(), vpDisplayX::closeDisplay(), vpDisplayOpenCV::closeDisplay(), vpDisplayGTK::displayArrow(), vpDisplayX::displayArrow(), vpDisplayOpenCV::displayArrow(), vpDisplayGTK::displayCharString(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayGTK::displayCircle(), vpDisplayX::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayCross(), vpDisplayX::displayCross(), vpDisplayOpenCV::displayCross(), vpDisplayGTK::displayDotLine(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::displayLine(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayPoint(), vpDisplayX::displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayGTK::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::flushDisplay(), vpDisplayX::flushDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayGTK::flushDisplayROI(), vpDisplayX::flushDisplayROI(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayGTK::getClick(), vpDisplayX::getClick(), vpDisplayOpenCV::getClick(), vpDisplayGTK::getClickUp(), vpDisplayX::getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayGTK::getImage(), vpDisplayX::getImage(), vpDisplayGTK::getKeyboardEvent(), vpDisplayX::getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayX::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayGTK::getPointerPosition(), vpDisplayX::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayGTK::getScreenSize(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), setDownScalingFactor(), vpDisplayX::setFont(), vpDisplayGTK::setTitle(), vpDisplayX::setTitle(), vpDisplayGTK::setWindowPosition(), vpDisplayOpenCV::setWindowPosition(), vpDisplayX::setWindowPosition(), and ~vpDisplay().
|
protected |
Definition at line 210 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayGTK::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::getImage(), vpDisplayX::getImage(), vpDisplayGTK::init(), vpDisplayX::init(), and vpDisplayOpenCV::init().
|
protected |
Definition at line 212 of file vpDisplay.h.
Referenced by vpDisplayGTK::displayCharString(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayGTK::displayCircle(), vpDisplayX::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayDotLine(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::displayLine(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayWin32::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayX::displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayGTK::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::flushDisplayROI(), vpDisplayWin32::getClick(), vpDisplayGTK::getClick(), vpDisplayX::getClick(), vpDisplayOpenCV::getClick(), vpDisplayWin32::getClickUp(), vpDisplayGTK::getClickUp(), vpDisplayX::getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayWin32::getPointerMotionEvent(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayX::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayWin32::getPointerPosition(), vpDisplayGTK::getPointerPosition(), vpDisplayX::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), and setDownScalingFactor().
|
protected |
Definition at line 213 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), and setDownScalingFactor().
|
protected |
Definition at line 211 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::closeDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::setTitle(), vpDisplayX::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protected |
Definition at line 209 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayGTK::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::getImage(), vpDisplayX::getImage(), vpDisplayGTK::init(), vpDisplayX::init(), and vpDisplayOpenCV::init().
|
protected |
display position
Definition at line 206 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protected |
display position
Definition at line 208 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().