ChangeLog | 7 +++++++ oln/morpho/hit_or_miss.hh | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) Index: olena/ChangeLog from Roland Levillain <roland@lrde.epita.fr> Fix hit-or-miss closings. * oln/morpho/hit_or_miss.hh (hit_or_miss_closing), (hit_or_miss_closing_bg): Invert the result. Index: olena/oln/morpho/hit_or_miss.hh --- olena/oln/morpho/hit_or_miss.hh (révision 240) +++ olena/oln/morpho/hit_or_miss.hh (copie de travail) @@ -221,7 +221,8 @@ oln_type_of(I, concrete) output("output"); // FIXME: Is this correct? Soille doesn't detail the definition // of the hit-or-miss closing in his book. - output = hit_or_miss_opening(level::invert(input), win1, win2); + output = + level::invert(hit_or_miss_opening(level::invert(input), win1, win2)); exiting("morpho::hit_or_miss_closing"); return output; @@ -261,7 +262,9 @@ oln_type_of(I, concrete) output("output"); // FIXME: Is this correct? Soille doesn't detail the definition // of the hit-or-miss closing of the background in his book. - output = hit_or_miss_opening_bg(level::invert(input), win1, win2); + output = + level::invert(hit_or_miss_opening_bg(level::invert(input), + win1, win2)); exiting("morpho::hit_or_miss_closing_bg"); return output;