2866: Make level/median* tests compile.

* mln/canvas/browsing/dir_struct_elt_incr_update.hh: use def::coord. * mln/level/naive/median.hh, * mln/level/median.hh: update initialization of accu::median. * mln/trace/entering.hh, * mln/trace/exiting.hh, * mln/util/timer.hh: Fix doc. * tests/level/median_.cc: Fix test. * doc/tutorial/samples/out.ppm: should not be there. Removed. --- milena/ChangeLog | 17 +++++++++++++++++ milena/doc/tutorial/samples/out.ppm | Bin 145320 -> 0 bytes .../canvas/browsing/dir_struct_elt_incr_update.hh | 3 +-- milena/mln/level/median.hh | 4 ++-- milena/mln/level/naive/median.hh | 18 +++++++++--------- milena/mln/trace/entering.hh | 8 ++++---- milena/mln/trace/exiting.hh | 8 ++++---- milena/mln/util/timer.hh | 15 ++++++--------- milena/tests/level/median_.cc | 2 +- 9 files changed, 44 insertions(+), 31 deletions(-) delete mode 100644 milena/doc/tutorial/samples/out.ppm diff --git a/milena/ChangeLog b/milena/ChangeLog index 5a6dbc7..67bfc63 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,3 +1,20 @@ +2008-11-13 Guillaume Lazzara <z@lrde.epita.fr> + + Make level/median* tests compile. + + * mln/canvas/browsing/dir_struct_elt_incr_update.hh: use def::coord. + + * mln/level/naive/median.hh, + * mln/level/median.hh: update initialization of accu::median. + + * mln/trace/entering.hh, + * mln/trace/exiting.hh, + * mln/util/timer.hh: Fix doc. + + * tests/level/median_.cc: Fix test. + + * doc/tutorial/samples/out.ppm: should not be there. Removed. + 2008-11-13 Nicolas Ballas <ballas@lrde.epita.fr> Temporary fix in complex_image properties. diff --git a/milena/doc/tutorial/samples/out.ppm b/milena/doc/tutorial/samples/out.ppm deleted file mode 100644 index 7a33c29f788c3048de656608515af2b838ac61da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 145320 zcmeI1L2DdG5Jr90uUN<>xyX*eIph|w2>}O;$sds84KX;9QAEJMUMcVFN-OPXX1b@k zx~lsvwpovMx~so>^Lj@6?x(ZwHotB!x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E^N8`kHKUM7IlwVQh~iNDWO!~RSOl6)b9u%hRMLJMgT0M#*UbjbPAcue%Opo z$2kQigMk_ct?WwsVp3wVcbe9W**%VSB1{ILG#XSZ>+Oz7$xBOIHsh>paKO`H(l4R` zaZ)L{M<yjW8^vYMqSD&1gLKNITP(wZq*ypidU2*=Q-crHFO$-^?7da@#NY_2mk*Pb p$yD!X`~kaWQrf3$yrj|M!&7JlFj)c1LcMHd*nvs@B>_(f{14b_By9iy diff --git a/milena/mln/canvas/browsing/dir_struct_elt_incr_update.hh b/milena/mln/canvas/browsing/dir_struct_elt_incr_update.hh index 164c060..a5cc7fd 100644 --- a/milena/mln/canvas/browsing/dir_struct_elt_incr_update.hh +++ b/milena/mln/canvas/browsing/dir_struct_elt_incr_update.hh @@ -118,8 +118,7 @@ namespace mln mln_psite(I) pt, pu; - typedef mln_coord(I)& coord_ref; - coord_ref + def::coord& ct = pt[f.dir], cu = pu[f.dir], p_dir = f.p[f.dir]; diff --git a/milena/mln/level/median.hh b/milena/mln/level/median.hh index e224964..771c064 100644 --- a/milena/mln/level/median.hh +++ b/milena/mln/level/median.hh @@ -188,7 +188,7 @@ namespace mln struct median_dir_t { typedef I_ I; - enum { dim = I::point::dim }; + enum { dim = I::site::dim }; // i/o const I& input; @@ -210,7 +210,7 @@ namespace mln output(exact(output)), // aux data p(), - med(input.values_eligible()) + med() { } diff --git a/milena/mln/level/naive/median.hh b/milena/mln/level/naive/median.hh index e2034b9..f6a71b9 100644 --- a/milena/mln/level/naive/median.hh +++ b/milena/mln/level/naive/median.hh @@ -1,4 +1,5 @@ -// Copyright (C) 2007 EPITA Research and Development Laboratory +// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory +// (LRDE) // // This file is part of the Olena Library. This library is free // software; you can redistribute it and/or modify it under the terms @@ -28,10 +29,9 @@ #ifndef MLN_LEVEL_NAIVE_MEDIAN_HH # define MLN_LEVEL_NAIVE_MEDIAN_HH -/*! \file mln/level/naive/median.hh - * - * \brief Naive version of median filtering. - */ +/// \file mln/level/naive/median.hh +/// +/// Naive version of median filtering. # include <mln/core/concept/image.hh> # include <mln/core/alias/window2d.hh> @@ -47,9 +47,9 @@ namespace mln namespace naive { - /*! Compute in \p output the median filter of image \p input by - * the window \p win. - * + /// Compute in \p output the median filter of image \p input by + /// the window \p win. + /*! * \param[in] input The image to be filtered. * \param[in] win The window. * \param[in,out] output The output image. @@ -79,7 +79,7 @@ namespace mln { mln_piter(I) p(input.domain()); mln_qiter(W) q(win, p); - accu::median_h<mln_vset(I)> med(input.values()); + accu::median_h<mln_value(I)> med; for_all(p) { diff --git a/milena/mln/trace/entering.hh b/milena/mln/trace/entering.hh index 20fc58d..dc8f707 100644 --- a/milena/mln/trace/entering.hh +++ b/milena/mln/trace/entering.hh @@ -1,4 +1,5 @@ // Copyright (C) 2007, 2008 EPITA Research and Development Laboratory +// (LRDE) // // This file is part of the Olena Library. This library is free // software; you can redistribute it and/or modify it under the terms @@ -28,10 +29,9 @@ #ifndef MLN_TRACE_ENTERING_HH # define MLN_TRACE_ENTERING_HH -/*! \file mln/trace/entering.hh - * - * \brief Definition of the trace entering procedure. - */ +/// \file mln/trace/entering.hh +/// +/// Definition of the trace entering procedure. # include <string> # include <iostream> diff --git a/milena/mln/trace/exiting.hh b/milena/mln/trace/exiting.hh index 9b7e9f5..ad342a3 100644 --- a/milena/mln/trace/exiting.hh +++ b/milena/mln/trace/exiting.hh @@ -1,4 +1,5 @@ // Copyright (C) 2007, 2008 EPITA Research and Development Laboratory +// (LRDE) // // This file is part of the Olena Library. This library is free // software; you can redistribute it and/or modify it under the terms @@ -28,10 +29,9 @@ #ifndef MLN_TRACE_EXITING_HH # define MLN_TRACE_EXITING_HH -/*! \file mln/trace/exiting.hh - * - * \brief Definition of the trace exiting procedure. - */ +/// \file mln/trace/exiting.hh +/// +/// Definition of the trace exiting procedure. # include <string> # include <iostream> diff --git a/milena/mln/util/timer.hh b/milena/mln/util/timer.hh index 23aabd8..49b0b2e 100644 --- a/milena/mln/util/timer.hh +++ b/milena/mln/util/timer.hh @@ -1,4 +1,4 @@ -// Copyright (C) 2008 EPITA Research and Development Laboratory +// Copyright (C) 2008 EPITA Research and Development Laboratory (LRDE) // // This file is part of the Olena Library. This library is free // software; you can redistribute it and/or modify it under the terms @@ -28,10 +28,9 @@ #ifndef MLN_UTIL_TIMER_HH # define MLN_UTIL_TIMER_HH -/*! \file mln/util/timer.hh - * - * \brief Definition of a timer. - */ +/// \file mln/util/timer.hh +/// +/// Definition of a timer. # include <mln/core/concept/proxy.hh> # include <ctime> @@ -43,9 +42,7 @@ namespace mln namespace util { - /*! \brief Timer structure. - * - */ + /// Timer structure. class timer : public Proxy< timer >, public internal::proxy_impl<float, timer> { @@ -162,7 +159,7 @@ namespace mln time_ + float(std::clock()) / CLOCKS_PER_SEC - start_ : time_; } - + inline float timer::subj_() diff --git a/milena/tests/level/median_.cc b/milena/tests/level/median_.cc index 0821a44..3d97c7c 100644 --- a/milena/tests/level/median_.cc +++ b/milena/tests/level/median_.cc @@ -34,7 +34,7 @@ int main() { - win::rectangle2d rect(20, 20); + win::rectangle2d rect(21, 21); border::thickness = 6; image2d<int_u8> lena; -- 1.5.6.5
participants (1)
-
Guillaume Lazzara