Skip to content
Permalink
Browse files

[opencl] Increase test coverage with no-opencl image comparison

  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 8689c40 commit 8f40129d09776c7fe96b88604405a908595f9ede
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/src/analysis/testqgsninecellfilters.cpp
@@ -98,8 +98,13 @@ void TestNineCellFilters::_testAlg( const QString &name, bool useOpenCl )
QString tmpFile( tempFile( name ) );
#endif
QString refFile( referenceFile( name ) );
<<<<<<< 8689c401a2a66b4b159a54d0c37e26a33aa183c3
T ninecellFilter( SRC_FILE, tmpFile, "GTiff" );
int res = ninecellFilter.processRaster();
=======
T ninecellsfilter( SRC_FILE, tmpFile, "GTiff" );
int res = ninecellsfilter.processRaster();
>>>>>>> [opencl] Increase test coverage with no-opencl image comparison
QVERIFY( res == 0 );

// Produced file
@@ -180,7 +185,11 @@ void TestNineCellFilters::_rasterCompare( QgsAlignRaster::RasterInfo &out, QgsA
QCOMPARE( out.cellSize(), refCellSize );

// If the values differ less than tolerance they are considered equal
<<<<<<< 8689c401a2a66b4b159a54d0c37e26a33aa183c3
double tolerance = 0.0001;
=======
double tolerance = 0.0000001;
>>>>>>> [opencl] Increase test coverage with no-opencl image comparison

// Check three points
std::map<int, int> controlPoints;

0 comments on commit 8f40129

Please sign in to comment.
You can’t perform that action at this time.