Skip to content

Commit

Permalink
[opencl] Increase test coverage with no-opencl image comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 8689c40 commit 8f40129
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/src/analysis/testqgsninecellfilters.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8f40129

Please sign in to comment.