X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=pose_cell_hierarchy.cc;h=273a18612a309e0cf441bba03a47d487238336ed;hb=aed34255065b18c445d096f51bd2091833810a81;hp=b8c5eff363212b41a6fbe0fd66ccdf31158d6914;hpb=94ef84aef3a1845326c7c43970997b701a919bd6;p=folded-ctf.git
diff --git a/pose_cell_hierarchy.cc b/pose_cell_hierarchy.cc
index b8c5eff..273a186 100644
--- a/pose_cell_hierarchy.cc
+++ b/pose_cell_hierarchy.cc
@@ -12,7 +12,9 @@
// 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 //
///////////////////////////////////////////////////////////////////////////
@@ -27,7 +29,7 @@ PoseCellHierarchy::PoseCellHierarchy(LabelledImagePool *train_pool) {
_nb_levels = global.nb_levels;
_min_head_radius = global.min_head_radius;
_max_head_radius = global.max_head_radius;
- _root_cell_nb_xy_per_scale = global.root_cell_nb_xy_per_radius;
+ _root_cell_nb_xy_per_radius = global.root_cell_nb_xy_per_radius;
LabelledImage *image;
int nb_total_targets = 0;
@@ -300,7 +302,7 @@ int PoseCellHierarchy::nb_incompatible_poses(LabelledImagePool *pool) {
void PoseCellHierarchy::write(ostream *os) {
write_var(os, &_min_head_radius);
write_var(os, &_max_head_radius);
- write_var(os, &_root_cell_nb_xy_per_scale);
+ write_var(os, &_root_cell_nb_xy_per_radius);
write_var(os, &_nb_belly_cells);
for(int k = 0; k < _nb_belly_cells; k++)
write_var(os, &_belly_cells[k]);
@@ -310,7 +312,7 @@ void PoseCellHierarchy::read(istream *is) {
delete[] _belly_cells;
read_var(is, &_min_head_radius);
read_var(is, &_max_head_radius);
- read_var(is, &_root_cell_nb_xy_per_scale);
+ read_var(is, &_root_cell_nb_xy_per_radius);
read_var(is, &_nb_belly_cells);
delete[] _belly_cells;
_belly_cells = new RelativeBellyPoseCell[_nb_belly_cells];