1 #ifndef OPENPOSE_CORE_W_SCALE_AND_SIZE_EXTRACTOR_HPP
2 #define OPENPOSE_CORE_W_SCALE_AND_SIZE_EXTRACTOR_HPP
10 template<
typename TDatums>
18 void work(TDatums& tDatums);
21 const std::shared_ptr<ScaleAndSizeExtractor> spScaleAndSizeExtractor;
35 template<
typename TDatums>
37 const std::shared_ptr<ScaleAndSizeExtractor>& scaleAndSizeExtractor) :
38 spScaleAndSizeExtractor{scaleAndSizeExtractor}
42 template<
typename TDatums>
47 template<
typename TDatums>
59 for (
auto& tDatum : *tDatums)
61 const Point<int> inputSize{tDatum.cvInputData.cols, tDatum.cvInputData.rows};
62 std::tie(tDatum.scaleInputToNetInputs, tDatum.netInputSizes, tDatum.scaleInputToOutput,
63 tDatum.netOutputSize) = spScaleAndSizeExtractor->extract(inputSize);
72 catch (
const std::exception& e)
76 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
83 #endif // OPENPOSE_CORE_W_SCALE_AND_SIZE_EXTRACTOR_HPP
Definition: wScaleAndSizeExtractor.hpp:11
void initializationOnThread()
Definition: wScaleAndSizeExtractor.hpp:43
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="")
WScaleAndSizeExtractor(const std::shared_ptr< ScaleAndSizeExtractor > &scaleAndSizeExtractor)
Definition: wScaleAndSizeExtractor.hpp:36
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
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
void work(TDatums &tDatums)
Definition: wScaleAndSizeExtractor.hpp:48
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)
static void timerEnd(const std::string &key)