ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPhilipsRECImageIO.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 *=========================================================================*/
33
34#ifndef itkPhilipsRECImageIO_h
35#define itkPhilipsRECImageIO_h
36#include "ITKIOPhilipsRECExport.h"
37
38
39#include "itkImageIOBase.h"
40#include "itkVectorContainer.h"
41#include "vnl/vnl_vector_fixed.h"
42
43namespace itk
44{
53
54class ITKIOPhilipsREC_EXPORT PhilipsRECImageIO : public ImageIOBase
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(PhilipsRECImageIO);
58
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(PhilipsRECImageIO);
69
74 using ScanResolutionType = vnl_vector_fixed<int, 2>;
75 using FOVType = vnl_vector_fixed<float, 3>;
76 using AngulationMidSliceType = vnl_vector_fixed<double, 3>;
77 using OffCentreMidSliceType = vnl_vector_fixed<double, 3>;
78 using PhaseEncodingVelocityType = vnl_vector_fixed<float, 3>;
85 using ImageTypesType = vnl_vector_fixed<int, 8>;
86 using ScanningSequencesType = vnl_vector_fixed<int, 8>;
88 using SliceIndexType = std::vector<IndexValueType>;
89 using ImageTypeRescaleValuesType = vnl_vector_fixed<double, 3>;
90
95 using GradientBvalueType = double;
97 using GradientDirectionType = vnl_vector_fixed<double, 3>;
100
101 /*-------- This part of the interfaces deals with reading data. ----- */
102
108 bool
109 CanReadFile(const char * FileNameToRead) override;
110
112 void
114
116 void
117 Read(void * buffer) override;
118
119 /*-------- This part of the interfaces deals with writing data. ----- */
120
127 bool
128 CanWriteFile(const char * itkNotUsed(FileNameToWrite)) override
129 {
130 return false;
131 }
132
134 void
136 {
137 return;
138 }
139
142 void
143 Write(const void * itkNotUsed(buffer)) override
144 {
145 return;
146 }
147
148protected:
151 void
152 PrintSelf(std::ostream & os, Indent indent) const override;
153
154private:
155 void
156 SwapBytesIfNecessary(void * buffer, SizeValueType numberOfPixels);
157
160
163};
164} // end namespace itk
165
166#endif // itkPhilipsRECImageIO_h
itk::IOByteOrderEnum IOByteOrderEnum
itk::SizeValueType SizeValueType
itk::IndexValueType IndexValueType
Control indentation during Print() invocation.
Definition itkIndent.h:53
bool CanReadFile(const char *FileNameToRead) override
VectorContainer< unsigned int, double > TriggerTimesContainerType
vnl_vector_fixed< int, 2 > ScanResolutionType
VectorContainer< unsigned int, int > LabelTypesASLContainerType
VectorContainer< unsigned int, GradientDirectionType > GradientDirectionContainerType
bool CanWriteFile(const char *FileNameToWrite) override
IndexValueType GetSliceIndex(IndexValueType index) const
Superclass::IndexValueType IndexValueType
ImageTypeRescaleValuesContainerType::Pointer ImageTypeRescaleValuesContainerTypePtr
void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels)
void PrintSelf(std::ostream &os, Indent indent) const override
vnl_vector_fixed< float, 3 > FOVType
VectorContainer< unsigned int, double > RepetitionTimesContainerType
void Write(const void *buffer) override
void ReadImageInformation() override
SmartPointer< Self > Pointer
vnl_vector_fixed< double, 3 > OffCentreMidSliceType
~PhilipsRECImageIO() override
void WriteImageInformation() override
VectorContainer< unsigned int, ImageTypeRescaleValuesContainerTypePtr > ScanningSequenceImageTypeRescaleValuesContainerType
void Read(void *buffer) override
VectorContainer< unsigned int, double > EchoTimesContainerType
vnl_vector_fixed< int, 8 > ImageTypesType
vnl_vector_fixed< double, 3 > ImageTypeRescaleValuesType
VectorContainer< unsigned int, GradientBvalueType > GradientBvalueContainerType
vnl_vector_fixed< double, 3 > AngulationMidSliceType
VectorContainer< unsigned int, ImageTypeRescaleValuesType > ImageTypeRescaleValuesContainerType
vnl_vector_fixed< int, 8 > ScanningSequencesType
std::vector< IndexValueType > SliceIndexType
vnl_vector_fixed< double, 3 > GradientDirectionType
vnl_vector_fixed< float, 3 > PhaseEncodingVelocityType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer