xvWidgets
ImageTranslator.hpp
1 #pragma once
2 
3 #include <opencv2/core.hpp>
4 
5 #ifdef wxUSE_GUI
6 #include <wx/image.h>
7 #include <wx/bitmap.h>
8 #endif
9 
10 namespace xv{
11 
12 #ifdef wxUSE_GUI
13  typedef wxImage gui_image_t;
14  typedef wxBitmap gui_bitmap_t;
15 #endif
16 
22 {
23 public:
25  virtual ~ImageTranslator();
26 
28  static gui_image_t toNativeGui(const cv::Mat&);
29 };
30 
31 }
Class used to convert between image formats.
Definition: ImageTranslator.hpp:21
Definition: Angle.hpp:8
static gui_image_t toNativeGui(const cv::Mat &)
convert cv::Mat to the native GUI class