30 #include <QtGui/QtGui>
33 #include "tests/data.hh"
35 #include <mln/core/image/image2d.hh>
36 #include <mln/value/rgb8.hh>
37 #include <mln/value/int_u8.hh>
38 #include <mln/io/ppm/load.hh>
39 #include <mln/io/pgm/load.hh>
40 #include <mln/data/convert.hh>
42 #include <mln/convert/to_qimage.hh>
53 QImage refpix(MLN_IMG_DIR
"/picasso.pgm");
57 for (
int row = 0; row < test.height(); ++row)
58 for (
int col = 0; col < test.width(); ++col)
59 mln_assertion(refpix.pixel(col, row) == test.pixel(col, row));
66 QImage refpix(MLN_IMG_DIR
"/picasso.ppm");
68 test = test.convertToFormat(refpix.format());
72 for (
int row = 0; row < test.height(); ++row)
73 for (
int col = 0; col < test.width(); ++col)
74 mln_assertion(refpix.pixel(col, row) == test.pixel(col, row));