---
milena/ChangeLog | 4 ++++
milena/mln/labeling/relabel.hh | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index b5c3acf..8de7538 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,9 @@
2009-08-17 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ * mln/labeling/relabel.hh: Add missing preconditions.
+
+2009-08-17 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
* mln/labeling/superpose.hh: New. Superpose two labeled images.
2009-08-17 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
diff --git a/milena/mln/labeling/relabel.hh b/milena/mln/labeling/relabel.hh
index 4477ee9..0e89e3c 100644
--- a/milena/mln/labeling/relabel.hh
+++ b/milena/mln/labeling/relabel.hh
@@ -183,6 +183,8 @@ namespace mln
{
trace::entering("labeling::relabel");
+
+ mlc_not_equal(mln_result(F),bool)::check();
internal::relabel_tests(label, nlabels, fv2v);
mln_concrete(I) output = data::transform(label, fv2v);
@@ -223,6 +225,7 @@ namespace mln
{
trace::entering("labeling::relabel_inplace");
+ mlc_not_equal(mln_result(F),bool)::check();
internal::relabel_inplace_tests(label, nlabels, fv2v);
data::transform_inplace(label, fv2v);
--
1.5.6.5