---
milena/ChangeLog | 5 +++++
milena/mln/core/image/dmorph/slice_image.hh | 16 ++++++++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 04bac84..5ee2282 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-28 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/core/image/dmorph/slice_image.hh: Add operator=() for
+ image2d.
+
2011-10-18 Guillaume Lazzara <z(a)lrde.epita.fr>
* mln/io/dicom/load.hh: Fix memory leak.
diff --git a/milena/mln/core/image/dmorph/slice_image.hh
b/milena/mln/core/image/dmorph/slice_image.hh
index b751758..a5e2983 100644
--- a/milena/mln/core/image/dmorph/slice_image.hh
+++ b/milena/mln/core/image/dmorph/slice_image.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2008, 2009, 2011 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -34,7 +35,8 @@
# include <mln/core/internal/image_domain_morpher.hh>
# include <mln/core/alias/box3d.hh>
-# include <mln/core/alias/box2d.hh>
+# include <mln/core/image/image2d.hh>
+# include <mln/data/paste.hh>
namespace mln
@@ -107,6 +109,8 @@ namespace mln
void init_(I& ima, def::coord sli);
+ template <typename V>
+ void operator=(const image2d<V>& rhs);
/// Give the definition domain.
const box2d& domain() const;
@@ -211,6 +215,14 @@ namespace mln
}
template <typename I>
+ template <typename V>
+ void
+ slice_image<I>::operator=(const image2d<V>& rhs)
+ {
+ data::paste(rhs, *this);
+ }
+
+ template <typename I>
inline
const box2d&
slice_image<I>::domain() const
--
1.7.2.5
Show replies by date