22 #ifndef PSI_SKELETON_DETECTION_H
23 #define PSI_SKELETON_DETECTION_H
45 typedef std::vector<Bbox> Base;
60 (*this)[body_part] = part;
70 return (*
this)[body_part];
85 std::streamsize w = ost.width();
86 std::streamsize p = ost.precision();
87 std::ios::fmtflags f = ost.flags();
90 Skeleton_detection::const_iterator it;
91 for(it = skeleton.begin(); it < skeleton.end(); it++)
98 ost << tl[0] <<
" " << tl[1] <<
" "
99 << br[0] <<
" " << br[1] <<
" ";
double get_width() const
returns the width of this bounding box
Definition: gr_2D_bounding_box.h:86
double get_score() const
Definition: psi_skeleton_detection.h:73
std::ostream & operator<<(std::ostream &ost, const Action &action)
serialize an action
Definition: psi_action.cpp:333
Class that represents an axis-aligned 2D rectangle. It is defined in terms of its (2D) center...
Definition: gr_2D_bounding_box.h:51
double get_height() const
returns the height of this bounding box
Definition: gr_2D_bounding_box.h:92
~Skeleton_detection()
Definition: psi_skeleton_detection.h:56
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
friend std::ostream & operator<<(std::ostream &ost, const Skeleton_detection &skeleton)
writes part into out stream
Definition: psi_skeleton_detection.h:83
const Vector & get_center() const
returns the center of this Axis_aligned_rectangle_2d
Definition: gr_2D_bounding_box.h:80
Skeleton class, a vector of body parts.
Definition: psi_skeleton_detection.h:42
void set_score(double score_)
Definition: psi_skeleton_detection.h:63
Bbox get_bounding_box() const
Definition: psi_skeleton_detection.cpp:35
std::vector< Skeleton_detection > parse_skeleton_detection(std::istream &ist)
Definition: psi_skeleton_detection.cpp:57
Support for error handling exception classes in libKJB.
Skeleton_detection()
Definition: psi_skeleton_detection.h:51
void set_body_part(size_t body_part, const Bbox &part)
Definition: psi_skeleton_detection.h:58
const Bbox & get_body_part(size_t body_part) const
Definition: psi_skeleton_detection.h:68