1 #ifndef OPENPOSE_CORE_W_KEEP_TOP_N_PEOPLE_HPP
2 #define OPENPOSE_CORE_W_KEEP_TOP_N_PEOPLE_HPP
10 template<
typename TDatums>
14 explicit WKeepTopNPeople(
const std::shared_ptr<KeepTopNPeople>& keepTopNPeople);
20 void work(TDatums& tDatums);
23 std::shared_ptr<KeepTopNPeople> spKeepTopNPeople;
35 template<
typename TDatums>
37 spKeepTopNPeople{keepTopNPeople}
41 template<
typename TDatums>
46 template<
typename TDatums>
51 template<
typename TDatums>
63 for (
auto& tDatum : *tDatums)
65 tDatum.poseKeypoints = spKeepTopNPeople->keepTopPeople(tDatum.poseKeypoints, tDatum.poseScores);
66 tDatum.faceKeypoints = spKeepTopNPeople->keepTopPeople(tDatum.faceKeypoints, tDatum.poseScores);
67 tDatum.handKeypoints[0] = spKeepTopNPeople->keepTopPeople(tDatum.handKeypoints[0],
69 tDatum.handKeypoints[1] = spKeepTopNPeople->keepTopPeople(tDatum.handKeypoints[1],
79 catch (
const std::exception& e)
83 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
90 #endif // OPENPOSE_CORE_W_KEEP_TOP_N_PEOPLE_HPP
void initializationOnThread()
Definition: wKeepTopNPeople.hpp:47
void work(TDatums &tDatums)
Definition: wKeepTopNPeople.hpp:52
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: wKeepTopNPeople.hpp:11
WKeepTopNPeople(const std::shared_ptr< KeepTopNPeople > &keepTopNPeople)
Definition: wKeepTopNPeople.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
virtual ~WKeepTopNPeople()
Definition: wKeepTopNPeople.hpp:42
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
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)