Index: olena/ChangeLog
from Giovanni Palma <giovanni(a)lrde.epita.fr>
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh2: Add file.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh3: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh4: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh5: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh6: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh7: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh8: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_hh9: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh0: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh1: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh2: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh3: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh4: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh5: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh0: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh1: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh10: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh11: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh12: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh13: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh14: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh15: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh16: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh17: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh2: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh3: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh4: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh5: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh6: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh7: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh8: Likewise.
* tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh9: Likewise.
* tests/morpho/tests/md5_morpho_closing_inc0: Likewise.
* tests/morpho/tests/md5_morpho_dilation_hh0: Likewise.
* tests/morpho/tests/md5_morpho_dilation_hh1: Likewise.
* tests/morpho/tests/md5_morpho_erosion_hh0: Likewise.
* tests/morpho/tests/md5_morpho_erosion_hh1: Likewise.
* tests/morpho/tests/md5_morpho_erosion_hh2: Likewise.
* tests/morpho/tests/md5_morpho_extrema_hxx0: Likewise.
* tests/morpho/tests/md5_morpho_extrema_hxx1: Likewise.
* tests/morpho/tests/md5_morpho_extrema_killer_hh0: Likewise.
* tests/morpho/tests/md5_morpho_extrema_killer_hh1: Likewise.
* tests/morpho/tests/md5_morpho_extrema_killer_hh2: Likewise.
* tests/morpho/tests/md5_morpho_extrema_killer_hh3: Likewise.
* tests/morpho/tests/md5_morpho_fast_morpho_hxx0: Likewise.
* tests/morpho/tests/md5_morpho_geodesic_dilation_hh0: Likewise.
* tests/morpho/tests/md5_morpho_geodesic_dilation_hh1: Likewise.
* tests/morpho/tests/md5_morpho_geodesic_erosion_hh0: Likewise.
* tests/morpho/tests/md5_morpho_geodesic_erosion_hh1: Likewise.
* tests/morpho/tests/md5_morpho_gradient_inc0: Likewise.
* tests/morpho/tests/md5_morpho_hit_or_miss_inc0: Likewise.
* tests/morpho/tests/md5_morpho_hit_or_miss_inc1: Likewise.
* tests/morpho/tests/md5_morpho_hit_or_miss_inc2: Likewise.
* tests/morpho/tests/md5_morpho_hit_or_miss_inc3: Likewise.
* tests/morpho/tests/md5_morpho_hit_or_miss_inc4: Likewise.
* tests/morpho/tests/md5_morpho_hit_or_miss_inc5: Likewise.
* tests/morpho/tests/md5_morpho_laplacian_inc0: Likewise.
* tests/morpho/tests/md5_morpho_laplacian_inc1: Likewise.
* tests/morpho/tests/md5_morpho_opening_inc0: Likewise.
* tests/morpho/tests/md5_morpho_reconstruction_hh0: Likewise.
* tests/morpho/tests/md5_morpho_reconstruction_hh1: Likewise.
* tests/morpho/tests/md5_morpho_reconstruction_hh2: Likewise.
* tests/morpho/tests/md5_morpho_reconstruction_hh3: Likewise.
* tests/morpho/tests/md5_morpho_reconstruction_hh4: Likewise.
* tests/morpho/tests/md5_morpho_reconstruction_hh5: Likewise.
* tests/morpho/tests/md5_morpho_thickening_inc0: Likewise.
* tests/morpho/tests/md5_morpho_thinning_inc0: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc0: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc1: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc2: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc3: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc4: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc5: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc6: Likewise.
* tests/morpho/tests/md5_morpho_top_hat_inc7: Likewise.
* tests/morpho/tests/md5_morpho_watershed_hh0: Likewise.
* tests/morpho/tests/md5_morpho_watershed_hh1: Likewise.
+2004-03-23 Giovanni Palma <giovanni(a)lrde.epita.fr>
+
* tests/convol/tests/md5_convol_fast_gaussian_hh0: Add file.
* tests/convol/tests/md5_convol_fast_gaussian_hh1: Add file.
* tests/convol/tests/md5_convol_fast_gaussian_hh2: Add file.
Index: olena/tests/morpho/tests/md5_morpho_watershed_hh1
--- olena/tests/morpho/tests/md5_morpho_watershed_hh1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_watershed_hh1 Tue, 23 Mar 2004 12:29:22 +0100
palma_g (oln/k/29_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/watershed.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xdd, 0x59, 0x5a, 0x51, 0x68, 0xc5, 0xfc,
0xb7, 0x79, 0x67, 0x33, 0xa8, 0xd8, 0x40, 0x95, 0xd};
+
+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::morpho::watershed_con<ntg::
+int_u16>(im1, oln::neighb_c4()))
== key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_watershed_hh0
--- olena/tests/morpho/tests/md5_morpho_watershed_hh0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_watershed_hh0 Tue, 23 Mar 2004 12:29:08 +0100
palma_g (oln/k/30_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/watershed.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xc4, 0x69, 0x68, 0x78, 0xd6, 0x80, 0x46,
0x20, 0x3f, 0x93, 0x93, 0x46, 0x9c, 0x90, 0x8d, 0x5b};
+
+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::morpho::watershed_seg<ntg::
+int_u16>(im1, oln::neighb_c4()))
== key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc7
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc7 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc7 Tue, 23 Mar 2004 12:28:54 +0100
palma_g (oln/k/31_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xaf, 0x25, 0x10, 0x99, 0x34, 0x55, 0xe,
0x76, 0xcc, 0x17, 0x67, 0xc2, 0xa1, 0xcf, 0x30, 0x39};
+
+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::morpho::fast::top_hat_contrast_op(im1,
oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc6
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc6 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc6 Tue, 23 Mar 2004 12:28:37 +0100
palma_g (oln/k/32_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x17, 0x88, 0x32, 0xa0, 0x1, 0x54, 0x59,
0x87, 0x6b, 0x3d, 0x16, 0x3b, 0xb, 0x9, 0x2b, 0x33};
+
+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::morpho::fast::top_hat_contrast_op (oln::convert::bound<ntg::
+int_u8>(), im1,
oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc5
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc5 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc5 Tue, 23 Mar 2004 12:28:21 +0100
palma_g (oln/k/33_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xe0, 0xe, 0x6, 0x89, 0x76, 0x32, 0x47,
0xe3, 0xe0, 0x75, 0xb1, 0x9d, 0xe0, 0xb5, 0xeb, 0x71};
+
+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::morpho::fast::self_complementary_top_hat(im1,
oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc4
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc4 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc4 Tue, 23 Mar 2004 12:28:07 +0100
palma_g (oln/k/34_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xe0, 0xe, 0x6, 0x89, 0x76, 0x32, 0x47,
0xe3, 0xe0, 0x75, 0xb1, 0x9d, 0xe0, 0xb5, 0xeb, 0x71};
+
+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::morpho::fast::self_complementary_top_hat
(oln::convert::bound<ntg::
+int_u8>(), im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc3
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc3 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc3 Tue, 23 Mar 2004 12:27:52 +0100
palma_g (oln/k/35_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x32, 0x3f, 0x5, 0x6a, 0xde, 0xfb, 0x8,
0x59, 0x3e, 0x5f, 0xce, 0x48, 0xe3, 0xc3, 0x67, 0x76};
+
+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::morpho::fast::black_top_hat(im1,
oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc2
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc2 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc2 Tue, 23 Mar 2004 12:27:39 +0100
palma_g (oln/k/36_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x32, 0x3f, 0x5, 0x6a, 0xde, 0xfb, 0x8,
0x59, 0x3e, 0x5f, 0xce, 0x48, 0xe3, 0xc3, 0x67, 0x76};
+
+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::morpho::fast::black_top_hat (oln::convert::bound<ntg::
+int_u8>(), im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc1
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc1 Tue, 23 Mar 2004 12:27:26 +0100
palma_g (oln/k/37_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x4c, 0xdb, 0xc2, 0x14, 0x4f, 0x96, 0xaa,
0x59, 0x3, 0x4b, 0x76, 0x3c, 0xb8, 0x3, 0x34, 0x5f};
+
+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::morpho::fast::white_top_hat(im1,
oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_top_hat_inc0
--- olena/tests/morpho/tests/md5_morpho_top_hat_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_top_hat_inc0 Tue, 23 Mar 2004 12:27:14 +0100
palma_g (oln/k/38_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/top_hat.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x4c, 0xdb, 0xc2, 0x14, 0x4f, 0x96, 0xaa,
0x59, 0x3, 0x4b, 0x76, 0x3c, 0xb8, 0x3, 0x34, 0x5f};
+
+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::morpho::fast::white_top_hat
(oln::convert::bound<ntg::
+int_u8>(), im1, oln::win_c8p()))
== key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_thinning_inc0
--- olena/tests/morpho/tests/md5_morpho_thinning_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_thinning_inc0 Tue, 23 Mar 2004 12:27:01 +0100
palma_g (oln/k/39_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/thinning.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+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::morpho::fast::thinning(im1,
oln::win_c8p(), oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_thickening_inc0
--- olena/tests/morpho/tests/md5_morpho_thickening_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_thickening_inc0 Tue, 23 Mar 2004 12:26:48 +0100
palma_g (oln/k/40_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/thickening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+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::morpho::fast::thickening(im1,
oln::win_c8p(), oln::win_c8p())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_reconstruction_hh5
--- olena/tests/morpho/tests/md5_morpho_reconstruction_hh5 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_reconstruction_hh5 Tue, 23 Mar 2004 12:26:36 +0100
palma_g (oln/k/41_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/reconstruction.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x53, 0x89, 0x3, 0x4f, 0x26, 0xf0,
0xf4, 0x5b, 0xd7, 0xf1, 0x69, 0xc9, 0x8a, 0x55, 0x6a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::hybrid::geodesic_reconstruction_erosion(im1,
im2,
oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_reconstruction_hh4
--- olena/tests/morpho/tests/md5_morpho_reconstruction_hh4 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_reconstruction_hh4 Tue, 23 Mar 2004 12:26:25 +0100
palma_g (oln/k/42_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/reconstruction.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x53, 0x89, 0x3, 0x4f, 0x26, 0xf0,
0xf4, 0x5b, 0xd7, 0xf1, 0x69, 0xc9, 0x8a, 0x55, 0x6a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::sequential::geodesic_reconstruction_erosion(im1,
im2,
oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_reconstruction_hh3
--- olena/tests/morpho/tests/md5_morpho_reconstruction_hh3 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_reconstruction_hh3 Tue, 23 Mar 2004 12:26:15 +0100
palma_g (oln/k/43_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/reconstruction.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x53, 0x89, 0x3, 0x4f, 0x26, 0xf0,
0xf4, 0x5b, 0xd7, 0xf1, 0x69, 0xc9, 0x8a, 0x55, 0x6a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::sure::geodesic_reconstruction_erosion(im1,
im2,
oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_reconstruction_hh2
--- olena/tests/morpho/tests/md5_morpho_reconstruction_hh2 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_reconstruction_hh2 Tue, 23 Mar 2004 12:26:04 +0100
palma_g (oln/k/44_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/reconstruction.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7e, 0x56, 0x6, 0xbe, 0xa1, 0xcd, 0x80,
0xf1, 0x4c, 0x9d, 0x63, 0x10, 0x4e, 0x3e, 0x9, 0x96};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::hybrid::geodesic_reconstruction_dilation(im2,
im1,
oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_reconstruction_hh1
--- olena/tests/morpho/tests/md5_morpho_reconstruction_hh1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_reconstruction_hh1 Tue, 23 Mar 2004 12:25:54 +0100
palma_g (oln/k/45_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/reconstruction.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7e, 0x56, 0x6, 0xbe, 0xa1, 0xcd, 0x80,
0xf1, 0x4c, 0x9d, 0x63, 0x10, 0x4e, 0x3e, 0x9, 0x96};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::sequential::geodesic_reconstruction_dilation(im2,
im1,
oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_reconstruction_hh0
--- olena/tests/morpho/tests/md5_morpho_reconstruction_hh0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_reconstruction_hh0 Tue, 23 Mar 2004 12:25:43 +0100
palma_g (oln/k/46_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/reconstruction.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7e, 0x56, 0x6, 0xbe, 0xa1, 0xcd, 0x80,
0xf1, 0x4c, 0x9d, 0x63, 0x10, 0x4e, 0x3e, 0x9, 0x96};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::sure::geodesic_reconstruction_dilation(im2,
im1,
oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_opening_inc0
--- olena/tests/morpho/tests/md5_morpho_opening_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_opening_inc0 Tue, 23 Mar 2004 12:25:27 +0100
palma_g (oln/k/47_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xe1, 0x9, 0xb5, 0xfb, 0x97, 0xa1, 0x11,
0xe, 0x3d, 0x5d, 0x40, 0x94, 0x40, 0x71, 0x46, 0xc};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::fast::opening(im, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_laplacian_inc1
--- olena/tests/morpho/tests/md5_morpho_laplacian_inc1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_laplacian_inc1 Tue, 23 Mar 2004 12:25:17 +0100
palma_g (oln/k/48_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/laplacian.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x1b, 0x83, 0x53, 0x90, 0xbf, 0xb6, 0x68,
0xad, 0xb3, 0xae, 0xfa, 0xfc, 0xfc, 0x6a, 0x1e, 0x27};
+
+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::morpho::fast::laplacian(oln::convert::bound<ntg::
+int_u8>(), im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_laplacian_inc0
--- olena/tests/morpho/tests/md5_morpho_laplacian_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_laplacian_inc0 Tue, 23 Mar 2004 12:25:02 +0100
palma_g (oln/k/49_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/laplacian.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x1b, 0x83, 0x53, 0x90, 0xbf, 0xb6, 0x68,
0xad, 0xb3, 0xae, 0xfa, 0xfc, 0xfc, 0x6a, 0x1e, 0x27};
+
+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::morpho::fast::laplacian(oln::convert::bound<ntg::
+int_u8>(), im1,
oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc5
--- olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc5 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc5 Tue, 23 Mar 2004 12:24:48 +0100
palma_g (oln/k/50_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/hit_or_miss.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x6d, 0x9, 0x4c, 0xf1, 0x6c, 0x3a, 0xd5,
0xad, 0xe0, 0xbf, 0xfe, 0x4, 0x5d, 0x8, 0x5c, 0x8a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ oln::window2d mywin;
+ mywin .add(-3,-2).add(-3,-1).add(-3,0).add(-3,1).add(-3,2)
.add(-2,-1).add(-2,0).add(-2,1) .add(-1,0);
+ oln::window2d mywin2 = - mywin;
+ if (oln::utils::md5(oln::morpho::fast::hit_or_miss_closing_bg(im1, mywin, mywin2)) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc4
--- olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc4 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc4 Tue, 23 Mar 2004 12:24:36 +0100
palma_g (oln/k/51_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/hit_or_miss.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xe9, 0x4e, 0x4f, 0x1, 0x4f, 0x53, 0x8a,
0xd0, 0xfc, 0xd9, 0xfa, 0x6c, 0xf7, 0x8a, 0x64, 0x5b};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ oln::window2d mywin;
+ mywin .add(-3,-2).add(-3,-1).add(-3,0).add(-3,1).add(-3,2)
.add(-2,-1).add(-2,0).add(-2,1) .add(-1,0);
+ oln::window2d mywin2 = - mywin;
+ if (oln::utils::md5(oln::morpho::fast::hit_or_miss_closing(im1, mywin, mywin2)) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc3
--- olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc3 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc3 Tue, 23 Mar 2004 12:24:24 +0100
palma_g (oln/l/0_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/hit_or_miss.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xfa, 0x7, 0x26, 0x34, 0x16, 0x36, 0xc,
0xf4, 0x5e, 0x19, 0x53, 0xa2, 0x89, 0x1e, 0xdb, 0xae};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ oln::window2d mywin;
+ mywin .add(-3,-2).add(-3,-1).add(-3,0).add(-3,1).add(-3,2)
.add(-2,-1).add(-2,0).add(-2,1) .add(-1,0);
+ oln::window2d mywin2 = - mywin;
+ if (oln::utils::md5(oln::morpho::fast::hit_or_miss_opening_bg(im1, mywin, mywin2)) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc2
--- olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc2 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc2 Tue, 23 Mar 2004 12:24:12 +0100
palma_g (oln/l/1_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/hit_or_miss.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x90, 0xda, 0x98, 0x5a, 0xef, 0x2e, 0x8d,
0x54, 0xa5, 0x6, 0xd, 0x7a, 0x6f, 0x63, 0x55, 0x7};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ oln::window2d mywin;
+ mywin .add(-3,-2).add(-3,-1).add(-3,0).add(-3,1).add(-3,2)
.add(-2,-1).add(-2,0).add(-2,1) .add(-1,0);
+ oln::window2d mywin2 = - mywin;
+ if (oln::utils::md5(oln::morpho::fast::hit_or_miss_opening(im1, mywin, mywin2)) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc1
--- olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc1 Tue, 23 Mar 2004 12:24:00 +0100
palma_g (oln/l/2_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/hit_or_miss.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xd3, 0xf4, 0x3, 0x73, 0x4d, 0xf1, 0x32,
0xc4, 0x94, 0x3f, 0x8f, 0x85, 0x53, 0x60, 0x20, 0x89};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ oln::window2d mywin;
+ mywin .add(-3,-2).add(-3,-1).add(-3,0).add(-3,1).add(-3,2)
.add(-2,-1).add(-2,0).add(-2,1) .add(-1,0);
+ oln::window2d mywin2 = - mywin;
+ if (oln::utils::md5(oln::morpho::fast::hit_or_miss(im1, mywin, mywin2)) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc0
--- olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_hit_or_miss_inc0 Tue, 23 Mar 2004 12:23:49 +0100
palma_g (oln/l/3_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/hit_or_miss.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xaa, 0xb9, 0xf0, 0x35, 0xa3, 0x70, 0xb3,
0xb5, 0x4a, 0x19, 0xb8, 0x8a, 0xc9, 0x25, 0xd1, 0xd};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ oln::window2d mywin;
+ mywin .add(-3,-2).add(-3,-1).add(-3,0).add(-3,1).add(-3,2)
.add(-2,-1).add(-2,0).add(-2,1) .add(-1,0);
+ oln::window2d mywin2 = - mywin;
+ if (oln::utils::md5(oln::morpho::fast::hit_or_miss (oln::convert::bound<ntg::
+int_u8>(), im1, mywin, mywin2)) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_gradient_inc0
--- olena/tests/morpho/tests/md5_morpho_gradient_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_gradient_inc0 Tue, 23 Mar 2004 12:23:37 +0100
palma_g (oln/l/4_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/gradient.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x74, 0xdf, 0xbb, 0xfd, 0x1e, 0x6d, 0x24,
0x72, 0xf9, 0xf, 0x6c, 0xb7, 0x66, 0xf8, 0xf7, 0xe2};
+
+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::morpho::
+internal_gradient(im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_geodesic_erosion_hh1
--- olena/tests/morpho/tests/md5_morpho_geodesic_erosion_hh1 Tue, 23 Mar 2004 14:35:13
+0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_geodesic_erosion_hh1 Tue, 23 Mar 2004 12:23:27
+0100 palma_g (oln/l/5_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/geodesic_erosion.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x53, 0x89, 0x3, 0x4f, 0x26, 0xf0,
0xf4, 0x5b, 0xd7, 0xf1, 0x69, 0xc9, 0x8a, 0x55, 0x6a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::sure::geodesic_erosion(im1, im2, oln::neighb_c4()))
== key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_geodesic_erosion_hh0
--- olena/tests/morpho/tests/md5_morpho_geodesic_erosion_hh0 Tue, 23 Mar 2004 14:35:13
+0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_geodesic_erosion_hh0 Tue, 23 Mar 2004 12:23:17
+0100 palma_g (oln/l/6_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/geodesic_erosion.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x53, 0x89, 0x3, 0x4f, 0x26, 0xf0,
0xf4, 0x5b, 0xd7, 0xf1, 0x69, 0xc9, 0x8a, 0x55, 0x6a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::geodesic_erosion(im1, im2, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_geodesic_dilation_hh1
--- olena/tests/morpho/tests/md5_morpho_geodesic_dilation_hh1 Tue, 23 Mar 2004 14:35:13
+0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_geodesic_dilation_hh1 Tue, 23 Mar 2004 12:23:07
+0100 palma_g (oln/l/7_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/geodesic_dilation.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x4, 0x86, 0xb0, 0xdd, 0x39, 0xba, 0x41,
0xd, 0x43, 0x74, 0x30, 0x1d, 0x22, 0x4e, 0xe, 0x55};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::sure::geodesic_dilation(im2, im1, oln::neighb_c4()))
== key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_geodesic_dilation_hh0
--- olena/tests/morpho/tests/md5_morpho_geodesic_dilation_hh0 Tue, 23 Mar 2004 14:35:13
+0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_geodesic_dilation_hh0 Tue, 23 Mar 2004 12:22:56
+0100 palma_g (oln/l/8_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/opening.hh>
+#include <oln/morpho/geodesic_dilation.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x4, 0x86, 0xb0, 0xdd, 0x39, 0xba, 0x41,
0xd, 0x43, 0x74, 0x30, 0x1d, 0x22, 0x4e, 0xe, 0x55};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im_type im2(oln::morpho::opening(im1, oln::win_c4p()));
+ if (oln::utils::md5(oln::morpho::geodesic_dilation(im2, im1, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_fast_morpho_hxx0
--- olena/tests/morpho/tests/md5_morpho_fast_morpho_hxx0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_fast_morpho_hxx0 Tue, 23 Mar 2004 12:22:47 +0100
palma_g (oln/l/9_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/erosion.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7c, 0x4f, 0xf, 0xc7, 0x27, 0x1, 0x98,
0x81, 0xfd, 0xb, 0x2e, 0xf6, 0x1c, 0x84, 0xc9, 0x1e};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::fast_morpho<im_type, oln::window2d,
oln::utils::histogram_min<ntg::bin> > (im1, oln::win_c8p())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_extrema_killer_hh3
--- olena/tests/morpho/tests/md5_morpho_extrema_killer_hh3 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_extrema_killer_hh3 Tue, 23 Mar 2004 12:22:37 +0100
palma_g (oln/l/10_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/extrema_killer.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x3d, 0xe, 0xc1, 0xf, 0x62, 0x52, 0xa4,
0xc6, 0xf, 0x3e, 0x62, 0x8a, 0x13, 0x63, 0x1b, 0xcf};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im(oln::load(rdata("lena128.pgm")));
+ if (oln::utils::md5(oln::morpho::fast_maxima_killer(im, 200, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_extrema_killer_hh2
--- olena/tests/morpho/tests/md5_morpho_extrema_killer_hh2 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_extrema_killer_hh2 Tue, 23 Mar 2004 12:22:14 +0100
palma_g (oln/l/11_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/extrema_killer.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xed, 0xfb, 0x4, 0x8c, 0x53, 0x9e, 0x3d,
0x5d, 0xd3, 0xcd, 0xf7, 0xb, 0x35, 0xd5, 0xcf, 0x16};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im(oln::load(rdata("lena128.pgm")));
+ if (oln::utils::md5(oln::morpho::fast_minima_killer(im, 200, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_extrema_killer_hh1
--- olena/tests/morpho/tests/md5_morpho_extrema_killer_hh1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_extrema_killer_hh1 Tue, 23 Mar 2004 12:21:52 +0100
palma_g (oln/l/12_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/extrema_killer.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xed, 0xfb, 0x4, 0x8c, 0x53, 0x9e, 0x3d,
0x5d, 0xd3, 0xcd, 0xf7, 0xb, 0x35, 0xd5, 0xcf, 0x16};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im(oln::load(rdata("lena128.pgm")));
+ if (oln::utils::md5(oln::morpho::sure_minima_killer(im, 200, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_extrema_killer_hh0
--- olena/tests/morpho/tests/md5_morpho_extrema_killer_hh0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_extrema_killer_hh0 Tue, 23 Mar 2004 12:20:29 +0100
palma_g (oln/l/13_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/extrema_killer.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x3d, 0xe, 0xc1, 0xf, 0x62, 0x52, 0xa4,
0xc6, 0xf, 0x3e, 0x62, 0x8a, 0x13, 0x63, 0x1b, 0xcf};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im(oln::load(rdata("lena128.pgm")));
+ if (oln::utils::md5(oln::morpho::sure_maxima_killer(im, 200, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_extrema_hxx1
--- olena/tests/morpho/tests/md5_morpho_extrema_hxx1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_extrema_hxx1 Tue, 23 Mar 2004 12:19:08 +0100
palma_g (oln/l/14_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/extrema.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x3e, 0x0, 0x9d, 0x21, 0x65, 0x71, 0xd1,
0x86, 0xaf, 0xc3, 0x3b, 0xc5, 0x59, 0xb5, 0xf7, 0x9};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im(oln::load(rdata("lena.pgm")));
+ if (oln::utils::md5(oln::morpho::sequential::regional_minima(im, oln::neighb_c4())) ==
key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_extrema_hxx0
--- olena/tests/morpho/tests/md5_morpho_extrema_hxx0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_extrema_hxx0 Tue, 23 Mar 2004 12:18:47 +0100
palma_g (oln/l/15_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/extrema.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xfc, 0xf3, 0x53, 0xb7, 0xd, 0x4e, 0x9b,
0x67, 0x2f, 0xb7, 0xd, 0x66, 0x7, 0xc3, 0xea, 0x87};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ typedef oln::image2d<ntg::bin> bin_im_type;
+ im_type light(oln::load(rdata("lena.pgm")));
+ bin_im_type minima(oln::load(rdata("map.pbm")));
+ if (oln::utils::md5(oln::morpho::sequential::minima_imposition(light,
minima, oln::neighb_c4())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_erosion_hh2
--- olena/tests/morpho/tests/md5_morpho_erosion_hh2 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_erosion_hh2 Tue, 23 Mar 2004 12:17:29 +0100
palma_g (oln/l/16_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/erosion.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7c, 0x4f, 0xf, 0xc7, 0x27, 0x1, 0x98,
0x81, 0xfd, 0xb, 0x2e, 0xf6, 0x1c, 0x84, 0xc9, 0x1e};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::fast::erosion(im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_erosion_hh1
--- olena/tests/morpho/tests/md5_morpho_erosion_hh1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_erosion_hh1 Tue, 23 Mar 2004 12:17:19 +0100
palma_g (oln/l/17_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/erosion.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x40, 0x8a, 0xcc, 0x33, 0xe3, 0xd, 0x52,
0x40, 0x86, 0x98, 0x79, 0x46, 0x76, 0x8, 0xd2, 0x68};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::n_erosion(im1, oln::win_c8p(), 5)) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_erosion_hh0
--- olena/tests/morpho/tests/md5_morpho_erosion_hh0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_erosion_hh0 Tue, 23 Mar 2004 12:17:10 +0100
palma_g (oln/l/18_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/erosion.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7c, 0x4f, 0xf, 0xc7, 0x27, 0x1, 0x98,
0x81, 0xfd, 0xb, 0x2e, 0xf6, 0x1c, 0x84, 0xc9, 0x1e};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::erosion(im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_dilation_hh1
--- olena/tests/morpho/tests/md5_morpho_dilation_hh1 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_dilation_hh1 Tue, 23 Mar 2004 12:17:01 +0100
palma_g (oln/l/19_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/dilation.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xa, 0x1e, 0xc8, 0x48, 0xdb, 0x54, 0x50,
0x6e, 0x24, 0xa9, 0xd6, 0x88, 0x4c, 0x8a, 0x4b, 0x7d};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::n_dilation(im1, oln::win_c8p(), 5)) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_dilation_hh0
--- olena/tests/morpho/tests/md5_morpho_dilation_hh0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_dilation_hh0 Tue, 23 Mar 2004 12:16:50 +0100
palma_g (oln/l/20_md5_morpho 644)
@@ -0,0 +1,26 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/dilation.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xbf, 0x67, 0x3, 0xa1, 0x2d, 0x6c, 0xac,
0xe9, 0xf3, 0x7c, 0x19, 0x4c, 0x3a, 0x3b, 0x4d, 0xaa};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::dilation(im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index: olena/tests/morpho/tests/md5_morpho_closing_inc0
--- olena/tests/morpho/tests/md5_morpho_closing_inc0 Tue, 23 Mar 2004 14:35:13 +0100
palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_closing_inc0 Tue, 23 Mar 2004 12:16:42 +0100
palma_g (oln/l/21_md5_morpho 644)
@@ -0,0 +1,27 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/closing.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x28, 0xc9, 0xb1, 0xab, 0x57, 0x92, 0xb0,
0x2f, 0xdb, 0xd5, 0xf2, 0x3e, 0xb4, 0x2f, 0x18, 0x8b};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::bin> im_type;
+ im_type im1(oln::load(rdata("object.pbm")));
+ if (oln::utils::md5(oln::morpho::closing(im1, oln::win_c8p())) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh9
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh9 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh9 Tue, 23 Mar 2004
12:16:32 +0100 palma_g (oln/l/22_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x47, 0x92, 0xeb, 0x94, 0x8f, 0xda, 0xe8,
0x1, 0x23, 0x62, 0xfa, 0x97, 0xd0, 0x78, 0xbf, 0x1e};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::minvalue_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh8
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh8 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh8 Tue, 23 Mar 2004
12:16:18 +0100 palma_g (oln/l/23_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xcc, 0x47, 0xb9, 0x26, 0x66, 0xc5, 0x2a,
0x29, 0x58, 0xa5, 0x94, 0xec, 0xf3, 0x26, 0x44, 0xb3};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::minvalue_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh7
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh7 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh7 Tue, 23 Mar 2004
12:16:05 +0100 palma_g (oln/l/24_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x5d, 0xf2, 0xf5, 0xd1, 0xc7, 0x72, 0x9a,
0x28, 0x92, 0x24, 0x30, 0x69, 0xf8, 0xe, 0xd1, 0xd9};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::maxvalue_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh6
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh6 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh6 Tue, 23 Mar 2004
12:15:51 +0100 palma_g (oln/l/25_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x5d, 0xf2, 0xf5, 0xd1, 0xc7, 0x72, 0x9a,
0x28, 0x92, 0x24, 0x30, 0x69, 0xf8, 0xe, 0xd1, 0xd9};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::maxvalue_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh5
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh5 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh5 Tue, 23 Mar 2004
12:15:38 +0100 palma_g (oln/l/26_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x96, 0xcf, 0xf6, 0xe2, 0x4a, 0xcb, 0x14,
0xaf, 0xec, 0x44, 0x57, 0x2e, 0xa7, 0xaa, 0xe8, 0xb3};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::height_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh4
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh4 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh4 Tue, 23 Mar 2004
12:15:25 +0100 palma_g (oln/l/27_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7d, 0x44, 0x3f, 0x1b, 0x4e, 0xc9, 0x29,
0xe7, 0x20, 0x15, 0x43, 0x47, 0x8f, 0x3f, 0x7f, 0x23};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::height_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh3
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh3 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh3 Tue, 23 Mar 2004
12:15:11 +0100 palma_g (oln/l/28_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x9d, 0xa, 0x87, 0x3b, 0x92, 0xde, 0x8a,
0xb0, 0x84, 0xf8, 0xe6, 0x5e, 0x6c, 0xdf, 0x5e, 0x76};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::
+integral_opening(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh2
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh2 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh2 Tue, 23 Mar 2004
12:15:00 +0100 palma_g (oln/l/29_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x87, 0xb9, 0xf, 0xde, 0x31, 0x62,
0xfd, 0xd7, 0xb, 0xa4, 0x19, 0x26, 0x3, 0x7, 0xa4};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::
+integral_closing(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh17
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh17 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh17 Tue, 23 Mar
2004 12:14:37 +0100 palma_g (oln/l/30_md5_morpho 644)
@@ -0,0 +1,31 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf9, 0xf5, 0xb3, 0x74, 0xe6, 0x2a, 0x7e,
0xa0, 0xd, 0xeb, 0xfd, 0xd1, 0xd8, 0x95, 0x4d, 0xd6};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ ntg::vec<2, unsigned, mlc::final> lambda;
+ lambda[0] = lambda[1] = 50;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::box_opening(im1, oln::neighb_c4(), lambda);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh16
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh16 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh16 Tue, 23 Mar
2004 12:14:26 +0100 palma_g (oln/l/31_md5_morpho 644)
@@ -0,0 +1,31 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7a, 0x83, 0xd8, 0xd4, 0xa9, 0x40, 0x24,
0x6c, 0xba, 0x19, 0x4, 0x9b, 0x1f, 0xb0, 0xa8, 0x95};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ ntg::vec<2, unsigned, mlc::final> lambda;
+ lambda[0] = lambda[1] = 50;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::box_closing(im1, oln::neighb_c4(), lambda);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh15
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh15 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh15 Tue, 23 Mar
2004 12:14:14 +0100 palma_g (oln/l/32_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x58, 0x58, 0xda, 0xf7, 0x7a, 0x1d, 0x8e,
0x4c, 0x92, 0xb9, 0xab, 0x4a, 0x4b, 0x7e, 0xcc, 0x35};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::cube_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh14
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh14 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh14 Tue, 23 Mar
2004 12:14:02 +0100 palma_g (oln/l/33_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8f, 0xbd, 0x54, 0x54, 0xa6, 0xf9, 0x42,
0x85, 0xaf, 0x76, 0x6d, 0xfa, 0xa6, 0xab, 0x56, 0x38};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::cube_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh13
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh13 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh13 Tue, 23 Mar
2004 12:13:51 +0100 palma_g (oln/l/34_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf5, 0x8f, 0xe8, 0x56, 0x5d, 0xd6, 0xf1,
0x1b, 0xa0, 0x91, 0x6b, 0x22, 0x7a, 0x3a, 0x25, 0x90};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::dist_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh12
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh12 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh12 Tue, 23 Mar
2004 12:13:40 +0100 palma_g (oln/l/35_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8b, 0xd5, 0xbc, 0xc, 0x93, 0x3e, 0x16,
0xc3, 0xce, 0x63, 0xc1, 0x41, 0xf, 0x8f, 0xc2, 0x1a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::dist_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh11
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh11 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh11 Tue, 23 Mar
2004 12:13:29 +0100 palma_g (oln/l/36_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8e, 0x3a, 0x61, 0x3f, 0x8e, 0x77, 0xa3,
0x90, 0xd3, 0xdc, 0x6, 0xe9, 0x0, 0x6a, 0xb4, 0x91};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::ball_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh10
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh10 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh10 Tue, 23 Mar
2004 12:13:17 +0100 palma_g (oln/l/37_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf, 0x46, 0x3d, 0xbb, 0x72, 0x16, 0x2b,
0x3f, 0x5f, 0x32, 0x30, 0xde, 0x42, 0xdf, 0x49, 0x22};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::ball_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh1
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh1 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh1 Tue, 23 Mar 2004
12:14:49 +0100 palma_g (oln/l/38_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x3d, 0xe, 0xc1, 0xf, 0x62, 0x52, 0xa4,
0xc6, 0xf, 0x3e, 0x62, 0x8a, 0x13, 0x63, 0x1b, 0xcf};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::card_opening(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh0
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh0 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_map_hh0 Tue, 23 Mar 2004
12:13:05 +0100 palma_g (oln/l/39_md5_morpho 644)
@@ -0,0 +1,28 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening_map.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xed, 0xfb, 0x4, 0x8c, 0x53, 0x9e, 0x3d,
0x5d, 0xd3, 0xcd, 0xf7, 0xb, 0x35, 0xd5, 0xcf, 0x16};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::slow::card_closing(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh5
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh5 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh5 Tue, 23 Mar
2004 12:12:54 +0100 palma_g (oln/l/40_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x2a, 0x39, 0xf5, 0xfc, 0x95, 0xa0, 0x18,
0xc1, 0xac, 0xa, 0x5, 0xbf, 0xc4, 0xc2, 0xfd, 0xf8};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena256.pgm")));
+ im1 = oln::morpho::fast::height_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh4
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh4 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh4 Tue, 23 Mar
2004 12:12:43 +0100 palma_g (oln/l/41_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8a, 0x6f, 0x2a, 0xaa, 0x83, 0x5f, 0x92,
0xc, 0x10, 0x1f, 0x56, 0x6, 0xcc, 0xb8, 0x42, 0xd4};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena256.pgm")));
+ im1 = oln::morpho::fast::height_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh3
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh3 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh3 Tue, 23 Mar
2004 12:12:31 +0100 palma_g (oln/l/42_md5_morpho 644)
@@ -0,0 +1,31 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x1a, 0xe0, 0x60, 0x8a, 0xd8, 0x2d, 0xbc,
0x11, 0x29, 0x0, 0xd0, 0x44, 0x53, 0xf9, 0xff, 0xec};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena256.pgm")));
+ im1 = oln::morpho::fast::
+integral_opening(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh2
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh2 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh2 Tue, 23 Mar
2004 12:12:20 +0100 palma_g (oln/l/43_md5_morpho 644)
@@ -0,0 +1,31 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x39, 0x6e, 0x2, 0xfa, 0xec, 0x98, 0xa5,
0x3c, 0x10, 0x16, 0x82, 0xfd, 0x54, 0x48, 0x7d, 0xd3};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena256.pgm")));
+ im1 = oln::morpho::fast::
+integral_closing(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh1
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh1 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh1 Tue, 23 Mar
2004 12:12:08 +0100 palma_g (oln/l/44_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x62, 0x60, 0xf, 0xd3, 0xdf, 0xd2, 0xaf,
0x5d, 0x71, 0xf3, 0xeb, 0xe9, 0x31, 0x34, 0x53, 0x75};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena256.pgm")));
+ im1 = oln::morpho::fast::card_opening(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh0
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh0 Tue, 23 Mar
2004 14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_light_hh0 Tue, 23 Mar
2004 12:11:57 +0100 palma_g (oln/l/45_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf, 0x6c, 0xa1, 0x5a, 0x98, 0x33, 0xeb,
0xbe, 0xb, 0x60, 0x7, 0xb3, 0xca, 0x5d, 0x44, 0xe};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena256.pgm")));
+ im1 = oln::morpho::fast::card_closing(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh9
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh9 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh9 Tue, 23 Mar 2004
12:11:45 +0100 palma_g (oln/l/46_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x47, 0x92, 0xeb, 0x94, 0x8f, 0xda, 0xe8,
0x1, 0x23, 0x62, 0xfa, 0x97, 0xd0, 0x78, 0xbf, 0x1e};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::minvalue_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh8
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh8 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh8 Tue, 23 Mar 2004
12:11:35 +0100 palma_g (oln/l/47_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xcc, 0x47, 0xb9, 0x26, 0x66, 0xc5, 0x2a,
0x29, 0x58, 0xa5, 0x94, 0xec, 0xf3, 0x26, 0x44, 0xb3};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::minvalue_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh7
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh7 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh7 Tue, 23 Mar 2004
12:11:24 +0100 palma_g (oln/l/48_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x5d, 0xf2, 0xf5, 0xd1, 0xc7, 0x72, 0x9a,
0x28, 0x92, 0x24, 0x30, 0x69, 0xf8, 0xe, 0xd1, 0xd9};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::maxvalue_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh6
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh6 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh6 Tue, 23 Mar 2004
12:11:13 +0100 palma_g (oln/l/49_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x5d, 0xf2, 0xf5, 0xd1, 0xc7, 0x72, 0x9a,
0x28, 0x92, 0x24, 0x30, 0x69, 0xf8, 0xe, 0xd1, 0xd9};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::maxvalue_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh5
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh5 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh5 Tue, 23 Mar 2004
12:11:03 +0100 palma_g (oln/l/50_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x96, 0xcf, 0xf6, 0xe2, 0x4a, 0xcb, 0x14,
0xaf, 0xec, 0x44, 0x57, 0x2e, 0xa7, 0xaa, 0xe8, 0xb3};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::height_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh4
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh4 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh4 Tue, 23 Mar 2004
12:10:52 +0100 palma_g (oln/l/51_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7d, 0x44, 0x3f, 0x1b, 0x4e, 0xc9, 0x29,
0xe7, 0x20, 0x15, 0x43, 0x47, 0x8f, 0x3f, 0x7f, 0x23};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::height_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh3
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh3 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh3 Tue, 23 Mar 2004
12:10:42 +0100 palma_g (oln/m/0_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x9d, 0xa, 0x87, 0x3b, 0x92, 0xde, 0x8a,
0xb0, 0x84, 0xf8, 0xe6, 0x5e, 0x6c, 0xdf, 0x5e, 0x76};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::
+integral_opening(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh2
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh2 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh2 Tue, 23 Mar 2004
12:10:31 +0100 palma_g (oln/m/1_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf6, 0x87, 0xb9, 0xf, 0xde, 0x31, 0x62,
0xfd, 0xd7, 0xb, 0xa4, 0x19, 0x26, 0x3, 0x7, 0xa4};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::
+integral_closing(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh17
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh17 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh17 Tue, 23 Mar 2004
12:10:10 +0100 palma_g (oln/m/2_md5_morpho 644)
@@ -0,0 +1,32 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf9, 0xf5, 0xb3, 0x74, 0xe6, 0x2a, 0x7e,
0xa0, 0xd, 0xeb, 0xfd, 0xd1, 0xd8, 0x95, 0x4d, 0xd6};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ ntg::vec<2, unsigned, mlc::final> lambda;
+ lambda[0] = lambda[1] = 50;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::box_opening(im1, oln::neighb_c4(), lambda);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh16
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh16 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh16 Tue, 23 Mar 2004
12:10:00 +0100 palma_g (oln/m/3_md5_morpho 644)
@@ -0,0 +1,32 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x7a, 0x83, 0xd8, 0xd4, 0xa9, 0x40, 0x24,
0x6c, 0xba, 0x19, 0x4, 0x9b, 0x1f, 0xb0, 0xa8, 0x95};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ ntg::vec<2, unsigned, mlc::final> lambda;
+ lambda[0] = lambda[1] = 50;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::box_closing(im1, oln::neighb_c4(), lambda);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh15
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh15 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh15 Tue, 23 Mar 2004
12:09:49 +0100 palma_g (oln/m/4_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x58, 0x58, 0xda, 0xf7, 0x7a, 0x1d, 0x8e,
0x4c, 0x92, 0xb9, 0xab, 0x4a, 0x4b, 0x7e, 0xcc, 0x35};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::cube_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh14
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh14 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh14 Tue, 23 Mar 2004
12:09:38 +0100 palma_g (oln/m/5_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8f, 0xbd, 0x54, 0x54, 0xa6, 0xf9, 0x42,
0x85, 0xaf, 0x76, 0x6d, 0xfa, 0xa6, 0xab, 0x56, 0x38};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::cube_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh13
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh13 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh13 Tue, 23 Mar 2004
12:09:27 +0100 palma_g (oln/m/6_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf5, 0x8f, 0xe8, 0x56, 0x5d, 0xd6, 0xf1,
0x1b, 0xa0, 0x91, 0x6b, 0x22, 0x7a, 0x3a, 0x25, 0x90};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::dist_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh12
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh12 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh12 Tue, 23 Mar 2004
12:09:16 +0100 palma_g (oln/m/7_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8b, 0xd5, 0xbc, 0xc, 0x93, 0x3e, 0x16,
0xc3, 0xce, 0x63, 0xc1, 0x41, 0xf, 0x8f, 0xc2, 0x1a};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::dist_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh11
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh11 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh11 Tue, 23 Mar 2004
12:09:04 +0100 palma_g (oln/m/8_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x8e, 0x3a, 0x61, 0x3f, 0x8e, 0x77, 0xa3,
0x90, 0xd3, 0xdc, 0x6, 0xe9, 0x0, 0x6a, 0xb4, 0x91};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::ball_closing(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index:
olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh10
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh10 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh10 Tue, 23 Mar 2004
12:08:52 +0100 palma_g (oln/m/9_md5_morpho 644)
@@ -0,0 +1,30 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+#include <iostream>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xf, 0x46, 0x3d, 0xbb, 0x72, 0x16, 0x2b,
0x3f, 0x5f, 0x32, 0x30, 0xde, 0x42, 0xdf, 0x49, 0x22};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::ball_opening(im1, oln::neighb_c4(), 5);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh1
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh1 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh1 Tue, 23 Mar 2004
12:10:21 +0100 palma_g (oln/m/10_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0x3d, 0xe, 0xc1, 0xf, 0x62, 0x52, 0xa4,
0xc6, 0xf, 0x3e, 0x62, 0x8a, 0x13, 0x63, 0x1b, 0xcf};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::card_opening(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
Index: olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh0
--- olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh0 Tue, 23 Mar 2004
14:35:13 +0100 palma_g ()
+++ olena/tests/morpho/tests/md5_morpho_attribute_closing_opening_hh0 Tue, 23 Mar 2004
12:08:39 +0100 palma_g (oln/m/11_md5_morpho 644)
@@ -0,0 +1,29 @@
+// -*- c++ -*-
+#include "data.hh"
+#include <oln/utils/md5.hh>
+
+#include "check.hh"
+#include <oln/basics2d.hh>
+#include <oln/morpho/attribute_closing_opening.hh>
+#include <oln/level/compare.hh>
+#include <ntg/all.hh>
+
+int main()
+{
+oln::utils::key::value_type data_key[16] = {0xed, 0xfb, 0x4, 0x8c, 0x53, 0x9e, 0x3d,
0x5d, 0xd3, 0xcd, 0xf7, 0xb, 0x35, 0xd5, 0xcf, 0x16};
+
+oln::utils::key key(data_key);
+
+ typedef oln::image2d<ntg::
+int_u8> im_type;
+ im_type im1(oln::load(rdata("lena128.pgm")));
+ im1 = oln::morpho::fast::card_closing(im1, oln::neighb_c4(), 200);
+ if (oln::utils::md5(im1) == key)
+ std::cout << "OK" << std::endl;
+else
+ {
+ std::cout << "FAIL" << std::endl;
+ return true;
+ }
+ return 0;
+ }
--
Giovanni Palma
EPITA - promo 2005 - membre d'EpX - LRDE
Mob. : +33 (0)6 60 97 31 74