All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
frameDisplayer.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_GUI_FRAMES_DISPLAY_HPP
#define OPENPOSE_GUI_FRAMES_DISPLAY_HPP
#include <opencv2/core/core.hpp> // cv::Mat
#include <openpose/core/common.hpp>
#include <openpose/gui/enumClasses.hpp>
namespace op
{
class OP_API FrameDisplayer
{
public:
FrameDisplayer(const std::string& windowedName = OPEN_POSE_NAME_AND_VERSION,
const Point<int>& initialWindowedSize = Point<int>{}, const bool fullScreen = false);
virtual ~FrameDisplayer();
// Due to OpenCV visualization issues (all visualization functions must be in the same thread)
void initializationOnThread();
void setFullScreenMode(const FullScreenMode fullScreenMode);
void switchFullScreenMode();
void displayFrame(const cv::Mat& frame, const int waitKeyValue = -1);
void displayFrame(const std::vector<cv::Mat>& frames, const int waitKeyValue = -1);
private:
const std::string mWindowName;
Point<int> mWindowedSize;
FullScreenMode mFullScreenMode;
};
}
#endif // OPENPOSE_GUI_FRAMES_DISPLAY_HPP
enumClasses.hpp
op::FullScreenMode
FullScreenMode
Definition: enumClasses.hpp:23
OPEN_POSE_NAME_AND_VERSION
const std::string OPEN_POSE_NAME_AND_VERSION
Definition: macros.hpp:15
op::FrameDisplayer
Definition: frameDisplayer.hpp:13
op::Point< int >
common.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574