STIR 6.4.0
Viewgram.inl
Go to the documentation of this file.
1//
2//
12/*
13 Copyright (C) 2023, University College London
14 This file is part of STIR.
15
16 SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
17
18 See STIR/LICENSE.txt for details
19*/
20
21START_NAMESPACE_STIR
22
23template <typename elemT>
24ViewgramIndices
26{
27 return this->_indices;
28}
29
30template <typename elemT>
31int
33{
34 return this->_indices.segment_num();
35}
36
37template <typename elemT>
38int
40{
41 return this->_indices.view_num();
42}
43
44template <typename elemT>
45int
47{
48 return this->_indices.timing_pos_num();
49}
50
51template <typename elemT>
52int
54{
55 return this->get_min_index();
56}
57
58template <typename elemT>
59int
61{
62 return this->get_max_index();
63}
64
65template <typename elemT>
66int
68{
69 return this->get_length();
70}
71
72END_NAMESPACE_STIR
int get_max_index() const
get value of last valid index
Definition VectorWithOffset.inl:131
int get_min_index() const
get value of first valid index
Definition VectorWithOffset.inl:124
int get_length() const
return number of elements in this vector
Definition VectorWithOffset.inl:538
int get_min_axial_pos_num() const
Get minimum number of axial positions.
Definition Viewgram.inl:53
ViewgramIndices get_viewgram_indices() const
Get indices.
Definition Viewgram.inl:25
int get_segment_num() const
Get segment number.
Definition Viewgram.inl:32
int get_timing_pos_num() const
Get timing position index.
Definition Viewgram.inl:46
int get_num_axial_poss() const
Get number of axial positions.
Definition Viewgram.inl:67
int get_view_num() const
Get number of views.
Definition Viewgram.inl:39
int get_max_axial_pos_num() const
Get maximum number of axial positions.
Definition Viewgram.inl:60