---
milena/ChangeLog | 5 +++++
milena/mln/labeling/colorize.hh | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index d9f0ffa..f970f00 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-03 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/labeling/colorize.hh: Do not recompute previously computed
+ colors.
+
2012-11-13 Guillaume Lazzara <z(a)lrde.epita.fr>
* mln/histo/equalize.hh: Fix.
diff --git a/milena/mln/labeling/colorize.hh b/milena/mln/labeling/colorize.hh
index ddfbb15..730929e 100644
--- a/milena/mln/labeling/colorize.hh
+++ b/milena/mln/labeling/colorize.hh
@@ -1,5 +1,5 @@
-// Copyright (C) 2008, 2009, 2010, 2011 EPITA Research and Development
-// Laboratory (LRDE)
+// Copyright (C) 2008, 2009, 2010, 2011, 2013 EPITA Research and
+// Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -204,8 +204,8 @@ namespace mln
if (diff_size < 0)
{
srand(1);
+ unsigned i = f.size();
f.resize(label_count);
- unsigned i = f.size() + diff_size;
// We want to treat comp 0 differently since it is the background.
if (i == 0)
{
--
1.7.2.5