MRPT  1.9.9
CStereoGrabber_SVS.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef CStereoGrabber_SVS_H
10 #define CStereoGrabber_SVS_H
11 
13 
14 namespace mrpt::hwdrivers
15 {
16 /** Options used when creating a STOC Videre Design camera capture object
17  * \ingroup mrpt_hwdrivers_grp
18  */
20 {
22  int _frame_width = 640, int _frame_height = 480, double _framerate = 30,
23  int _NDisp = 64, int _Corrsize = 15, int _LR = false, int _Thresh = 10,
24  int _Unique = 13, int _Horopter = 0, int _SpeckleSize = 100,
25  bool _procesOnChip = true, bool _calDisparity = true);
26 
27  /** Capture resolution (Default: 640x480) */
29 
30  /** Indicates if the STOC camera must capture rectified images (Default:
31  * true -> rectified) */
33  /** STOC camera frame rate (Default: 30 fps) */
34  double framerate;
35  /** number of STOC's disparities (Default: 64 ) */
36  int m_NDisp;
37  int m_Corrsize; // correlation window size
38  int m_LR; // no left-right check, not available
39  int m_Thresh; // texture filter
40  int m_Unique; // uniqueness filter
45 };
46 
47 /** A class for grabing stereo images from a STOC camera of Videre Design
48  * NOTE:
49  * - Windows:
50  * - This class is not available.
51  *
52  * - Linux:
53  * - This class is only available when compiling MRPT with
54  *"MRPT_HAS_SVS".
55  * - You must have the videre design's library.
56  * - Capture will be made in grayscale.
57  * - The grabber must be launch in root.
58  *
59  * Once connected to a camera, you can call "getStereoObservation" to retrieve
60  *the Disparity images.
61  *
62  * \sa You'll probably want to use instead the most generic camera grabber in
63  *MRPT: mrpt::hwdrivers::CCameraSensor
64  * \ingroup mrpt_hwdrivers_grp
65  */
67 {
68  protected:
69  /** If this has been correctly initiated */
71 
72  void* m_videoObject; // svsVideoImages*
73  void* m_stereoImage; // svsStereoImage*
74  void* m_disparityParams; // svsDisparityParams*
75  void* m_processObject; // svsStereoProcess
76  unsigned int m_resolutionX;
77  unsigned int m_resolutionY;
78 
79  unsigned char* m_ptrMat;
80 
81  bool m_status;
85 
86  private:
87  public:
89 
90  /** Constructor: */
92  int cameraIndex = 0,
93  const TCaptureOptions_SVS& options = TCaptureOptions_SVS());
94 
95  CStereoGrabber_SVS(const CStereoGrabber_SVS&) = delete;
97 
98  /** Destructor */
99  virtual ~CStereoGrabber_SVS(void);
100 
101  /** Grab stereo images, and return the pair of rectified images.
102  * \param out_observation The object to be filled with sensed data.
103  *
104  * NOTICE: (1) That the member "CObservationStereoImages::refCameraPose"
105  * must be
106  * set on the return of this method, since we don't know here
107  * the robot physical structure.
108  * (2) The images are already rectified.
109  *
110  * \return false on any error, true if all go fine.
111  */
113  mrpt::obs::CObservationStereoImages& out_observation);
114 
115 }; // End of class
116 static_assert(
119  "Copy Check");
120 }
121 #endif
122 
123 
A class for grabing stereo images from a STOC camera of Videre Design NOTE:
virtual ~CStereoGrabber_SVS(void)
Destructor.
int m_NDisp
number of STOC's disparities (Default: 64 )
Contains classes for various device interfaces.
double framerate
STOC camera frame rate (Default: 30 fps)
bool m_bInitialized
If this has been correctly initiated.
int frame_width
Capture resolution (Default: 640x480)
Observation class for either a pair of left+right or left+disparity images from a stereo camera...
CStereoGrabber_SVS(int cameraIndex=0, const TCaptureOptions_SVS &options=TCaptureOptions_SVS())
Constructor:
CStereoGrabber_SVS & operator=(const CStereoGrabber_SVS &)=delete
Options used when creating a STOC Videre Design camera capture object.
bool getRectified
Indicates if the STOC camera must capture rectified images (Default: true -> rectified) ...
TCaptureOptions_SVS(int _frame_width=640, int _frame_height=480, double _framerate=30, int _NDisp=64, int _Corrsize=15, int _LR=false, int _Thresh=10, int _Unique=13, int _Horopter=0, int _SpeckleSize=100, bool _procesOnChip=true, bool _calDisparity=true)
GLsizei const GLfloat * value
Definition: glext.h:4117
bool getStereoObservation(mrpt::obs::CObservationStereoImages &out_observation)
Grab stereo images, and return the pair of rectified images.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020