37 #ifndef AIMS_IO_SPMR_H
38 #define AIMS_IO_SPMR_H
46 template <
typename T>
class AimsData;
50 class AffineTransformation3d;
57 template <
typename T>
class SpmReader;
96 void readFrame( std::ifstream &,
AimsData<T> & data,
int t,
97 const std::string & type,
SpmHeader* hdr,
bool bswap,
98 const Motion & storageToMemory );
100 void readScaledFrame( std::ifstream &,
AimsData<T> & data,
int t,
102 const Motion & storageToMemory );
107 template <
typename T>
113 reader.
read( thing );
The template class for SPM read operation.
void read(AimsData< T > &thing, const carto::AllocatorContext &context, carto::Object options)
Read the data with "name" file name from disk.
std::string removeExtension(const std::string &name)
Return a name without .hdr or .img extension.
SpmReader(const std::string &name)
The class for EcatSino data write operation.
GenesisReader< T > & operator>>(GenesisReader< T > &reader, AimsData< T > &thing)
aims::AffineTransformation3d Motion