OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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:
25  const Point<int>& initialWindowedSize = Point<int>{}, const bool fullScreen = false);
26 
27  virtual ~FrameDisplayer();
28 
29  // Due to OpenCV visualization issues (all visualization functions must be in the same thread)
30  void initializationOnThread();
31 
36  void setFullScreenMode(const FullScreenMode fullScreenMode);
37 
42  void switchFullScreenMode();
43 
52  void displayFrame(const cv::Mat& frame, const int waitKeyValue = -1);
53 
57  void displayFrame(const std::vector<cv::Mat>& frames, const int waitKeyValue = -1);
58 
59  private:
60  const std::string mWindowName;
61  Point<int> mWindowedSize;
62  FullScreenMode mFullScreenMode;
63  };
64 }
65 
66 #endif // OPENPOSE_GUI_FRAMES_DISPLAY_HPP
FullScreenMode
Definition: enumClasses.hpp:23
const std::string OPEN_POSE_NAME_AND_VERSION
Definition: macros.hpp:15
Definition: frameDisplayer.hpp:13
#define OP_API
Definition: macros.hpp:19
std::string string
Definition: cl2.hpp:574