X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=pose_cell_hierarchy.h;h=a9461b2cd6eb4fdd1a933c6a8d3a4a2b87cec17a;hb=71a84ea2658cd96726bcf4e582010c24bf2583cf;hp=51f4e6e492a686369904764dd6ef2dc4924268df;hpb=d922ad61d35e9a6996730bec24b16f8bf7bc426c;p=folded-ctf.git diff --git a/pose_cell_hierarchy.h b/pose_cell_hierarchy.h index 51f4e6e..a9461b2 100644 --- a/pose_cell_hierarchy.h +++ b/pose_cell_hierarchy.h @@ -12,24 +12,35 @@ // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // // // -// Written by Francois Fleuret, (C) IDIAP // +// Written by Francois Fleuret // +// (C) Idiap Research Institute // +// // // Contact for comments & bug reports // /////////////////////////////////////////////////////////////////////////// +/* + + A PoseCellHierarchy provides the necessary methods to visit a + recursive partitioning of the pose space. The two main methods can + give you an root partitioning, or compute a finer partitioning from + an existing one. + + */ + #ifndef POSE_CELL_HIERARCHY_H #define POSE_CELL_HIERARCHY_H #include "pose_cell_set.h" #include "labelled_image_pool.h" -struct RelativeBodyPoseCell { - Interval _body_xc, _body_yc, _body_radius_1, _body_radius_2, _body_tilt; +struct RelativeBellyPoseCell { + Interval _belly_xc, _belly_yc; }; class PoseCellHierarchy { static const scalar_t pseudo_infty = 10000; - static const scalar_t body_resolution = 0.5; + static const scalar_t belly_resolution = 0.5; static const int nb_radius_1 = 16; static const int nb_radius_2 = 16; @@ -40,9 +51,9 @@ class PoseCellHierarchy { scalar_t _max_head_radius; int _root_cell_nb_xy_per_scale; - int _nb_body_cells; + int _nb_belly_cells; - RelativeBodyPoseCell *_body_cells; + RelativeBellyPoseCell *_belly_cells; public: PoseCellHierarchy();