STIR 6.4.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
27START_NAMESPACE_STIR
28
34{
35 typedef SegmentIndices base_type;
36
37public:
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
60private:
61 int _axial_pos;
62};
63
64END_NAMESPACE_STIR
65
67
68#endif
Declaration of class stir::Bin.
Definition of class stir::SegmentIndices.
inline implementations for class stir::SinogramIndices
A class for storing coordinates and value of a single projection bin.
Definition Bin.h:49
int segment_num() const
get segment number for const objects
Definition SegmentIndices.inl:32
SegmentIndices(const int segment_num=0, const int timing_pos_num=0)
constructor segment number as arguments
Definition SegmentIndices.inl:26
int timing_pos_num() const
get TOF index for const objects
Definition SegmentIndices.inl:44
int axial_pos_num() const
get view number for const objects
Definition SinogramIndices.inl:41
bool operator==(const SinogramIndices &other) const
test for equality
Definition SinogramIndices.inl:59
bool operator<(const SinogramIndices &other) const
comparison operator, only useful for sorting
Definition SinogramIndices.inl:53
SinogramIndices()
an empty constructor (sets everything to 0)
Definition SinogramIndices.inl:25