00001 #include <mln/core/image/image2d.hh>
00002 #include <mln/core/image/dmorph/image_if.hh>
00003 #include <mln/core/concept/function.hh>
00004 #include <mln/pw/all.hh>
00005 #include <mln/core/var.hh>
00006
00007 struct my_values_t : mln::Function_v2v<my_values_t>
00008 {
00009 typedef int result;
00010
00011 int operator()(const mln::point2d&) const
00012 {
00013 return 0;
00014 }
00015 };
00016
00017 int main()
00018 {
00019 using namespace mln;
00020
00021 box2d arr(4, 2);
00022 my_values_t my_values;
00023
00024
00025 mln_VAR(ima, my_values | arr);
00026
00027
00028 (void) ima;
00029
00030
00031 mln_VAR(imab1, ima | (pw::value(ima) == pw::cst(1u)));
00032
00033
00034 (void) imab1;
00035
00036
00037 box2d b2(1, 2);
00038
00039
00040
00041
00042
00043
00044 }