STIR
6.2.0
|
Declarations of functions which read/write Interfile data. More...
#include "stir/NumericType.h"
#include "stir/Succeeded.h"
#include "stir/ByteOrder.h"
#include <iostream>
#include <string>
Go to the source code of this file.
Classes | |
class | stir::IndexRange< num_dimensions > |
This class defines ranges which can be 'irregular'. More... | |
class | stir::Array< num_dimensions, elemT > |
This class defines multi-dimensional (numeric) arrays. More... | |
class | stir::DiscretisedDensity< num_dimensions, elemT > |
This abstract class is the basis for all image representations. More... | |
class | stir::VectorWithOffset< T > |
A templated class for vectors, but with indices starting not from 0. More... | |
class | stir::CartesianCoordinate3D< coordT > |
a templated class for 3-dimensional coordinates. More... | |
class | stir::Coordinate3D< coordT > |
a templated class for 3-dimensional coordinates. More... | |
class | stir::VoxelsOnCartesianGrid< elemT > |
This class is used to represent voxelised densities on a cuboid grid (3D). More... | |
class | stir::ParametricDiscretisedDensity< DiscDensT > |
Class to store parametric images. More... | |
class | stir::VoxelsOnCartesianGrid< elemT > |
This class is used to represent voxelised densities on a cuboid grid (3D). More... | |
Namespaces | |
stir | |
Namespace for the STIR library (and some/most of its applications) | |
Functions | |
bool | stir::is_interfile_signature (const char *const signature) |
Checks if the signature corresponds to the start of an interfile header. More... | |
VoxelsOnCartesianGrid< float > * | stir::read_interfile_image (std::istream &input, const std::string &directory_for_data="") |
This reads the first 3d image in an Interfile header file, given as a stream. More... | |
VoxelsOnCartesianGrid< float > * | stir::read_interfile_image (const std::string &filename) |
This reads the first 3d image in an Interfile header file, given as a filename. More... | |
DynamicDiscretisedDensity * | stir::read_interfile_dynamic_image (std::istream &input, const std::string &directory_for_data) |
Read dynamic image. | |
DynamicDiscretisedDensity * | stir::read_interfile_dynamic_image (const std::string &filename) |
Read dynamic image. | |
ParametricDiscretisedDensity< VoxelsOnCartesianGrid< KineticParameters< 2, float > > > * | stir::read_interfile_parametric_image (std::istream &input, const std::string &directory_for_data) |
Read parametric image. | |
ParametricDiscretisedDensity< VoxelsOnCartesianGrid< KineticParameters< 2, float > > > * | stir::read_interfile_parametric_image (const std::string &filename) |
Read parametric image. | |
Succeeded | stir::write_basic_interfile_image_header (const std::string &header_file_name, const std::string &image_file_name, const ExamInfo &exam_info, const IndexRange< 3 > &index_range, const CartesianCoordinate3D< float > &voxel_size, const CartesianCoordinate3D< float > &origin, const NumericType output_type, const ByteOrder byte_order, const VectorWithOffset< float > &scaling_factors, const VectorWithOffset< unsigned long > &file_offsets, const std::vector< std::string > &data_type_descriptions=std::vector< std::string >()) |
This outputs an Interfile header for an image. More... | |
const VectorWithOffset< unsigned long > | stir::compute_file_offsets (int number_of_time_frames, const NumericType output_type, const Coordinate3D< int > &dim, unsigned long initial_offset=0) |
a utility function that computes the file offsets of subsequent images | |
template<class elemT > | |
Succeeded | stir::write_basic_interfile (const std::string &filename, const Array< 3, elemT > &image, const CartesianCoordinate3D< float > &voxel_size, const CartesianCoordinate3D< float > &origin, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
This outputs an Interfile header and data for a Array<3,elemT> object. More... | |
template<class elemT > | |
Succeeded | stir::write_basic_interfile (const std::string &filename, const ExamInfo &exam_info, const Array< 3, elemT > &image, const CartesianCoordinate3D< float > &voxel_size, const CartesianCoordinate3D< float > &origin, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
This outputs an Interfile header and data for a Array<3,elemT> object. More... | |
template<class elemT > | |
Succeeded | stir::write_basic_interfile (const std::string &filename, const Array< 3, elemT > &image, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
This outputs an Interfile header and data for a Array<3,elemT> object, assuming unit voxel sizes. More... | |
Succeeded | stir::write_basic_interfile (const std::string &filename, const VoxelsOnCartesianGrid< float > &image, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
This outputs an Interfile header and data for a VoxelsOnCartesianGrid<float> object. More... | |
Succeeded | stir::write_basic_interfile (const std::string &filename, const DiscretisedDensity< 3, float > &image, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
This outputs an Interfile header and data for a DiscretisedDensity<3,float> object. More... | |
Succeeded | stir::write_basic_interfile (const std::string &filename, const ParametricDiscretisedDensity< VoxelsOnCartesianGrid< KineticParameters< 2, float >>> &image, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
Succeeded | stir::write_basic_interfile (const std::string &filename, const DynamicDiscretisedDensity &image, const NumericType output_type=NumericType::FLOAT, const float scale=0, const ByteOrder byte_order=ByteOrder::native) |
ProjDataFromStream * | stir::read_interfile_PDFS (std::istream &input, const std::string &directory_for_data="", const std::ios::openmode openmode=std::ios::in) |
This reads the first 3D sinogram from an Interfile header, given as a stream. More... | |
ProjDataFromStream * | stir::read_interfile_PDFS (const std::string &filename, const std::ios::openmode open_mode) |
This reads the first 3D sinogram from an Interfile header, given as a filename. More... | |
Succeeded | stir::write_basic_interfile_PDFS_header (const std::string &header_filename, const std::string &data_filename, const ProjDataFromStream &pdfs) |
This writes an Interfile header appropriate for the ProjDataFromStream object. More... | |
Succeeded | stir::write_basic_interfile_PDFS_header (const std::string &data_filename, const ProjDataFromStream &pdfs) |
This function writes an Interfile header for the pdfs object. More... | |
Declarations of functions which read/write Interfile data.