RTK
2.4.1
Reconstruction Toolkit
RTK
include
rtkPhaseReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright RTK Consortium
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* https://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
#ifndef rtkPhaseReader_h
19
#define rtkPhaseReader_h
20
21
#include "RTKExport.h"
22
#include <
itkCSVFileReaderBase.h
>
23
24
namespace
rtk
25
{
26
35
class
RTK_EXPORT
PhaseReader
:
public
itk::CSVFileReaderBase
36
{
37
public
:
38
ITK_DISALLOW_COPY_AND_MOVE(
PhaseReader
);
39
41
using
Self
=
PhaseReader
;
42
using
Superclass
=
CSVFileReaderBase
;
43
using
Pointer
=
itk::SmartPointer<Self>
;
44
using
ConstPointer
=
itk::SmartPointer<const Self>
;
45
47
itkNewMacro(
Self
);
48
50
itkTypeMacro(
PhaseReader
,
itk::CSVFileReaderBase
);
51
53
using
ValueType
= float;
54
57
void
58
Parse()
override
;
59
62
virtual
void
63
Update();
64
67
virtual
std::vector<float>
68
GetOutput();
69
70
protected
:
71
PhaseReader
();
72
~
PhaseReader
()
override
=
default
;
73
75
void
76
PrintSelf(std::ostream & os,
itk::Indent
indent)
const override
;
77
78
private
:
79
std::vector<float>
m_Phases
;
80
};
81
82
}
// end namespace rtk
83
84
#endif
rtk
Definition:
rtkMatlabSparseMatrix.h:24
rtk::PhaseReader::m_Phases
std::vector< float > m_Phases
Definition:
rtkPhaseReader.h:79
rtk::PhaseReader
Parses csv file containing the cardiac or respiratory phases of each projection.
Definition:
rtkPhaseReader.h:35
rtk::PhaseReader::ValueType
float ValueType
Definition:
rtkPhaseReader.h:53
itk::LightProcessObject
itk::Indent
itk::CSVFileReaderBase
itk::SmartPointer< Self >
itkCSVFileReaderBase.h
Generated on Wed Dec 6 2023 05:24:30 for RTK by
1.8.14