|
STIR 6.4.0
|
Implementation of OutputFileFormat paradigm for the ECAT7 format. More...
#include "stir/IO/ECAT7ParametricDensityOutputFileFormat.h"

Public Member Functions | |
| ECAT7ParametricDensityOutputFileFormat (const NumericType &=NumericType::SHORT, const ByteOrder &=ByteOrder::native) | |
| virtual NumericType | set_type_of_numbers (const NumericType &, const bool warn=false) |
| Set type of numbers to be used for output. | |
| virtual ByteOrder | set_byte_order (const ByteOrder &, const bool warn=false) |
| Set byte order to be used for output. | |
Public Member Functions inherited from stir::RegisteredParsingObject< ECAT7ParametricDensityOutputFileFormat< DiscretisedDensityT >, OutputFileFormat< ParametricDiscretisedDensity< DiscretisedDensityT > >, OutputFileFormat< ParametricDiscretisedDensity< DiscretisedDensityT > > > | |
| std::string | get_registered_name () const override |
| Returns Derived::registered_name. | |
| std::string | parameter_info () override |
| Returns a string with all parameters and their values, in a form suitable for parsing again. | |
| std::string | get_registered_name () const override |
| Returns Derived::registered_name. | |
| std::string | parameter_info () override |
| Returns a string with all parameters and their values, in a form suitable for parsing again. | |
Public Member Functions inherited from stir::OutputFileFormat< DataT > | |
| OutputFileFormat (const NumericType &=NumericType::FLOAT, const ByteOrder &=ByteOrder::native) | |
| Succeeded | write_to_file (std::string &filename, const DataT &data) const |
| Write a single image to file. | |
| Succeeded | write_to_file (const std::string &filename, const DataT &density) const |
| write a single image to file | |
| NumericType | get_type_of_numbers () const |
| get type used for outputting numbers | |
| ByteOrder | get_byte_order () |
| get byte order used for output | |
| float | get_scale_to_write_data () const |
| get scale to write the data | |
| virtual void | set_byte_order_and_type_of_numbers (ByteOrder &, NumericType &, const bool warn=false) |
| set byte order and data type used for output | |
| virtual float | set_scale_to_write_data (const float new_scale_to_write_data, const bool warn=false) |
| set scale outputting numbers | |
Public Member Functions inherited from stir::ParsingObject | |
| ParsingObject (const ParsingObject &) | |
| ParsingObject & | operator= (const ParsingObject &) |
| bool | parse (std::istream &f) |
| bool | parse (const char *const filename) |
| void | ask_parameters () |
Public Attributes | |
| std::string | default_scanner_name |
Static Public Attributes | |
| static const char *const | registered_name |
| Name which will be used when parsing an OutputFileFormat object. | |
Protected Member Functions | |
| virtual Succeeded | actual_write_to_file (std::string &output_filename, const ParametricDiscretisedDensity< DiscretisedDensityT > &density) const |
| virtual void | set_defaults () |
| Set defaults before parsing. | |
| virtual void | initialise_keymap () |
| Initialise all keywords. | |
| virtual bool | post_processing () |
| This will be called at the end of the parsing. | |
Protected Member Functions inherited from stir::OutputFileFormat< DataT > | |
| virtual Succeeded | actual_write_to_file (std::string &filename, const DataT &density) const =0 |
| virtual function called by write_to_file() | |
| void | set_defaults () override |
| sets value for output data type | |
| void | initialise_keymap () override |
| sets keys for output data type for parsing | |
| bool | post_processing () override |
| Checks if parameters have sensible values after parsing. | |
| void | set_key_values () override |
| overloaded member for ParsingObject::set_key_values() | |
Additional Inherited Members | |
Static Public Member Functions inherited from stir::RegisteredParsingObject< ECAT7ParametricDensityOutputFileFormat< DiscretisedDensityT >, OutputFileFormat< ParametricDiscretisedDensity< DiscretisedDensityT > >, OutputFileFormat< ParametricDiscretisedDensity< DiscretisedDensityT > > > | |
| static OutputFileFormat< ParametricDiscretisedDensity< DiscretisedDensityT > > * | read_from_stream (std::istream *) |
| Construct a new object (of type Derived) by parsing the istream. | |
| static OutputFileFormat< ParametricDiscretisedDensity< DiscretisedDensityT > > * | read_from_stream (std::istream *) |
| Construct a new object (of type Derived) by parsing the istream. | |
Static Public Member Functions inherited from stir::OutputFileFormat< DataT > | |
| static shared_ptr< OutputFileFormat< DataT > > | default_sptr () |
| A function to return a default output file format. | |
Static Public Member Functions inherited from stir::RegisteredObject< OutputFileFormat< DataT > > | |
| static OutputFileFormat< DataT > * | read_registered_object (std::istream *in, const std::string ®istered_name) |
| Construct a new object (of a type derived from Root, its actual type determined by the registered_name parameter) by parsing the istream. | |
| static OutputFileFormat< DataT > * | ask_type_and_parameters () |
| ask the user for the type, and then calls read_registered_object(0, type) | |
| static void | list_registered_names (std::ostream &stream) |
| List all possible registered names to the stream. | |
Protected Types inherited from stir::RegisteredObject< OutputFileFormat< DataT > > | |
| typedef OutputFileFormat< DataT > *(* | RootFactory) (std::istream *) |
| The type of a root factory is a function, taking an istream* as argument, and returning a Root*. | |
| typedef FactoryRegistry< std::string, RootFactory, interfile_less > | RegistryType |
| The type of the registry. | |
Static Protected Member Functions inherited from stir::RegisteredObject< OutputFileFormat< DataT > > | |
| static RegistryType & | registry () |
| Static function returning the registry. | |
Protected Attributes inherited from stir::OutputFileFormat< DataT > | |
| NumericType | type_of_numbers |
| type used for outputting numbers | |
| ByteOrder | file_byte_order |
| byte order used for output | |
| float | scale_to_write_data |
| scale to write the data | |
| KeyParser | parser |
Implementation of OutputFileFormat paradigm for the ECAT7 format.
|
virtual |
Set type of numbers to be used for output.
Currently the return value will always be NumericType::SHORT
Reimplemented from stir::OutputFileFormat< DataT >.
References set_type_of_numbers(), stir::OutputFileFormat< DataT >::type_of_numbers, and stir::warning().
Referenced by set_type_of_numbers().
|
virtual |
Set byte order to be used for output.
Currently the return value will always be ByteOrder::BIGENDIAN
Reimplemented from stir::OutputFileFormat< DataT >.
References stir::ByteOrder::big_endian, stir::OutputFileFormat< DataT >::file_byte_order, set_byte_order(), and stir::warning().
Referenced by set_byte_order().
|
protectedvirtual |
Set defaults before parsing.
Reimplemented from stir::ParsingObject.
References stir::ByteOrder::big_endian, stir::OutputFileFormat< DataT >::file_byte_order, set_defaults(), stir::OutputFileFormat< DataT >::set_defaults(), stir::OutputFileFormat< DataT >::set_key_values(), and stir::OutputFileFormat< DataT >::type_of_numbers.
Referenced by set_defaults().
|
protectedvirtual |
Initialise all keywords.
Reimplemented from stir::ParsingObject.
References initialise_keymap(), and stir::OutputFileFormat< DataT >::initialise_keymap().
Referenced by initialise_keymap().
|
protectedvirtual |
This will be called at the end of the parsing.
Reimplemented from stir::ParsingObject.
References stir::ecat::find_ECAT_system_type(), stir::Scanner::get_scanner_from_name(), post_processing(), stir::OutputFileFormat< DataT >::post_processing(), and stir::warning().
Referenced by post_processing().