
Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr> writes:
URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog: 2007-10-29 Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr>
Update test for fllt.
* test_fllt.cc: Update.
Please, provide meaningful information. A plain « Update » statement is just useless! If you don't know what to put here, ask Théo or me for some advice. Also, give the full path in ChangeLog. Here, the ChangeLog should refer to sandbox/garrigues/test_fllt.cc not just test_fllt.cc Last, please try to use uppercase for acronyms (FFLT instead of fllt).
Index: trunk/milena/sandbox/garrigues/test_fllt.cc =================================================================== --- trunk/milena/sandbox/garrigues/test_fllt.cc (revision 1400) +++ trunk/milena/sandbox/garrigues/test_fllt.cc (revision 1401) @@ -9,32 +9,40 @@ # include <mln/level/fill.hh> # include <mln/io/pgm/load.hh> # include <mln/io/pbm/load.hh> +# include <sstream> +
int main() {
using namespace mln;
- int ws[81] = {3,2,3,3,5,5,5,5,5, - 2,1,3,4,4,4,4,5,5, - 2,3,4,2,3,3,2,4,4, - 1,4,2,1,1,2,1,2,2, - 1,2,4,2,1,2,1,1,1, - 1,3,3,3,4,3,2,5,1, - 1,3,4,3,4,3,2,5,1, - 1,3,3,3,4,3,2,5,1, - 1,3,3,4,2,3,2,1,1}; - - w_window2d_int w_win = make::w_window2d(ws); - image2d<int> ima = convert::to_image(w_win); -fllt::fllt(ima); - - -// image2d<value::int_u8> ima = io::pgm::load("../../img/tiny.pgm"); - -// image2d<int> ima_int(ima.domain()); - -// level::fill(ima_int, ima); -// debug::println(ima); -// fllt::fllt(ima_int); +// int ws[81] = {3,2,3,3,5,5,5,5,5, +// 2,1,3,4,4,4,4,5,5, +// 2,3,4,2,3,3,2,4,4, +// 1,4,2,1,1,2,1,2,2, +// 1,2,4,2,1,2,1,1,1, +// 1,3,3,3,4,3,2,5,1, +// 1,3,4,3,4,3,2,5,1, +// 1,3,3,3,4,3,2,5,1, +// 1,3,3,4,2,3,2,1,1}; + +// w_window2d_int w_win = make::w_window2d(ws); +// image2d<int> ima = convert::to_image(w_win); +// fllt::fllt(ima);
If you don't plan to re-enable this code later, please remove it. We're using a versioning system: we can always revert the changes if needed.
+ + + for (int i = 1; i < 16; ++i) + for (int j = 1; j < 16; ++j) + { + std::stringstream path; + path << "/lrde/tegucigalpa/theo/pub/mln_docs/lena_tiles/lena_" << i << "_" << j << ".pgm";
Beware of 1. long lines (at least, lines longer than 80 characters); 2. hard-coded paths. We need some help from Autoconf here. I'll patch this part to show you how to handle (external) files in tests.