EleFits  4.0.1
A modern C++ API on top of CFitsIO

◆ rasterApprox()

template<typename T , long n>
bool Euclid::Fits::Test::rasterApprox ( const Raster< T, n > &  test,
const Raster< T, n > &  ref,
double  tol = 0.01 
)

Check whether a test raster is approximately equal to a reference raster.

Test each pixel as: |ref - test| / test < tol