26 #include <mln/core/image/image2d.hh>
27 #include <mln/io/tiff/load.hh>
29 #include <mln/data/compare.hh>
31 #include <mln/value/int_u8.hh>
32 #include <mln/value/rgb8.hh>
34 #include "tests/data.hh"
36 #include <mln/debug/println.hh>
41 rgb8 ref_rgb[6][6] = { {
rgb8(0,0,0),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(255,246,0),
rgb8(0,0,0) },
42 {
rgb8(255,255,255),
rgb8(0,0,0),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(0,0,0) },
43 {
rgb8(0,255,48),
rgb8(255,255,255),
rgb8(255,0,0),
rgb8(255,255,255),
rgb8(0,255,246),
rgb8(0,0,0) },
44 {
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(0,0,0),
rgb8(255,255,255),
rgb8(0,0,0) },
45 {
rgb8(42,0,255),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(255,255,255),
rgb8(0,0,0),
rgb8(0,0,0) },
46 {
rgb8(0,0,0),
rgb8(0,0,0),
rgb8(0,0,0),
rgb8(0,0,0),
rgb8(0,0,0),
rgb8(0,0,0) } };
48 int_u8 ref_gl[6][6] = { { 0, 255, 255, 255, 230, 0 },
49 { 255, 0, 255, 255, 255, 0 },
50 { 186, 255, 54, 255, 200, 0 },
51 { 255, 255, 255, 0, 255, 0 },
52 { 27, 255, 255, 255, 0, 0 },
53 { 0, 0, 0, 0, 0, 0 } };
55 bool ref_bw[6][6] = { { 0, 1, 1, 1, 1, 0 },
60 { 0, 0, 0, 0, 0, 0 } };
73 mln_assertion(pic == ref);
80 mln_assertion(pic == ref);
87 mln_assertion(pic == ref);