Robotran C Documentation
OpenCvFrameCapture.hh
Go to the documentation of this file.
1 #ifdef FRAME_CAPTURE_OPENCV
2 
3 #ifndef _OPENCV_FRAME_CAPTURE_HH_
4 #define _OPENCV_FRAME_CAPTURE_HH_
5 
6 #include "FrameCapture.hh"
7 #include <opencv2/opencv.hpp>
8 #include <string>
9 
10 namespace OpenGLMbs{
11 
14 class OpenCvFrameCapture: public MbsFrameCapture
15 {
16 
17  public:
18  OpenCvFrameCapture(MbsViewPointRenderer* vp_renderer, std::string root_name = "test");
19  void ProcessScreenShot();
20  cv::Mat GetImage(){return image;}
21 
22  private:
23  std::string root_name;
24  cv::Mat image;
25 };
26 
27 } //namespace OpenGLMbs
28 
29 #endif //_OPENCV_FRAME_CAPTURE_HH_
30 
31 #endif
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
MbsViewPointRenderer.hh
MbsViewPointRenderer class.
mbs_msg
void mbs_msg(char *msg,...)
Send a message.
Definition: mbs_message.c:76
OpenCvFrameCapture.hh
FrameCapture.hh
FrameCapture class.