STIR 6.4.0
ProjData.inl
Go to the documentation of this file.
1
11/*
12 Copyright (C) 2000 PARAPET partners
13 Copyright (C) 2000-2009, Hammersmith Imanet Ltd
14 Copyright (C) 2013, 2015, 2023 University College London
15 Copyright (C) 2016, University of Hull
16 This file is part of STIR.
17
18 SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
19
20 See STIR/LICENSE.txt for details
21*/
22
23#include "stir/ProjDataInfo.h"
24
25START_NAMESPACE_STIR
26
27SegmentBySinogram<float>
32
38
41{
42 return this->get_viewgram(vi.view_num(), vi.segment_num(), false, vi.timing_pos_num());
43}
44
47{
48 return this->get_sinogram(vi.axial_pos_num(), vi.segment_num(), false, vi.timing_pos_num());
49}
50
51int
53{
54 return proj_data_info_sptr->get_num_non_tof_sinograms();
55}
56
57int
59{
60 return proj_data_info_sptr->get_num_sinograms();
61}
62
63std::size_t
65{
66 return proj_data_info_sptr->size_all();
67}
68
69std::vector<int>
71{
72 return proj_data_info_sptr->get_original_view_nums();
73}
74
75END_NAMESPACE_STIR
Declaration of class stir::ProjDataInfo.
virtual SegmentByView< float > get_segment_by_view(const int segment_num, const int timing_pos=0) const
Get segment by view.
Definition ProjData.cxx:329
std::size_t size_all() const
Get the total size of the data.
Definition ProjData.inl:64
virtual SegmentBySinogram< float > get_segment_by_sinogram(const int segment_num, const int timing_pos=0) const
Get segment by sinogram.
Definition ProjData.cxx:319
std::vector< int > get_original_view_nums() const
forward ProjDataInfo::get_original_view_nums()
Definition ProjData.inl:70
int get_num_non_tof_sinograms() const
Get the number of non-tof sinograms.
Definition ProjData.inl:52
virtual Viewgram< float > get_viewgram(const int view, const int segment_num, const bool make_num_tangential_poss_odd=false, const int timing_pos=0) const =0
Get viewgram.
int get_num_sinograms() const
Get the total number of sinograms.
Definition ProjData.inl:58
virtual Sinogram< float > get_sinogram(const int ax_pos_num, const int segment_num, const bool make_num_tangential_poss_odd=false, const int timing_pos=0) const =0
Get sinogram.
A class for storing (3d) projection data with fixed SegmentIndices.
Definition SegmentByView.h:52
A very simple class to store segment numbers and any other indices that define a segment.
Definition SegmentIndices.h:34
int segment_num() const
get segment number for const objects
Definition SegmentIndices.inl:32
int timing_pos_num() const
get TOF index for const objects
Definition SegmentIndices.inl:44
A very simple class to store all dincies to get a (2D) Sinogram.
Definition SinogramIndices.h:34
int axial_pos_num() const
get view number for const objects
Definition SinogramIndices.inl:41
A class for 2d projection data.
Definition Sinogram.h:47
A very simple class to store all dincies to get a (2D) Viewgram.
Definition ViewgramIndices.h:33
int view_num() const
get view number for const objects
Definition ViewgramIndices.inl:36
A class for 2d projection data.
Definition Viewgram.h:49