1 #ifndef OPENPOSE_CORE_W_OP_OUTPUT_TO_CV_MAT_HPP
2 #define OPENPOSE_CORE_W_OP_OUTPUT_TO_CV_MAT_HPP
10 template<
typename TDatums>
14 explicit WOpOutputToCvMat(
const std::shared_ptr<OpOutputToCvMat>& opOutputToCvMat);
18 void work(TDatums& tDatums);
21 const std::shared_ptr<OpOutputToCvMat> spOpOutputToCvMat;
35 template<
typename TDatums>
37 spOpOutputToCvMat{opOutputToCvMat}
41 template<
typename TDatums>
46 template<
typename TDatums>
58 for (
auto& tDatum : *tDatums)
59 tDatum.cvOutputData = spOpOutputToCvMat->formatToCvMat(tDatum.outputData);
67 catch (
const std::exception& e)
71 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
78 #endif // OPENPOSE_CORE_W_OP_OUTPUT_TO_CV_MAT_HPP
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="")
Definition: wOpOutputToCvMat.hpp:11
WOpOutputToCvMat(const std::shared_ptr< OpOutputToCvMat > &opOutputToCvMat)
Definition: wOpOutputToCvMat.hpp:36
void work(TDatums &tDatums)
Definition: wOpOutputToCvMat.hpp:47
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:47
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
COMPILE_TEMPLATE_DATUM(WCvMatToOpInput)
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)
void initializationOnThread()
Definition: wOpOutputToCvMat.hpp:42
static void timerEnd(const std::string &key)