1 #ifndef OPENPOSE_GUI_W_GUI_HPP
2 #define OPENPOSE_GUI_W_GUI_HPP
10 template<
typename TDatums>
14 explicit WGui(
const std::shared_ptr<Gui>& gui);
21 std::shared_ptr<Gui> spGui;
35 template<
typename TDatums>
41 template<
typename TDatums>
46 spGui->initializationOnThread();
48 catch (
const std::exception& e)
50 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
54 template<
typename TDatums>
60 if (tDatums !=
nullptr)
67 if (!tDatums->empty())
69 std::vector<cv::Mat> cvOutputDatas;
70 for (
auto& tDatum : *tDatums)
71 cvOutputDatas.emplace_back(tDatum.cvOutputData);
72 spGui->setImage(cvOutputDatas);
77 if (!tDatums->empty())
86 catch (
const std::exception& e)
89 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
96 #endif // OPENPOSE_GUI_W_GUI_HPP
Definition: workerConsumer.hpp:10
void workConsumer(const TDatums &tDatums)
Definition: wGui.hpp:55
void initializationOnThread()
Definition: wGui.hpp:42
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
void dLog(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Definition: errorAndLog.hpp:53
static void printAveragedTimeMsOnIterationX(const std::string &key, const int line, const std::string &function, const std::string &file, const unsigned long long x=DEFAULT_X)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
WGui(const std::shared_ptr< Gui > &gui)
Definition: wGui.hpp:36
static void timerEnd(const std::string &key)