* mln/topo/skeleton/breadth_first_thinning.hh: Do not try to
detach an aldready processed site.
---
milena/ChangeLog | 7 +++++++
milena/mln/topo/skeleton/breadth_first_thinning.hh | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 18e4ada..7dfe92c 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,10 @@
+2010-09-15 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Small fix in breadth-first thinning.
+
+ * mln/topo/skeleton/breadth_first_thinning.hh: Do not try to
+ detach an aldready processed site.
+
2010-09-09 Roland Levillain <roland(a)lrde.epita.fr>
Make the 5th argument of breadth_first_thinning truly optional.
diff --git a/milena/mln/topo/skeleton/breadth_first_thinning.hh
b/milena/mln/topo/skeleton/breadth_first_thinning.hh
index f405166..def3a7a 100644
--- a/milena/mln/topo/skeleton/breadth_first_thinning.hh
+++ b/milena/mln/topo/skeleton/breadth_first_thinning.hh
@@ -148,7 +148,7 @@ namespace mln
internal state and make side effects, meaning that
e.g. constraint(p) might not be constant for a
given p during the thinning. */
- if (constraint(p) && is_simple(p))
+ if (output(p) && constraint(p) && is_simple(p))
{
detach(p, output);
mln_niter(N) n_(nbh, p);
--
1.5.6.5
Show replies by date