OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
frameDisplayer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_GUI_FRAMES_DISPLAY_HPP
2 #define OPENPOSE_GUI_FRAMES_DISPLAY_HPP
3 
4 #include <opencv2/core/core.hpp> // cv::Mat
7 
8 namespace op
9 {
14  {
15  public:
22  FrameDisplayer(const std::string& windowedName = "OpenPose Display", const Point<int>& initialWindowedSize = Point<int>{}, const bool fullScreen = false);
23 
24  // Due to OpenCV visualization issues (all visualization functions must be in the same thread)
25  void initializationOnThread();
26 
31  void setGuiDisplayMode(const GuiDisplayMode displayMode);
32 
36  void switchGuiDisplayMode();
37 
44  void displayFrame(const cv::Mat& frame, const int waitKeyValue = -1);
45 
46  private:
47  const std::string mWindowName;
48  Point<int> mWindowedSize;
49  GuiDisplayMode mGuiDisplayMode;
50  };
51 }
52 
53 #endif // OPENPOSE_GUI_FRAMES_DISPLAY_HPP
Definition: frameDisplayer.hpp:13
GuiDisplayMode
Definition: enumClasses.hpp:10
#define OP_API
Definition: macros.hpp:9