milena r1579: Review the mln/geom directory

URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-12-03 Matthieu Garrigues <garrigues@lrde.epita.fr> Review the mln/geom directory. * mln/geom/bbox.hh: Active a precondition. * mln/geom/chamfer.hh: Add documentation. --- bbox.hh | 3 ++- chamfer.hh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) Index: trunk/milena/mln/geom/bbox.hh =================================================================== --- trunk/milena/mln/geom/bbox.hh (revision 1578) +++ trunk/milena/mln/geom/bbox.hh (revision 1579) @@ -35,6 +35,7 @@ */ # include <mln/core/concept/image.hh> +# include <mln/core/concept/point_set.hh> # include <mln/core/concept/box.hh> # include <mln/core/concept/window.hh> # include <mln/core/concept/weighted_window.hh> @@ -125,7 +126,7 @@ { mln_precondition(exact(pset).npoints() != 0); box_<mln_point(S)> tmp = impl::bbox_(exact(pset)); - // FIXME: mln_postcondition(tmp <= pset.bbox()); + mln_postcondition(tmp <= exact(pset).bbox()); return tmp; } Index: trunk/milena/mln/geom/chamfer.hh =================================================================== --- trunk/milena/mln/geom/chamfer.hh (revision 1578) +++ trunk/milena/mln/geom/chamfer.hh (revision 1579) @@ -47,7 +47,7 @@ namespace geom { - + /// Apply chamfer algorithm to a binary image. template <typename I, typename W> mln_ch_value( I, unsigned ) chamfer(const Image<I>& input_, const W& w_win_,
participants (1)
-
Matthieu Garrigues