* apps/graph-morpho/morpho.hh (asf): Use (parametric) closings and
openings instead of half-closings and half-closings.
---
milena/ChangeLog | 7 +++++++
milena/apps/graph-morpho/morpho.hh | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 715b86b..637c8fb 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2009-09-16 Roland Levillain <roland(a)lrde.epita.fr>
+ Fix the definition of ASFs in apps/graph-morpho.
+
+ * apps/graph-morpho/morpho.hh (asf): Use (parametric) closings and
+ openings instead of half-closings and half-closings.
+
+2009-09-16 Roland Levillain <roland(a)lrde.epita.fr>
+
Rename graph morphology application complex1d to samples-complex1d.
* apps/graph-morpho/complex1d.cc: Rename as...
diff --git a/milena/apps/graph-morpho/morpho.hh b/milena/apps/graph-morpho/morpho.hh
index ef11951..ee21814 100644
--- a/milena/apps/graph-morpho/morpho.hh
+++ b/milena/apps/graph-morpho/morpho.hh
@@ -495,8 +495,8 @@ mln_concrete(I)
asf(const mln::Image<I>& input, unsigned lambda)
{
mln_concrete(I) output = mln::duplicate(input);
- for (unsigned m = 0; m < lambda; ++m)
- output = half_opening_graph(half_closing_graph(output));
+ for (unsigned m = 1; m <= lambda; ++m)
+ output = opening(closing(output, m), m);
return output;
}
--
1.6.4.2
Show replies by date