45template <
typename elemT>
49 typedef Array<2, elemT> base_type;
50#ifdef STIR_COMPILING_SWIG_WRAPPER
61 Sinogram(
const Array<2, elemT>& p,
const shared_ptr<const ProjDataInfo>& proj_data_info_sptr,
const SinogramIndices&);
67 Sinogram(
const shared_ptr<const ProjDataInfo>& proj_data_info_ptr,
69 const int segment_num,
70 const int timing_pos_num = 0);
77 const shared_ptr<const ProjDataInfo>& proj_data_info_ptr,
79 const int segment_num,
80 const int timing_pos_num = 0);
defines the stir::Array class for multi-dimensional (numeric) arrays
declaration of stir::DataWithProjDataInfo
Definition of class stir::SinogramIndices.
Implementations of inline functions of class stir::Sinogram.
DataWithProjDataInfo()
Default constructor sets internal member to 0.
Definition DataWithProjDataInfo.cxx:20
This class defines ranges which can be 'irregular'.
Definition IndexRange.h:69
A very simple class to store all dincies to get a (2D) Sinogram.
Definition SinogramIndices.h:34
SinogramIndices get_sinogram_indices() const
Get indices.
Definition Sinogram.inl:27
bool operator==(const self_type &) const
check equality (data has to be identical)
Definition Sinogram.cxx:133
int get_timing_pos_num() const
Get timing position index.
Definition Sinogram.inl:48
int get_segment_num() const
Get segment number.
Definition Sinogram.inl:34
int get_axial_pos_num() const
Get number of axial positions.
Definition Sinogram.inl:41
bool has_same_characteristics(self_type const &, std::string &explanation) const
Checks if the 2 objects have the proj_data_info, segment_num etc.
Definition Sinogram.cxx:96
Sinogram get_empty_copy(void) const
Get an empty sinogram of the same dimensions, segment_num etc.
Definition Sinogram.cxx:43
void resize(const IndexRange< 2 > &range) override
Overloading Array::resize.
Definition Sinogram.cxx:151
bool operator!=(const self_type &) const
negation of operator==
Definition Sinogram.cxx:140
Sinogram(const shared_ptr< const ProjDataInfo > &proj_data_info_sptr, const SinogramIndices &)
Construct sinogram from proj_data_info pointe and indices. Data are set to 0.
Definition Sinogram.cxx:71
void grow(const IndexRange< 2 > &range) override
Overloading Array::grow.
Definition Sinogram.cxx:178
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...