
--- scribo/ChangeLog | 4 ++++ scribo/tests/binarization/global_threshold.cc | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scribo/ChangeLog b/scribo/ChangeLog index 1962f38..f18c774 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,5 +1,9 @@ 2011-10-14 Guillaume Lazzara <z@lrde.epita.fr> + * tests/binarization/global_threshold.cc: Fix test. + +2011-10-14 Guillaume Lazzara <z@lrde.epita.fr> + Add Otsu's binarization implementation. * scribo/binarization/otsu.hh: New routine. diff --git a/scribo/tests/binarization/global_threshold.cc b/scribo/tests/binarization/global_threshold.cc index e43a487..879ee95 100644 --- a/scribo/tests/binarization/global_threshold.cc +++ b/scribo/tests/binarization/global_threshold.cc @@ -1,4 +1,5 @@ -// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE) +// Copyright (C) 2010, 2011 EPITA Research and Development Laboratory +// (LRDE) // // This file is part of Olena. // @@ -38,8 +39,8 @@ int main(int argc, char *argv[]) unsigned data[2][2] = { { 12, 24 }, { 2, 6 } }; - bool data_ref[2][2] = { { 1, 1 }, - { 0, 0 } }; + bool data_ref[2][2] = { { 0, 0 }, + { 1, 1 } }; image2d<unsigned> input = make::image(data); image2d<bool> ref = make::image(data_ref); -- 1.7.2.5