1 #ifndef __stir_IO_ITKInputFileFormat_h__ 2 #define __stir_IO_ITKInputFileFormat_h__ 43 template <
typename STIRImageType = DiscretisedDensity<3,
float>>
49 bool can_read(
const FileSignature& signature, std::istream& input)
const override;
51 bool can_read(
const FileSignature& signature,
const std::string& filename)
const override;
53 const std::string get_name()
const override {
return "ITK"; }
56 bool actual_can_read(
const FileSignature& signature, std::istream& input)
const override;
59 unique_ptr<STIRImageType>
read_from_file(std::istream& input)
const override;
62 unique_ptr<STIRImageType>
read_from_file(
const std::string& filename)
const override;
A class to read/store the file signature.
Definition: FileSignature.h:34
defines the stir::DiscretisedDensity class
unique_ptr< DataT > read_from_file(const FileSignature &signature, FileT file)
Function that reads data from file using the default InputFileFormatRegistry, using the provided File...
Definition: read_from_file.h:46