
* apps/papers/levillain.09.ismm/classif-graph.cc, * apps/papers/levillain.09.ismm/classif-1complex.cc: Do not use a value outside the range [0, nbasins] in `canvas_wst' to prevent a failed precondition in labeling::colorize (when NDEBUG is not defined). Reported by David Coeurjolly <david.coeurjolly at liris.cnrs.fr>. --- milena/ChangeLog | 11 +++++++++++ .../papers/levillain.09.ismm/classif-1complex.cc | 2 +- .../apps/papers/levillain.09.ismm/classif-graph.cc | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index bad4207..295f398 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,3 +1,14 @@ +2011-11-24 Roland Levillain <roland@lrde.epita.fr> + + Honor a precondition in classification examples (ISMM 2009). + + * apps/papers/levillain.09.ismm/classif-graph.cc, + * apps/papers/levillain.09.ismm/classif-1complex.cc: + Do not use a value outside the range [0, nbasins] in `canvas_wst' + to prevent a failed precondition in labeling::colorize (when + NDEBUG is not defined). + Reported by David Coeurjolly <david.coeurjolly at liris.cnrs.fr>. + 2011-10-11 Roland Levillain <roland@lrde.epita.fr> Graph-based version of the classification example. diff --git a/milena/apps/papers/levillain.09.ismm/classif-1complex.cc b/milena/apps/papers/levillain.09.ismm/classif-1complex.cc index 43853e3..674b392 100644 --- a/milena/apps/papers/levillain.09.ismm/classif-1complex.cc +++ b/milena/apps/papers/levillain.09.ismm/classif-1complex.cc @@ -281,7 +281,7 @@ main(int argc, char* argv[]) // Output image showing the results of the above chain on an image // similar to the input. image2d<int_u8> canvas_wst(seeds.domain()); - data::fill(canvas_wst, 255); + data::fill(canvas_wst, 0); // Iterator on the edges (1-faces) of WST_IMA. p_n_faces_fwd_piter<D, G> e(wst_ima.domain(), 1); diff --git a/milena/apps/papers/levillain.09.ismm/classif-graph.cc b/milena/apps/papers/levillain.09.ismm/classif-graph.cc index 36a6369..f832c11 100644 --- a/milena/apps/papers/levillain.09.ismm/classif-graph.cc +++ b/milena/apps/papers/levillain.09.ismm/classif-graph.cc @@ -267,7 +267,7 @@ main(int argc, char* argv[]) // Output image showing the results of the above chain on an image // similar to the input. image2d<int_u8> canvas_wst(seeds.domain()); - data::fill(canvas_wst, 255); + data::fill(canvas_wst, 0); // Iterator on (the edges of) WST_IMA. mln_piter_(wst_ima_t) e(wst_ima.domain()); -- 1.7.2.5