2d/imagetest.hh File Reference
#include <mia/2d/image.hh>
Include dependency graph for 2d/imagetest.hh:

Go to the source code of this file.

Functions

void EXPORT_2D test_image_equal (const C2DImage &A, const C2DImage &expect)
 test if two images are equal and report the results by using BOOST_TEST methods. More...
 

Function Documentation

◆ test_image_equal()

void EXPORT_2D test_image_equal ( const C2DImage A,
const C2DImage expect 
)

test if two images are equal and report the results by using BOOST_TEST methods.

Test if two images are ove equal size, equal pixel type and if their pixel values are equal if the pixel type is integral, or close if the pixel type is floating point. The backend uses the BOOST unit test library to report sucess or failture.

Parameters
Atest image
expectthe expected image