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_ std::ostream & operator<<(std::ostream &os, const AttribLocation &aloc)
std::istream & operator>>(std::istream &is, AttribLocation &aloc)
void readThreshs(const std::string &filename, std::vector< Attrib > &threshs)
This file defines compatibility wrappers for low level I/O functions.
float label_prob[NUM_PARTS]
void readAttribLocs(const std::string &filename, std::vector< AttribLocation > &alocs)
int loadTree(std::istream &is, std::vector< Node > &tree, std::vector< Label > &leaves)
The stream points to ascii data that goes:
void writeThreshs(const std::string &filename, const std::vector< Attrib > &threshs)
AttribLocation(int u1, int v1, int u2, int v2)
static const double focal
Node(const AttribLocation &l, const Attrib &t)
void runThroughTree(int maxDepth, const std::vector< Node > &tree, const std::vector< Label > &leaves, int W, int H, const uint16_t *dmap, Label *lmap)
void writeAttribLocs(const std::string &filename, const std::vector< AttribLocation > &alocs)