oln 10.149: Correct tests for mac.

Index: olena/ChangeLog from Giovanni Palma <giovanni@lrde.epita.fr> * tests/convol/tests/md5_convol_fast_gaussian_hh3: Correct the test to make it success on mac. * tests/convol/tests/md5_convol_fast_gaussian_hh0: Likewise. +2004-04-13 Giovanni Palma <giovanni@lrde.epita.fr> + * oln/makefile.src: Add file. * oln/Makefile.am: Move source listing into 'makefile.src'. Index: olena/tests/convol/tests/md5_convol_fast_gaussian_hh3 --- olena/tests/convol/tests/md5_convol_fast_gaussian_hh3 Mon, 29 Mar 2004 15:45:23 +0200 palma_g (oln/k/25_md5_convol 1.2 600) +++ olena/tests/convol/tests/md5_convol_fast_gaussian_hh3 Fri, 09 Apr 2004 15:23:15 +0200 palma_g (oln/k/25_md5_convol 1.2 644) @@ -10,16 +10,16 @@ int main() { - oln::utils::key::value_type data_key[16] = {0xf5, 0x37, 0xe0, 0xad, 0x5f, - 0xcc, 0x7f, 0x44, 0x32, 0x53, - 0x2a, 0x37, 0x80, 0x38, 0x3f, - 0xbb}; + oln::utils::key::value_type data_key[16] = {0x46, 0x11, 0x5, 0x21, 0x93, + 0x3a, 0xd6, 0x15, 0x1e, 0xf0, + 0x8a, 0x1, 0xf0, 0x32, 0x27, + 0x9e}; oln::utils::key key(data_key); typedef oln::image2d<ntg::int_u8> im_type; im_type im1(oln::load(rdata("lena256.pgm"))); - if (oln::utils::md5(oln::convol::fast::gaussian(im1, 0.5)) == key) + if (oln::utils::md5(oln::convol::fast::gaussian(im1, 0.2)) == key) std::cout << "OK" << std::endl; else { Index: olena/tests/convol/tests/md5_convol_fast_gaussian_hh0 --- olena/tests/convol/tests/md5_convol_fast_gaussian_hh0 Mon, 29 Mar 2004 15:45:23 +0200 palma_g (oln/k/28_md5_convol 1.2 600) +++ olena/tests/convol/tests/md5_convol_fast_gaussian_hh0 Fri, 09 Apr 2004 15:25:37 +0200 palma_g (oln/k/28_md5_convol 1.2 644) @@ -10,10 +10,10 @@ int main() { - oln::utils::key::value_type data_key[16] = {0xcd, 0x87, 0xa8, 0x95, 0xa3, - 0x44, 0x2f, 0x0, 0xc4, 0x39, - 0x30, 0x77, 0x67, 0xa8, 0xb7, - 0x36}; + oln::utils::key::value_type data_key[16] = {0x46, 0x11, 0x5, 0x21, 0x93, + 0x3a, 0xd6, 0x15, 0x1e, 0xf0, + 0x8a, 0x1, 0xf0, 0x32, 0x27, + 0x9e}; oln::utils::key key(data_key); @@ -21,7 +21,7 @@ im_type im1(oln::load(rdata("lena256.pgm"))); if (oln::utils::md5(oln::convol::fast::gaussian(im1, - 0.5, + 0.2, oln::value_behavior<oln_value_type_(im_type)>(0))) == key) std::cout << "OK" << std::endl; -- Giovanni Palma EPITA - promo 2005 - membre d'EpX - LRDE Mob. : +33 (0)6 60 97 31 74

On 2004-04-13, Giovanni Palma <giovanni@lrde.epita.fr> wrote:
Index: olena/ChangeLog from Giovanni Palma <giovanni@lrde.epita.fr> * tests/convol/tests/md5_convol_fast_gaussian_hh3: Correct the test to make it success on mac.
mac == endianness ? ieee754 ? word size ? Le détail m'intéresse.

Raphael Poss <raph@sandrock.lrde.epita.fr> writes:
On 2004-04-13, Giovanni Palma <giovanni@lrde.epita.fr> wrote:
Index: olena/ChangeLog from Giovanni Palma <giovanni@lrde.epita.fr> * tests/convol/tests/md5_convol_fast_gaussian_hh3: Correct the test to make it success on mac.
mac == endianness ? ieee754 ? word size ?
Le détail m'intéresse.
les erreurs d'arrondi avec les floats. -- Giovanni Palma EPITA - promo 2005 - membre d'EpX - LRDE Mob. : +33 (0)6 60 97 31 74
participants (2)
-
Giovanni Palma
-
Raphael Poss