1 #ifndef OPENPOSE_CORE_W_CV_MAT_TO_OP_OUTPUT_HPP
2 #define OPENPOSE_CORE_W_CV_MAT_TO_OP_OUTPUT_HPP
10 template<
typename TDatums>
14 explicit WCvMatToOpOutput(
const std::shared_ptr<CvMatToOpOutput>& cvMatToOpOutput);
20 void work(TDatums& tDatums);
23 const std::shared_ptr<CvMatToOpOutput> spCvMatToOpOutput;
38 template<
typename TDatums>
40 spCvMatToOpOutput{cvMatToOpOutput}
44 template<
typename TDatums>
49 template<
typename TDatums>
54 template<
typename TDatums>
64 auto& tDatumsNoPtr = *tDatums;
68 for (
auto& tDatumPtr : tDatumsNoPtr)
69 tDatumPtr->outputData = spCvMatToOpOutput->createArray(
70 tDatumPtr->cvInputData, tDatumPtr->scaleInputToOutput, tDatumPtr->netOutputSize);
78 catch (
const std::exception& e)
82 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
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)
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
static void timerEnd(const std::string &key)
WCvMatToOpOutput(const std::shared_ptr< CvMatToOpOutput > &cvMatToOpOutput)
void work(TDatums &tDatums)
void initializationOnThread()
virtual ~WCvMatToOpOutput()
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
void opLogIfDebug(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")