milena r1139: Fix to_upper_window in convert.

URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-09-19 Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr> Fix to_upper_window in convert. * labeling_level.hh: Update to_upper_window. --- labeling_level.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Index: trunk/milena/sandbox/duhamel/labeling_level.hh =================================================================== --- trunk/milena/sandbox/duhamel/labeling_level.hh (revision 1138) +++ trunk/milena/sandbox/duhamel/labeling_level.hh (revision 1139) @@ -61,8 +61,7 @@ window<D> win; mln_niter(N) n(nbh, P::zero); for_all(n) - // FIXME: pour Guillaume - if (n < P::zero) + if (n > P::zero) win.insert(n - P::zero); return win; } @@ -101,8 +100,8 @@ { typedef mln_point (I) P; mln_bkd_pixter(const I) p(f.input); - mln_nixter(const I, N) n(p, f.nbh); - // mln_qixter(const I, window<P>) n(p, convert::to_upper_window(f.nbh)); + // mln_nixter(const I, N) n(p, f.nbh); + mln_qixter(const I, window<P>) n(p, convert::to_upper_window(f.nbh)); for_all(p) if (f.handles(p)) {
participants (1)
-
Guillaume Duhamel