Point Cloud Library (PCL)
1.14.1-dev
|
Classes | |
struct | AttribLocation |
struct | Node |
class | Histogram |
struct | HistogramPair |
struct | SplitPoint |
struct | LabeledAttrib |
struct | LabeledFeature |
Typedefs | |
using | Attrib = std::int16_t |
using | Label = std::uint8_t |
using | Label32 = std::uint32_t |
using | Depth = std::uint16_t |
Enumerations | |
enum | { NUM_ATTRIBS = 2000 } |
enum | { NUM_LABELS = 32 } |
Functions | |
std::ostream & | operator<< (std::ostream &os, const AttribLocation &aloc) |
std::istream & | operator>> (std::istream &is, AttribLocation &aloc) |
std::istream & | operator>> (std::istream &is, Node &n) |
void | writeAttribLocs (const std::string &filename, const std::vector< AttribLocation > &alocs) |
void | readAttribLocs (const std::string &filename, std::vector< AttribLocation > &alocs) |
void | readThreshs (const std::string &filename, std::vector< Attrib > &threshs) |
void | writeThreshs (const std::string &filename, const std::vector< Attrib > &threshs) |
int | loadTree (std::istream &is, std::vector< Node > &tree, std::vector< Label > &leaves) |
The stream points to ascii data that goes: More... | |
int | loadTree (const std::string &filename, std::vector< Node > &tree, std::vector< Label > &leaves) |
void | runThroughTree (int maxDepth, const std::vector< Node > &tree, const std::vector< Label > &leaves, int W, int H, const std::uint16_t *dmap, Label *lmap) |
static std::uint64_t | numElements (const Histogram &h) |
static double | entropy (const Histogram &h) |
This is cool. More... | |
static double | entropy_merged (const HistogramPair &hp) |
This is a little weird. More... | |
static double | informationGain (const HistogramPair &hp) |
This will compute the gain in information resulting from the split. More... | |
static std::ostream & | operator<< (std::ostream &os, const Histogram &h) |
static std::istream & | operator>> (std::istream &is, Histogram &h) |
static std::ostream & | operator<< (std::ostream &os, const HistogramPair &hp) |
static std::istream & | operator>> (std::istream &is, HistogramPair &hp) |
static void | writeLabeledFeatureVec (std::ostream &os, const std::vector< LabeledFeature > &lfs) |
std::ostream & | operator<< (std::ostream &os, const SplitPoint &sp) |
std::istream & | operator>> (std::istream &is, SplitPoint &sp) |
void | writeInfoFile (const std::string &filename, int attribId, Attrib threshold, double gain, const HistogramPair &HP) |
void | readInfoFile (const std::string &filename, int &attribId, Attrib &threshold, double &gain, HistogramPair &HP) |
Variables | |
constexpr double | focal = 1000. |
using pcl::gpu::people::trees::Attrib = typedef std::int16_t |
using pcl::gpu::people::trees::Depth = typedef std::uint16_t |
using pcl::gpu::people::trees::Label = typedef std::uint8_t |
using pcl::gpu::people::trees::Label32 = typedef std::uint32_t |
|
inlinestatic |
This is cool.
Definition at line 93 of file tree_train.h.
References numElements().
Referenced by entropy_merged(), and informationGain().
|
inlinestatic |
This is a little weird.
. it will just compute the entropy of the merged histograms
Definition at line 108 of file tree_train.h.
References entropy(), pcl::gpu::people::trees::HistogramPair::h_false(), pcl::gpu::people::trees::HistogramPair::h_true(), and numElements().
Referenced by informationGain().
|
inlinestatic |
This will compute the gain in information resulting from the split.
Definition at line 127 of file tree_train.h.
References entropy(), entropy_merged(), pcl::gpu::people::trees::HistogramPair::h_false(), pcl::gpu::people::trees::HistogramPair::h_true(), and numElements().
int pcl::gpu::people::trees::loadTree | ( | const std::string & | filename, |
std::vector< Node > & | tree, | ||
std::vector< Label > & | leaves | ||
) |
int pcl::gpu::people::trees::loadTree | ( | std::istream & | is, |
std::vector< Node > & | tree, | ||
std::vector< Label > & | leaves | ||
) |
The stream points to ascii data that goes:
TreeHeight du1 dv1 du2 dv2 thresh du1 dv1 du2 dv2 thresh ............ label label
there are 2^threeheight -1 nodes ( [du1 dv1 du2 dv2 thresh] lines ) there are 2^threeheight leaves ( [label] lines )
|
inlinestatic |
Definition at line 84 of file tree_train.h.
Referenced by entropy(), entropy_merged(), and informationGain().
|
inline |
Definition at line 106 of file tree.h.
References pcl::gpu::people::trees::AttribLocation::du1, pcl::gpu::people::trees::AttribLocation::du2, pcl::gpu::people::trees::AttribLocation::dv1, and pcl::gpu::people::trees::AttribLocation::dv2.
|
inlinestatic |
Definition at line 144 of file tree_train.h.
|
inlinestatic |
Definition at line 158 of file tree_train.h.
References pcl::gpu::people::trees::HistogramPair::h_false(), and pcl::gpu::people::trees::HistogramPair::h_true().
|
inline |
Definition at line 186 of file tree_train.h.
References pcl::gpu::people::trees::SplitPoint::attribId, and pcl::gpu::people::trees::SplitPoint::threshold.
|
inline |
Definition at line 107 of file tree.h.
References pcl::gpu::people::trees::AttribLocation::du1, pcl::gpu::people::trees::AttribLocation::du2, pcl::gpu::people::trees::AttribLocation::dv1, and pcl::gpu::people::trees::AttribLocation::dv2.
|
inlinestatic |
Definition at line 150 of file tree_train.h.
|
inlinestatic |
Definition at line 164 of file tree_train.h.
References pcl::gpu::people::trees::HistogramPair::h_false(), and pcl::gpu::people::trees::HistogramPair::h_true().
|
inline |
Definition at line 108 of file tree.h.
References pcl::gpu::people::trees::Node::loc, and pcl::gpu::people::trees::Node::thresh.
|
inline |
Definition at line 191 of file tree_train.h.
References pcl::gpu::people::trees::SplitPoint::attribId, and pcl::gpu::people::trees::SplitPoint::threshold.
void pcl::gpu::people::trees::readAttribLocs | ( | const std::string & | filename, |
std::vector< AttribLocation > & | alocs | ||
) |
|
inline |
Definition at line 212 of file tree_train.h.
void pcl::gpu::people::trees::readThreshs | ( | const std::string & | filename, |
std::vector< Attrib > & | threshs | ||
) |
void pcl::gpu::people::trees::runThroughTree | ( | int | maxDepth, |
const std::vector< Node > & | tree, | ||
const std::vector< Label > & | leaves, | ||
int | W, | ||
int | H, | ||
const std::uint16_t * | dmap, | ||
Label * | lmap | ||
) |
void pcl::gpu::people::trees::writeAttribLocs | ( | const std::string & | filename, |
const std::vector< AttribLocation > & | alocs | ||
) |
|
inline |
Definition at line 199 of file tree_train.h.
|
static |
Definition at line 173 of file tree_train.h.
void pcl::gpu::people::trees::writeThreshs | ( | const std::string & | filename, |
const std::vector< Attrib > & | threshs | ||
) |