STIR  6.2.0
Functions
compare_image.cxx File Reference

compare images to see if they are identical, allowing for small differences More...

#include "stir/DiscretisedDensity.h"
#include "stir/ArrayFunction.h"
#include "stir/recon_array_functions.h"
#include "stir/IO/read_from_file.h"
#include "stir/is_null_ptr.h"
#include "stir/warning.h"
#include <numeric>
#include <stdlib.h>

Functions

int main (int argc, char *argv[])
 

Detailed Description

compare images to see if they are identical, allowing for small differences

Author
Matthew Jacobson
Kris Thielemans
PARAPET project
Charalampos Tsoumpas: Add the tolerance as input

This utility compares two images. They are deemed identical if their maximum absolute relative difference is less than a hard-coded tolerance value. Diagnostic output is written to stdout, and the return value indicates if the files are identical or not.