* mln/topo/skeleton/breadth_first_thinning.hh: Here.
Typos and aesthetic changes.
---
milena/ChangeLog | 7 ++++
milena/mln/topo/skeleton/breadth_first_thinning.hh | 36 +++++++++++---------
2 files changed, 27 insertions(+), 16 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 7dfe92c..69123c5 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2010-09-15 Roland Levillain <roland(a)lrde.epita.fr>
+ Add tracing mechanism to breadth-first thinning.
+
+ * mln/topo/skeleton/breadth_first_thinning.hh: Here.
+ Typos and aesthetic changes.
+
+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
diff --git a/milena/mln/topo/skeleton/breadth_first_thinning.hh
b/milena/mln/topo/skeleton/breadth_first_thinning.hh
index def3a7a..3be9539 100644
--- a/milena/mln/topo/skeleton/breadth_first_thinning.hh
+++ b/milena/mln/topo/skeleton/breadth_first_thinning.hh
@@ -53,17 +53,17 @@ namespace mln
/** \brief Skeleton by Breadth-First Thinning.
A generic implementation of the computation of a skeleton
- using a breadth-first thinning on a binary.
+ using a breadth-first thinning on a binary image.
- \param input The input image.
- \param nbh The adjacency relation between triangles.
- \param is_simple The predicate on the simplicity of points
- (sites). This functor must provide a method
- <tt>void set_image(const
Image<I>&)</tt>.
+ \param input The input image.
+ \param nbh The adjacency relation between triangles.
+ \param is_simple The predicate on the simplicity of points
+ (sites). This functor must provide a method
+ <tt>void set_image(const Image<I>&)</tt>.
\param detach A function used to detach a cell from \a input.
- \param constraint A constraint on point (site); if it
- returns \c false for a point, this point
- will not be removed. */
+ \param constraint A constraint on point (site); if it
+ returns \c false for a point, this point
+ will not be removed. */
template <typename I, typename N, typename F, typename G, typename H>
mln_concrete(I)
breadth_first_thinning(const Image<I>& input,
@@ -76,15 +76,15 @@ namespace mln
/** \brief Skeleton by Breadth-First Thinning with no constraint.
A generic implementation of the computation of a skeleton
- using a breadth-first thinning on a binary.
+ using a breadth-first thinning on a binary image.
- \param input The input image.
- \param nbh The adjacency relation between triangles.
- \param is_simple The predicate on the simplicity of points
- (sites). This functor must provide a method
- <tt>void set_image(const
Image<I>&)</tt>.
+ \param input The input image.
+ \param nbh The adjacency relation between triangles.
+ \param is_simple The predicate on the simplicity of points
+ (sites). This functor must provide a method
+ <tt>void set_image(const Image<I>&)</tt>.
\param detach A function used to detach a cell from
- \a input. */
+ \a input. */
template <typename I, typename N, typename F, typename G>
mln_concrete(I)
breadth_first_thinning(const Image<I>& input,
@@ -104,6 +104,8 @@ namespace mln
G detach,
const Function_v2b<H>& constraint_)
{
+ trace::entering("topo::skeleton::breadth_first_thinning");
+
const I& input = exact(input_);
const N& nbh = exact(nbh_);
F& is_simple = exact(is_simple_);
@@ -165,6 +167,8 @@ namespace mln
set.clear();
std::swap(set, next_set);
}
+
+ trace::exiting("topo::skeleton::breadth_first_thinning");
return output;
}
--
1.5.6.5