26 #include <mln/core/image/image2d.hh>
27 #include <mln/core/alias/neighb2d.hh>
28 #include <mln/pw/all.hh>
30 #include <mln/value/int_u8.hh>
31 #include <mln/io/pgm/load.hh>
32 #include <mln/io/pgm/save.hh>
34 #include <mln/morpho/tree/component_tree.hh>
35 #include <mln/morpho/tree/compute_attribute_image.hh>
36 #include <mln/morpho/attribute/card.hh>
38 #include <mln/morpho/tree/filter/all.hh>
39 #include <mln/morpho/tree/propagate_representative.hh>
41 #include <mln/morpho/closing/area.hh>
43 #include "tests/data.hh"
65 typedef mln_ch_value_(I,
unsigned) A;
67 A a = morpho::tree::compute_attribute_image(attribute_t (), tree);
70 typedef fun::geq_v2b_expr_< pw::value_<
image2d<
unsigned> >,
71 pw::cst_<
unsigned> > predicate_t;
72 predicate_t predicate = pw::
value(a) >= pw::cst(lambda);
73 I ref = morpho::closing::
area(input,
c4(), lambda);
79 mln_assertion(out == ref);
86 mln_assertion(out == ref);
93 mln_assertion(out == ref);