Developer documentation
Version 3.0.3-105-gd3941f44
image_diff.h File Reference
#include <set>
#include "image_helpers.h"
#include "algo/loop.h"

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

template<class HeaderType1 , class HeaderType2 >
void MR::check_headers (HeaderType1 &in1, HeaderType2 &in2)
 check image headers are the same (dimensions, spacing & transform) More...
 
template<class ImageType1 , class ImageType2 >
void MR::check_images_abs (ImageType1 &in1, ImageType2 &in2, const double tol=0.0)
 check images are the same within a absolute tolerance More...
 
template<class ImageType1 , class ImageType2 >
void MR::check_images_frac (ImageType1 &in1, ImageType2 &in2, const double tol=0.0)
 check images are the same within a fractional tolerance More...
 
template<class ImageType1 , class ImageType2 , class ImageTypeTol >
void MR::check_images_tolimage (ImageType1 &in1, ImageType2 &in2, ImageTypeTol &tol)
 check images are the same within a tolerance defined by a third image More...
 
template<class ImageType1 , class ImageType2 >
void MR::check_images_voxel (ImageType1 &in1, ImageType2 &in2, const double tol=0.0)
 check images are the same within a fractional tolerance relative to the maximum value in the voxel More...
 
template<class HeaderType1 , class HeaderType2 >
void MR::check_keyvals (const HeaderType1 &in1, const HeaderType2 &in2)
 check headers contain the same key-value entries More...
 
template<class HeaderType1 , class HeaderType2 >
bool MR::headers_match (HeaderType1 &in1, HeaderType2 &in2)
 check image headers are the same (dimensions, spacing & transform) More...
 
template<class ImageType1 , class ImageType2 >
bool MR::images_match_abs (ImageType1 &in1, ImageType2 &in2, const double tol=0.0)
 check images are the same within a absolute tolerance More...