* mln/core/image/complex_image.hh
(mln::complex_image<D, G, V>::dim): New constant.
(mln::complex_image<D, G, V>::geom): New typedef.
---
milena/ChangeLog | 8 ++++++++
milena/mln/core/image/complex_image.hh | 6 +++++-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 5ce1170..16ddcbb 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -24,6 +24,14 @@
2008-10-22 Roland Levillain <roland(a)lrde.epita.fr>
+ Supplement complex-based image.
+
+ * mln/core/image/complex_image.hh
+ (mln::complex_image<D, G, V>::dim): New constant.
+ (mln::complex_image<D, G, V>::geom): New typedef.
+
+2008-10-22 Roland Levillain <roland(a)lrde.epita.fr>
+
* mln/core/macros.hh (mln_geom, mln_geom_): New macros.
2008-10-22 Roland Levillain <roland(a)lrde.epita.fr>
diff --git a/milena/mln/core/image/complex_image.hh b/milena/mln/core/image/complex_image.hh
index 94ba949..32c83cb 100644
--- a/milena/mln/core/image/complex_image.hh
+++ b/milena/mln/core/image/complex_image.hh
@@ -116,7 +116,7 @@ namespace mln
/// Values attached to each face of the complex.
///
/// \arg p D The dimension of the complex.
- /// \arg p G The geometry of the complex.
+ /// \arg p G The geometry type of the complex.
/// \arg p V The value type of the image.
template <unsigned D, typename G, typename V>
class complex_image
@@ -124,6 +124,10 @@ namespace mln
complex_image<D, G, V> >
{
public:
+ /// The dimension of the complex.
+ static const unsigned dim = D;
+ /// The geometry type of the complex.
+ typedef G geom;
/// Value associated type.
typedef V value;
--
1.6.0.1
* mln/core/alias/bin_2complex_image3df.hh: New.
---
milena/ChangeLog | 6 +++
milena/mln/core/alias/bin_2complex_image3df.hh | 51 ++++++++++++++++++++++++
2 files changed, 57 insertions(+), 0 deletions(-)
create mode 100644 milena/mln/core/alias/bin_2complex_image3df.hh
diff --git a/milena/ChangeLog b/milena/ChangeLog
index aedb0ae..3c2e65d 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-22 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Provide an alias for binary 2-complex-based 3-dimensional images.
+
+ * mln/core/alias/bin_2complex_image3df.hh: New.
+
2008-10-21 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
Remove debug in chamfer.
diff --git a/milena/mln/core/alias/bin_2complex_image3df.hh b/milena/mln/core/alias/bin_2complex_image3df.hh
new file mode 100644
index 0000000..c429752
--- /dev/null
+++ b/milena/mln/core/alias/bin_2complex_image3df.hh
@@ -0,0 +1,51 @@
+// Copyright (C) 2008 EPITA Research and Development Laboratory (LRDE)
+//
+// This file is part of the Olena Library. This library is free
+// software; you can redistribute it and/or modify it under the terms
+// of the GNU General Public License version 2 as published by the
+// Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this library; see the file COPYING. If not, write to
+// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+// Boston, MA 02111-1307, USA.
+//
+// As a special exception, you may use this file as part of a free
+// software library without restriction. Specifically, if other files
+// instantiate templates or use macros or inline functions from this
+// file, or you compile this file and link it with other files to
+// produce an executable, this file does not by itself cause the
+// resulting executable to be covered by the GNU General Public
+// License. This exception does not however invalidate any other
+// reasons why the executable file might be covered by the GNU General
+// Public License.
+
+#ifndef MLN_CORE_ALIAS_BIN_2COMPLEX_IMAGE3DF_HH
+# define MLN_CORE_ALIAS_BIN_2COMPLEX_IMAGE3DF_HH
+
+/// \file mln/core/alias/bin_2complex_image3df.hh
+/// \brief Definition of the mln::bin_2complex_image3df alias.
+
+# include <mln/core/image/complex_image.hh>
+# include <mln/geom/complex_geometry.hh>
+# include <mln/core/alias/point3df.hh>
+
+
+namespace mln
+{
+
+ /// \brief Type alias for a binary image based on a 2-complex, where
+ /// 0-faces are located at floating-point 3-dimensional points.
+ typedef
+ mln::complex_image<2, mln::geom::complex_geometry<2,point3df>, bool>
+ bin_2complex_image3df;
+
+} // end of namespace mln
+
+
+#endif // ! MLN_CORE_ALIAS_BIN_2COMPLEX_IMAGE3DF_HH
--
1.6.0.1