40 #ifndef PCL_GPU_PEOPLE_TREE_H_
41 #define PCL_GPU_PEOPLE_TREE_H_
43 #include "label_common.h"
44 #include <boost/cstdint.hpp>
57 static const double focal = 1000.;
69 using boost::uint16_t;
71 using boost::uint32_t;
82 dv1 (static_cast<int16_t>(v1)),
83 du2 (static_cast<int16_t>(u2)),
84 dv2 (static_cast<int16_t>(v2))
111 void writeAttribLocs(
const std::string& filename,
const std::vector<AttribLocation>& alocs );
112 void readAttribLocs(
const std::string& filename, std::vector<AttribLocation>& alocs );
113 void readThreshs(
const std::string& filename, std::vector<Attrib>& threshs );
114 void writeThreshs(
const std::string& filename,
const std::vector<Attrib>& threshs );
132 int loadTree( std::istream& is, std::vector<Node>& tree, std::vector<Label>& leaves );
133 int loadTree(
const std::string& filename, std::vector<Node>& tree, std::vector<Label>& leaves );
134 void runThroughTree(
int maxDepth,
const std::vector<Node>& tree,
const std::vector<Label>& leaves,
int W,
int H,
const uint16_t* dmap,
Label* lmap );
140 #endif // PCL_GPU_PEOPLE_TREES_TREE_H_