---
milena/ChangeLog | 4 ++++
milena/mln/core/internal/pixel_impl.hh | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index ef2c151..4949cad 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-18 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/core/internal/pixel_impl.hh: Add change_offset().
+
2013-04-17 Guillaume Lazzara <z(a)lrde.epita.fr>
Add a labeling routine working on grayscale images.
diff --git a/milena/mln/core/internal/pixel_impl.hh
b/milena/mln/core/internal/pixel_impl.hh
index 96d94e0..8fcab31 100644
--- a/milena/mln/core/internal/pixel_impl.hh
+++ b/milena/mln/core/internal/pixel_impl.hh
@@ -93,6 +93,12 @@ namespace mln
return value_ptr_ - image_.buffer();
}
+ void change_offset(unsigned offset)
+ {
+ mln_assertion(offset < image_.nelements());
+ value_ptr_ = image_.buffer() + offset;
+ }
+
operator util::pix<unconst_image_t>() const
{
util::pix<unconst_image_t> tmp(image_, image_.point_at_offset(offset()));
--
1.7.2.5
Show replies by date