* mln/topo/skeleton/breadth_first_thinning.hh
(topo::skeleton::breadth_first_thinning)
* mln/topo/skeleton/priority_driven_thinning.hh
(topo::skeleton::priority_driven_thinning):
Here.
---
milena/ChangeLog | 10 ++++++++++
milena/mln/topo/skeleton/breadth_first_thinning.hh | 8 ++++----
.../mln/topo/skeleton/priority_driven_thinning.hh | 8 ++++----
3 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 9a2bbcc..373d9fa 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-20 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Get the `detach' argument of thinning algorithms by reference.
+
+ * mln/topo/skeleton/breadth_first_thinning.hh
+ (topo::skeleton::breadth_first_thinning)
+ * mln/topo/skeleton/priority_driven_thinning.hh
+ (topo::skeleton::priority_driven_thinning):
+ Here.
+
2010-09-19 Roland Levillain <roland(a)lrde.epita.fr>
Get rid of intermediate psites in thinning algorithms.
diff --git a/milena/mln/topo/skeleton/breadth_first_thinning.hh
b/milena/mln/topo/skeleton/breadth_first_thinning.hh
index 286e3e0..7401bae 100644
--- a/milena/mln/topo/skeleton/breadth_first_thinning.hh
+++ b/milena/mln/topo/skeleton/breadth_first_thinning.hh
@@ -69,7 +69,7 @@ namespace mln
breadth_first_thinning(const Image<I>& input,
const Neighborhood<N>& nbh,
Function_v2b<F>& is_simple,
- G detach,
+ G& detach,
const Function_v2b<H>& constraint);
@@ -90,7 +90,7 @@ namespace mln
breadth_first_thinning(const Image<I>& input,
const Neighborhood<N>& nbh,
Function_v2b<F>& is_simple,
- G detach);
+ G& detach);
# ifndef MLN_INCLUDE_ONLY
@@ -101,7 +101,7 @@ namespace mln
breadth_first_thinning(const Image<I>& input_,
const Neighborhood<N>& nbh_,
Function_v2b<F>& is_simple_,
- G detach,
+ G& detach,
const Function_v2b<H>& constraint_)
{
trace::entering("topo::skeleton::breadth_first_thinning");
@@ -153,7 +153,7 @@ namespace mln
breadth_first_thinning(const Image<I>& input,
const Neighborhood<N>& nbh,
Function_v2b<F>& is_simple,
- G detach)
+ G& detach)
{
return breadth_first_thinning(input, nbh, is_simple, detach,
fun::p2b::tautology());
diff --git a/milena/mln/topo/skeleton/priority_driven_thinning.hh
b/milena/mln/topo/skeleton/priority_driven_thinning.hh
index cacc575..e29062f 100644
--- a/milena/mln/topo/skeleton/priority_driven_thinning.hh
+++ b/milena/mln/topo/skeleton/priority_driven_thinning.hh
@@ -72,7 +72,7 @@ namespace mln
priority_driven_thinning(const Image<I>& input,
const Neighborhood<N>& nbh,
Function_v2b<F>& is_simple,
- G detach,
+ G& detach,
const Image<J>& priority,
const Function_v2b<H>& constraint);
@@ -95,7 +95,7 @@ namespace mln
priority_driven_thinning(const Image<I>& input,
const Neighborhood<N>& nbh,
Function_v2b<F>& is_simple,
- G detach,
+ G& detach,
const Image<J>& priority);
@@ -108,7 +108,7 @@ namespace mln
priority_driven_thinning(const Image<I>& input_,
const Neighborhood<N>& nbh_,
Function_v2b<F>& is_simple_,
- G detach,
+ G& detach,
const Image<J>& priority_,
const Function_v2b<H>& constraint_)
{
@@ -163,7 +163,7 @@ namespace mln
priority_driven_thinning(const Image<I>& input,
const Neighborhood<N>& nbh,
Function_v2b<F>& is_simple,
- G detach,
+ G& detach,
const Image<J>& priority)
{
return priority_driven_thinning(input, nbh, is_simple, detach,
--
1.5.6.5