1 #include <mln/core/image/image2d.hh>
2 #include <mln/core/image/dmorph/extended.hh>
3 #include <mln/core/var.hh>
4 #include <mln/core/routine/extend.hh>
6 #include <mln/value/rgb8.hh>
8 #include <mln/border/fill.hh>
10 #include <mln/literal/colors.hh>
12 #include <mln/data/fill.hh>
14 #include <mln/draw/box.hh>
16 #include <mln/fun/x2x/rotation.hh>
18 #include <mln/algebra/vec.hh>
20 #include <doc/tools/sample_utils.hh>
27 border::thickness = 30;
41 box2d extended_domain= ima1.domain();
42 extended_domain.
enlarge(border::thickness);
47 doc::ppmsave(ima1 | extended_domain,
"ima2d-rot");
54 algebra::vec<2,float> pv = p.to_site().
to_vec();
55 algebra::vec<2,float> v = rot1.inv()(pv);
60 doc::ppmsave(extended_to(ima2, extended_domain),
"ima2d-rot");