X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=pi_referential.h;h=d5908f62dc2aeb40d0976e0720fa99d88c1e278a;hb=20ec321944108cd1fe74b37ea45db3ba1a2d526a;hp=06995f436041799b7c94df48449901f543a04869;hpb=eb6fe78a4990416473d703d05b9abbafd6825705;p=folded-ctf.git
diff --git a/pi_referential.h b/pi_referential.h
index 06995f4..d5908f6 100644
--- a/pi_referential.h
+++ b/pi_referential.h
@@ -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 //
///////////////////////////////////////////////////////////////////////////
@@ -46,11 +48,13 @@ class PiReferential {
scalar_t _head_ux, _head_uy, _head_vx, _head_vy;
scalar_t _head_ux_nopolarity, _head_uy_nopolarity, _head_vx_nopolarity, _head_vy_nopolarity;
+ //**********************************************************************
// Useless fields, but they are necessary so that the optimized code
// with g++ gives the same results as some reference
// experiments. Sorry for that.
scalar_t _body_xc, _body_yc;
scalar_t _body_tilt;
+ //**********************************************************************
// The belly frame is defined by the belly location and head scale
scalar_t _belly_xc, _belly_yc;
@@ -75,15 +79,15 @@ public:
enum {
// A square frame centered on the head, of size four times the
- // head radius and, flipped vertically if the belly is on the left
- // of the head center
+ // head radius and, flipped horizontally if the belly is on the
+ // left of the head center
RM_HEAD,
// Same as above, without the flipping
RM_HEAD_NO_POLARITY,
// A frame centered on the belly, of size eight times the head
- // radius, flipped vertically if the belly is on the left of the
+ // radius, flipped horizontally if the belly is on the left of the
// head center
RM_BELLY,
@@ -103,8 +107,8 @@ public:
int common_scale();
// The rectangle coordinates are in the reference frames. For the
- // head for instance , [-1,1] x [-1,1] corresponds to the head
- // bounding box
+ // head for instance [-0.5, 0.5] x [-0.5, 0.5] corresponds to the
+ // head bounding box
void register_rectangle(int registration_mode,
Rectangle *original,