3 #ifndef __stir_IO_ECAT7ImageInputFileFormat_h__ 4 #define __stir_IO_ECAT7ImageInputFileFormat_h__ 28 #ifndef HAVE_LLN_MATRIX 29 # error HAVE_LLN_MATRIX not define: you need the lln ecat library. 45 virtual const std::string get_name()
const {
return "ECAT7"; }
48 virtual bool actual_can_read(
const FileSignature& signature, std::istream& input)
const 61 error(
"read_from_file for ECAT7 with istream not implemented %s:%d. Sorry", __FILE__, __LINE__);
62 return unique_ptr<data_type>();
64 virtual unique_ptr<data_type>
read_from_file(
const std::string& filename)
const 69 warning(
"\nReading frame 1, gate 1, data 0, bed 0 from file %s\n", filename.c_str());
70 return unique_ptr<data_type>(ECAT7_to_VoxelsOnCartesianGrid(filename,
78 error(
"ECAT7 file %s is not an image file", filename.c_str());
79 return unique_ptr<data_type>();
A class to read/store the file signature.
Definition: FileSignature.h:34
This file declares various utility functions.
Declaration of routines which convert CTI things into our building blocks and vice versa...
Declaration of stir::error()
const char * get_signature() const
get access to the signature
Definition: FileSignature.h:52
void warning(const char *const s,...)
Print warning with format string a la printf.
Definition: warning.cxx:41
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
defines the stir::VoxelsOnCartesianGrid class
bool is_ECAT7_image_file(const std::string &filename)
checks if the file is in ECAT6 format and if the file contains images
Definition: stir_ecat7.cxx:160