URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2007-10-10 Guillaume Duhamel <guillaume.duhamel(a)lrde.epita.fr>
Add comments for translate image.
* translate_image.hh: Add comments.
* h_vec.hh: Fix.
---
h_vec.hh | 2 +-
translate_image.hh | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
Index: trunk/milena/mln/core/translate_image.hh
===================================================================
--- trunk/milena/mln/core/translate_image.hh (revision 1295)
+++ trunk/milena/mln/core/translate_image.hh (revision 1296)
@@ -54,7 +54,11 @@
data_(I& ima, const mln_dpoint(I) dp);
I ima_;
+
+ /// Real domain.
box2d bb_;
+
+ /// Delta point of translation.
const mln_dpoint(I) dp_;
};
@@ -82,7 +86,10 @@
- /*! \brief FIXME
+ /*! \brief Translate image class.
+ *
+ * The parameter \c I is the type of image. This image class
+ * makes a translation of a delta point.
*
*/
template <typename I>
Index: trunk/milena/mln/core/h_vec.hh
===================================================================
--- trunk/milena/mln/core/h_vec.hh (revision 1295)
+++ trunk/milena/mln/core/h_vec.hh (revision 1296)
@@ -81,7 +81,7 @@
mln_assertion(w != 0);
metal::vec<d,C> tmp;
- for (unsigned i = 0; i < n; ++i)
+ for (unsigned i = 0; i < d; ++i)
tmp[i] = this->data_[i] / w;
return tmp;
}