Visual Servoing Platform  version 3.0.0
vpFeatureDisplay.h
1 /****************************************************************************
2  *
3  * This file is part of the ViSP software.
4  * Copyright (C) 2005 - 2015 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.txt at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using ViSP with software that can not be combined with the GNU
13  * GPL, please contact Inria about acquiring a ViSP Professional
14  * Edition License.
15  *
16  * See http://visp.inria.fr for more information.
17  *
18  * This software was developed at:
19  * Inria Rennes - Bretagne Atlantique
20  * Campus Universitaire de Beaulieu
21  * 35042 Rennes Cedex
22  * France
23  *
24  * If you have questions regarding the use of this file, please contact
25  * Inria at visp@inria.fr
26  *
27  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29  *
30  * Description:
31  * Interface with the image for feature display.
32  *
33  * Authors:
34  * Eric Marchand
35  * Fabien Spindler
36  *
37  *****************************************************************************/
38 
39 
40 #ifndef vpFeatureDisplay_H
41 #define vpFeatureDisplay_H
42 
48 //Color / image / display
49 #include <visp3/core/vpImage.h>
50 #include <visp3/core/vpColor.h>
51 #include <visp3/core/vpRGBa.h>
52 
53 // Meter/pixel conversion
54 #include <visp3/core/vpCameraParameters.h>
55 
62 class VISP_EXPORT vpFeatureDisplay
63 {
64 
65 public:
66  static void displayCylinder(double rho1,double theta1,
67  double rho2,double theta2,
68  const vpCameraParameters &cam,
69  const vpImage<unsigned char> &I,
70  const vpColor &color = vpColor::green,
71  unsigned int thickness=1) ;
72  static void displayCylinder(double rho1,double theta1,
73  double rho2,double theta2,
74  const vpCameraParameters &cam,
75  const vpImage<vpRGBa> &I,
76  const vpColor &color = vpColor::green,
77  unsigned int thickness=1) ;
78 
79  static void displayEllipse(double x,double y,
80  double mu20, double mu11, double m02,
81  const vpCameraParameters &cam,
82  const vpImage<unsigned char> &I,
83  const vpColor &color = vpColor::green,
84  unsigned int thickness=1) ;
85 
86  static void displayEllipse(double x,double y,
87  double mu20, double mu11, double m02,
88  const vpCameraParameters &cam,
89  const vpImage<vpRGBa> &I,
90  const vpColor &color = vpColor::green,
91  unsigned int thickness=1) ;
92 
93  static void displayLine(double rho,double theta,
94  const vpCameraParameters &cam,
95  const vpImage<unsigned char> &I,
96  const vpColor &color = vpColor::green,
97  unsigned int thickness=1) ;
98  static void displayLine(double rho,double theta,
99  const vpCameraParameters &cam,
100  const vpImage<vpRGBa> &I,
101  const vpColor &color = vpColor::green,
102  unsigned int thickness=1) ;
103 
104  static void displayPoint(double x,double y,
105  const vpCameraParameters &cam,
106  const vpImage<unsigned char> &I,
107  const vpColor &color = vpColor::green,
108  unsigned int thickness=1) ;
109  static void displayPoint(double x,double y,
110  const vpCameraParameters &cam,
111  const vpImage<vpRGBa> &I,
112  const vpColor &color = vpColor::green,
113  unsigned int thickness=1) ;
114 };
115 
116 #endif
Class to define colors available for display functionnalities.
Definition: vpColor.h:121
static const vpColor green
Definition: vpColor.h:166
Generic class defining intrinsic camera parameters.
Interface with the image for feature display.