STIR  6.2.0
Namespaces | Functions
compare_projdata.cxx File Reference

compare 2 files with sinogram data More...

#include "stir/ProjData.h"
#include "stir/SegmentByView.h"
#include "stir/SegmentIndices.h"
#include "stir/shared_ptr.h"
#include <iostream>
#include <algorithm>

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

void stir::update_comparison (SegmentByView< float > &input1, const SegmentByView< float > &input2, float &max_pos_error, float &max_neg_error, float &amplitude)
 
int main (int argc, char *argv[])
 

Detailed Description

compare 2 files with sinogram data

Author
Matthew Jacobson
Kris Thielemans
PARAPET project

This utility compares two input projection data sets. The input data are deemed identical if their maximum absolute 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. Note however that a non-success return value (which is 1 on most systems) might also indicate an error reading the data.