Visual Servoing Platform  version 3.1.0
vpFeatureDisplay Class Reference

#include <visp3/core/vpFeatureDisplay.h>

Static Public Member Functions

static void displayCylinder (double rho1, double theta1, double rho2, double theta2, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayCylinder (double rho1, double theta1, double rho2, double theta2, const vpCameraParameters &cam, const vpImage< vpRGBa > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayEllipse (double x, double y, double mu20, double mu11, double m02, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayEllipse (double x, double y, double mu20, double mu11, double m02, const vpCameraParameters &cam, const vpImage< vpRGBa > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayLine (double rho, double theta, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayLine (double rho, double theta, const vpCameraParameters &cam, const vpImage< vpRGBa > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayPoint (double x, double y, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 
static void displayPoint (double x, double y, const vpCameraParameters &cam, const vpImage< vpRGBa > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
 

Detailed Description

Interface with the image for feature display.

Definition at line 62 of file vpFeatureDisplay.h.

Member Function Documentation

◆ displayCylinder() [1/2]

void vpFeatureDisplay::displayCylinder ( double  rho1,
double  theta1,
double  rho2,
double  theta2,
const vpCameraParameters cam,
const vpImage< unsigned char > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
rho1,theta1: Cylinder limb1 parameters.
rho2,theta2: Cylinder limb2 parameters.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.

Definition at line 131 of file vpFeatureDisplay.cpp.

References displayLine(), and vpERROR_TRACE.

Referenced by vpCylinder::display().

◆ displayCylinder() [2/2]

void vpFeatureDisplay::displayCylinder ( double  rho1,
double  theta1,
double  rho2,
double  theta2,
const vpCameraParameters cam,
const vpImage< vpRGBa > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
rho1,theta1: Cylinder limb1 parameters.
rho2,theta2: Cylinder limb2 parameters.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.

Definition at line 290 of file vpFeatureDisplay.cpp.

References displayLine(), and vpERROR_TRACE.

◆ displayEllipse() [1/2]

void vpFeatureDisplay::displayEllipse ( double  x,
double  y,
double  mu20,
double  mu11,
double  mu02,
const vpCameraParameters cam,
const vpImage< unsigned char > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
x,y,mu20,mu11,mu02: Ellipse parameters where:
  • $(x,y)$ are the normalized coordinates of the ellipse center, respectively along the horizontal and vertical axis in the image.
  • $\mu_{20}, \mu_{11}, \mu_{02}$ are the centered moments.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.
See also
vpDisplay::displayEllipse()

Definition at line 155 of file vpFeatureDisplay.cpp.

References vpMeterPixelConversion::convertPoint(), vpDisplay::displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpMath::sqr().

Referenced by vpFeatureEllipse::display(), vpCircle::display(), and vpSphere::display().

◆ displayEllipse() [2/2]

void vpFeatureDisplay::displayEllipse ( double  x,
double  y,
double  mu20,
double  mu11,
double  mu02,
const vpCameraParameters cam,
const vpImage< vpRGBa > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
x,y,mu20,mu11,mu02: Ellipse parameters where:
  • $(x,y)$ are the normalized coordinates of the ellipse center, respectively along the horizontal and vertical axis in the image.
  • $\mu_{20}, \mu_{11}, \mu_{02}$ are the centered moments.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.
See also
vpDisplay::displayEllipse()

Definition at line 315 of file vpFeatureDisplay.cpp.

References vpMeterPixelConversion::convertPoint(), vpDisplay::displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpMath::sqr().

◆ displayLine() [1/2]

void vpFeatureDisplay::displayLine ( double  rho,
double  theta,
const vpCameraParameters cam,
const vpImage< unsigned char > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
rho,theta: Line parameters.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.

Definition at line 84 of file vpFeatureDisplay.cpp.

References vpMeterPixelConversion::convertLine(), vpDisplay::displayLine(), vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpImagePoint::set_ij(), and vpERROR_TRACE.

Referenced by vpLine::display(), vpFeatureLine::display(), and displayCylinder().

◆ displayLine() [2/2]

void vpFeatureDisplay::displayLine ( double  rho,
double  theta,
const vpCameraParameters cam,
const vpImage< vpRGBa > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
rho,theta: Line parameters.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.

Definition at line 243 of file vpFeatureDisplay.cpp.

References vpMeterPixelConversion::convertLine(), vpDisplay::displayLine(), vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpImagePoint::set_ij(), and vpERROR_TRACE.

◆ displayPoint() [1/2]

void vpFeatureDisplay::displayPoint ( double  x,
double  y,
const vpCameraParameters cam,
const vpImage< unsigned char > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
x,y: Point coordinates in meters.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.

Definition at line 64 of file vpFeatureDisplay.cpp.

References vpMeterPixelConversion::convertPoint(), vpDisplay::displayCross(), and vpERROR_TRACE.

Referenced by vpPoint::display(), vpFeatureVanishingPoint::display(), vpFeaturePoint::display(), and vpFeaturePointPolar::display().

◆ displayPoint() [2/2]

void vpFeatureDisplay::displayPoint ( double  x,
double  y,
const vpCameraParameters cam,
const vpImage< vpRGBa > &  I,
const vpColor color = vpColor::green,
unsigned int  thickness = 1 
)
static
Parameters
x,y: Point coordinates in meters.
cam: Camera intrinsic parameters.
I: Image.
color: Color to use to display the feature
thickness: Thickness of the feature representation.

Definition at line 222 of file vpFeatureDisplay.cpp.

References vpMeterPixelConversion::convertPoint(), vpDisplay::displayCross(), and vpERROR_TRACE.