STIR  6.2.0
SinogramIndices.h
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
17 
18  See STIR/LICENSE.txt for details
19 */
20 
21 #ifndef __stir_SinogramIndices_h__
22 #define __stir_SinogramIndices_h__
23 
24 #include "stir/SegmentIndices.h"
25 #include "stir/Bin.h"
26 
27 START_NAMESPACE_STIR
28 
34 {
35  typedef SegmentIndices base_type;
36 
37 public:
39  inline SinogramIndices();
41  inline SinogramIndices(const int axial_pos_num, const int segment_num, const int timing_pos_num);
42 
44  inline SinogramIndices(const Bin&);
45 
47  inline int axial_pos_num() const;
48 
50  inline int& axial_pos_num();
51 
53 
54  inline bool operator<(const SinogramIndices& other) const;
55 
57  inline bool operator==(const SinogramIndices& other) const;
58  inline bool operator!=(const SinogramIndices& other) const;
59 
60 private:
61  int _axial_pos;
62 };
63 
64 END_NAMESPACE_STIR
65 
66 #include "stir/SinogramIndices.inl"
67 
68 #endif
A very simple class to store segment numbers and any other indices that define a segment.
Definition: SegmentIndices.h:33
Definition of class stir::SegmentIndices.
A class for storing coordinates and value of a single projection bin.
Definition: Bin.h:48
Declaration of class stir::Bin.
A very simple class to store all dincies to get a (2D) Sinogram.
Definition: SinogramIndices.h:33
inline implementations for class stir::SinogramIndices