#include <HYDROData_Document.h>
#include <HYDROData_Image.h>
+#include <TestViewer.h>
#include <QPainter>
+#include <QImage>
+
+extern QString REF_DATA_PATH;
static QImage TestImage() {
QImage aPic(50, 40, QImage::Format_RGB32);
aDoc->Close();
}
+
+void test_HYDROData_Image::testDiff()
+{
+ QImage im1, im2;
+ im1.load( REF_DATA_PATH + "/LandCover_Triangles.png" );
+ im2.load( REF_DATA_PATH + "/LandCover_Triangles_Split.png" );
+
+ QImage im3 = TestViewer::diff( im1, im2 );
+ CPPUNIT_ASSERT_IMAGES3( &im3, "diff_image", false );
+}