ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkIOCommon.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 *=========================================================================*/
18#ifndef itkIOCommon_h
19#define itkIOCommon_h
20#include "ITKIOImageBaseExport.h"
21
22
23#include "itkIntTypes.h"
24#include "itkProcessObject.h"
26
27namespace itk
28{
34{
35public:
40 enum class AtomicPixel : uint8_t
41 {
42 ITK_UCHAR, // aka uint8_t
44 ITK_USHORT, // aka uint16_t
46 ITK_UINT, // aka uint32_t
48 ITK_ULONG, // aka uint64_t
52 };
53};
54// Define how to print enumeration
55extern ITKIOImageBase_EXPORT std::ostream &
56 operator<<(std::ostream & out, const IOCommonEnums::AtomicPixel value);
66class ITKIOImageBase_EXPORT IOCommon
67{
68public:
74
76#if !defined(ITK_LEGACY_REMOVE)
78 static constexpr AtomicPixelEnum ITK_UCHAR = AtomicPixelEnum::ITK_UCHAR;
79 static constexpr AtomicPixelEnum ITK_CHAR = AtomicPixelEnum::ITK_CHAR;
80 static constexpr AtomicPixelEnum ITK_USHORT = AtomicPixelEnum::ITK_USHORT;
81 static constexpr AtomicPixelEnum ITK_SHORT = AtomicPixelEnum::ITK_SHORT;
82 static constexpr AtomicPixelEnum ITK_UINT = AtomicPixelEnum::ITK_UINT;
83 static constexpr AtomicPixelEnum ITK_INT = AtomicPixelEnum::ITK_INT;
84 static constexpr AtomicPixelEnum ITK_ULONG = AtomicPixelEnum::ITK_ULONG;
85 static constexpr AtomicPixelEnum ITK_LONG = AtomicPixelEnum::ITK_LONG;
86 static constexpr AtomicPixelEnum ITK_FLOAT = AtomicPixelEnum::ITK_FLOAT;
87 static constexpr AtomicPixelEnum ITK_DOUBLE = AtomicPixelEnum::ITK_DOUBLE;
88#endif
89
90
92 static std::string
94
96 static unsigned int
98};
99
100extern const ITKIOImageBase_EXPORT char * const ITK_OnDiskStorageTypeName;
101extern const ITKIOImageBase_EXPORT char * const ITK_ImageFileBaseName;
102extern const ITKIOImageBase_EXPORT char * const ITK_VoxelUnits;
103extern const ITKIOImageBase_EXPORT char * const ITK_OnDiskBitPerPixel;
104extern const ITKIOImageBase_EXPORT char * const SPM_ROI_SCALE;
105extern const ITKIOImageBase_EXPORT char * const ITK_FileNotes;
106extern const ITKIOImageBase_EXPORT char * const ITK_Origin;
107extern const ITKIOImageBase_EXPORT char * const ITK_Spacing;
108extern const ITKIOImageBase_EXPORT char * const ITK_ZDirection;
109extern const ITKIOImageBase_EXPORT char * const ITK_FileOriginator;
110extern const ITKIOImageBase_EXPORT char * const ITK_OriginationDate;
111extern const ITKIOImageBase_EXPORT char * const ITK_PatientID;
112extern const ITKIOImageBase_EXPORT char * const ITK_ExperimentDate;
113extern const ITKIOImageBase_EXPORT char * const ITK_ExperimentTime;
114extern const ITKIOImageBase_EXPORT char * const ITK_InputFilterName;
115extern const ITKIOImageBase_EXPORT char * const ITK_NumberOfDimensions;
116extern const ITKIOImageBase_EXPORT char * const ITK_ImageType;
117extern const ITKIOImageBase_EXPORT char * const ITK_PatientName;
118extern const ITKIOImageBase_EXPORT char * const ITK_ScanID;
119extern const ITKIOImageBase_EXPORT char * const ROI_NAME;
120extern const ITKIOImageBase_EXPORT char * const ROI_X_SIZE;
121extern const ITKIOImageBase_EXPORT char * const ROI_X_RESOLUTION;
122extern const ITKIOImageBase_EXPORT char * const ROI_Y_SIZE;
123extern const ITKIOImageBase_EXPORT char * const ROI_Y_RESOLUTION;
124extern const ITKIOImageBase_EXPORT char * const ROI_Z_SIZE;
125extern const ITKIOImageBase_EXPORT char * const ROI_Z_RESOLUTION;
126extern const ITKIOImageBase_EXPORT char * const ROI_NUM_SEGMENTS;
127extern const ITKIOImageBase_EXPORT char * const ROI_PLANE;
128extern const ITKIOImageBase_EXPORT char * const ROI_SCAN_ID;
129} // end namespace itk
130
131#endif // itkIOCommon_h
Contains all enum classes used by IOCommon class.
Definition itkIOCommon.h:34
Centralized functionality for IO classes.
Definition itkIOCommon.h:67
IOCommonEnums::AtomicPixel AtomicPixelEnum
Definition itkIOCommon.h:75
static std::string AtomicPixelTypeToString(const AtomicPixelEnum pixelType)
static unsigned int ComputeSizeOfAtomicPixelType(const AtomicPixelEnum pixelType)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
const ITKIOImageBase_EXPORT char *const ITK_ZDirection
const ITKIOImageBase_EXPORT char *const ROI_PLANE
const ITKIOImageBase_EXPORT char *const ITK_OnDiskBitPerPixel
const ITKIOImageBase_EXPORT char *const ROI_Z_RESOLUTION
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)
const ITKIOImageBase_EXPORT char *const ITK_InputFilterName
const ITKIOImageBase_EXPORT char *const ITK_OnDiskStorageTypeName
const ITKIOImageBase_EXPORT char *const ITK_PatientName
const ITKIOImageBase_EXPORT char *const ITK_ImageFileBaseName
const ITKIOImageBase_EXPORT char *const ITK_ExperimentTime
const ITKIOImageBase_EXPORT char *const SPM_ROI_SCALE
const ITKIOImageBase_EXPORT char *const ITK_Spacing
const ITKIOImageBase_EXPORT char *const ITK_NumberOfDimensions
const ITKIOImageBase_EXPORT char *const ITK_ImageType
const ITKIOImageBase_EXPORT char *const ITK_Origin
const ITKIOImageBase_EXPORT char *const ITK_FileOriginator
const ITKIOImageBase_EXPORT char *const ROI_Z_SIZE
const ITKIOImageBase_EXPORT char *const ROI_Y_RESOLUTION
const ITKIOImageBase_EXPORT char *const ROI_NAME
const ITKIOImageBase_EXPORT char *const ITK_PatientID
const ITKIOImageBase_EXPORT char *const ROI_X_RESOLUTION
const ITKIOImageBase_EXPORT char *const ROI_SCAN_ID
const ITKIOImageBase_EXPORT char *const ITK_ExperimentDate
const ITKIOImageBase_EXPORT char *const ITK_VoxelUnits
const ITKIOImageBase_EXPORT char *const ITK_FileNotes
const ITKIOImageBase_EXPORT char *const ITK_ScanID
const ITKIOImageBase_EXPORT char *const ROI_NUM_SEGMENTS
const ITKIOImageBase_EXPORT char *const ROI_X_SIZE
const ITKIOImageBase_EXPORT char *const ITK_OriginationDate
const ITKIOImageBase_EXPORT char *const ROI_Y_SIZE