26 #include <mln/value/graylevel.hh>
27 #include <mln/value/glf.hh>
28 #include <mln/value/gl8.hh>
29 #include <mln/value/gl16.hh>
30 #include <mln/literal/all.hh>
50 mln_assertion(b.value() == 0.42f);
53 mln_assertion(c.value() == 0.42f);
56 mln_assertion(d.value() == 0.42f);
59 mln_assertion(e.value() == 0.f);
61 graylevel<24> f = mlc_pow_int(2, 24) - 1;
63 mln_assertion(g.value() == 1.f);
67 mln_assertion(i.value() == 0.f);
73 mln_assertion(a ==
glf(white));
74 mln_assertion(a.value() == 1.f);
76 mln_assertion(d ==
glf(white));
77 mln_assertion(d.value() == 1.f);
80 mln_assertion(b ==
glf(black));
81 mln_assertion(b.value() == 0.f);
83 mln_assertion(e ==
glf(black));
84 mln_assertion(e.value() == 0.f);
87 mln_assertion(c ==
glf(medium_gray));
88 mln_assertion(c.value() == 0.5f);
90 mln_assertion(f ==
glf(medium_gray));
91 mln_assertion(f.value() == 0.5f);