STIR  6.2.0
Public Member Functions | Protected Member Functions | List of all members
stir::ecat::ecat6::ECAT6ImageInputFileFormat Class Reference

Class for reading images in ECAT6 file-format. More...

#include "stir/IO/ECAT6ImageInputFileFormat.h"

Inheritance diagram for stir::ecat::ecat6::ECAT6ImageInputFileFormat:
Inheritance graph
[legend]

Public Member Functions

virtual const std::string get_name () const
 

Protected Member Functions

virtual bool actual_can_read (const FileSignature &signature, std::istream &input) const
 
bool can_read (const FileSignature &signature, std::istream &input) const
 
bool can_read (const FileSignature &, const std::string &filename) const
 
virtual unique_ptr< data_typeread_from_file (std::istream &input) const
 read data from a stream More...
 
virtual unique_ptr< data_typeread_from_file (const std::string &filename) const
 read data from a filename More...
 

Additional Inherited Members

- Public Types inherited from stir::InputFileFormat< DiscretisedDensity< 3, float > >
typedef DiscretisedDensity< 3, float > data_type
 

Detailed Description

Class for reading images in ECAT6 file-format.

Deprecated:

Member Function Documentation

◆ read_from_file() [1/2]

virtual unique_ptr<data_type> stir::ecat::ecat6::ECAT6ImageInputFileFormat::read_from_file ( std::istream &  input) const
inlineprotectedvirtual

read data from a stream

This function should throw an exception if the read fails.

Warning
This member throws for most implementations. Use a filename instead.

Implements stir::InputFileFormat< DiscretisedDensity< 3, float > >.

References stir::error().

◆ read_from_file() [2/2]

virtual unique_ptr<data_type> stir::ecat::ecat6::ECAT6ImageInputFileFormat::read_from_file ( const std::string &  filename) const
inlineprotectedvirtual

read data from a filename

This function should throw an exception if the read fails.

Default implementation used open_read_binary and read_from_file(std::istream&).

Reimplemented from stir::InputFileFormat< DiscretisedDensity< 3, float > >.

References stir::ecat::ecat6::cti_read_ECAT6_Main_header(), stir::error(), stir::ecat::ecat6::is_ECAT6_image_file(), and stir::warning().


The documentation for this class was generated from the following file: