STIR
6.2.0
home
sirfuser
devel
STIRdistrib
STIR
src
include
stir
recon_buildblock
ProjMatrixElemsForOneDenselValue.h
Go to the documentation of this file.
1
//
2
//
12
/*
13
Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
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_recon_buildblock_ProjMatrixElemsForOneDenselValue_H__
22
#define __stir_recon_buildblock_ProjMatrixElemsForOneDenselValue_H__
23
24
#include "
stir/Bin.h
"
25
26
START_NAMESPACE_STIR
27
41
class
ProjMatrixElemsForOneDenselValue
:
public
Bin
42
{
43
public
:
44
explicit
inline
ProjMatrixElemsForOneDenselValue
(
const
Bin
&);
45
46
inline
ProjMatrixElemsForOneDenselValue
();
47
49
inline
ProjMatrixElemsForOneDenselValue
& operator+=(
const
ProjMatrixElemsForOneDenselValue
& el2);
51
inline
ProjMatrixElemsForOneDenselValue
& operator*=(
const
float
d);
53
inline
ProjMatrixElemsForOneDenselValue
& operator+=(
const
float
d);
55
inline
ProjMatrixElemsForOneDenselValue
& operator/=(
const
float
d);
56
57
// TODO
58
inline
float
get_value()
const
{
return
get_bin_value(); }
59
inline
void
set_value(
const
float
v) { set_bin_value(v); }
60
62
64
67
static
inline
bool
coordinates_equal(
const
ProjMatrixElemsForOneDenselValue
& el1,
const
ProjMatrixElemsForOneDenselValue
& el2);
68
70
static
inline
bool
coordinates_less(
const
ProjMatrixElemsForOneDenselValue
& el1,
const
ProjMatrixElemsForOneDenselValue
& el2);
71
73
friend
inline
bool
operator==(
const
ProjMatrixElemsForOneDenselValue
& el1,
const
ProjMatrixElemsForOneDenselValue
& el2);
74
76
friend
inline
bool
operator<(
const
ProjMatrixElemsForOneDenselValue
& el1,
const
ProjMatrixElemsForOneDenselValue
& el2);
77
};
78
79
END_NAMESPACE_STIR
80
81
#include "
stir/recon_buildblock/ProjMatrixElemsForOneDenselValue.inl
"
82
83
#endif // __ProjMatrixElemsForOneDenselValue_H__
stir::ProjMatrixElemsForOneDenselValue
Stores voxel coordinates and the value of the matrix element.
Definition:
ProjMatrixElemsForOneDenselValue.h:41
stir::Bin
A class for storing coordinates and value of a single projection bin.
Definition:
Bin.h:48
Bin.h
Declaration of class stir::Bin.
ProjMatrixElemsForOneDenselValue.inl
Inline implementations for class stir::ProjMatrixElemsForOneDenselValue.
Generated on Tue Jul 23 2024 09:13:11 for STIR by
1.8.13