ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkIOCommon.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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  * http://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"
25 #include "itkSpatialOrientation.h"
26 
27 namespace itk
28 {
38 class ITKIOImageBase_EXPORT IOCommon
39 {
40 public:
41  typedef enum {
43  MAX_FILENAMELIST_SIZE = 512
44  } SysConstants;
45  typedef enum {
46  ITK_UCHAR, // aka uint8_t
48  ITK_USHORT, // aka uint16_t
50  ITK_UINT, // aka uint32_t
52  ITK_ULONG, // aka uint64_t
55  ITK_DOUBLE
56  } AtomicPixelType; // enumerated constants for the different data types
57 
59  static std::string AtomicPixelTypeToString(const AtomicPixelType pixelType);
60 
62  static unsigned int ComputeSizeOfAtomicPixelType(const AtomicPixelType pixelType);
63 };
64 
65 extern ITKIOImageBase_EXPORT const char *const ITK_OnDiskStorageTypeName;
66 extern ITKIOImageBase_EXPORT const char *const ITK_ImageFileBaseName;
67 extern ITKIOImageBase_EXPORT const char *const ITK_VoxelUnits;
68 extern ITKIOImageBase_EXPORT const char *const ITK_OnDiskBitPerPixel;
69 extern ITKIOImageBase_EXPORT const char *const SPM_ROI_SCALE;
70 extern ITKIOImageBase_EXPORT const char *const ITK_FileNotes;
71 extern ITKIOImageBase_EXPORT const char *const ITK_Origin;
72 extern ITKIOImageBase_EXPORT const char *const ITK_Spacing;
73 extern ITKIOImageBase_EXPORT const char *const ITK_ZDirection;
74 extern ITKIOImageBase_EXPORT const char *const ITK_FileOriginator;
75 extern ITKIOImageBase_EXPORT const char *const ITK_OriginationDate;
76 extern ITKIOImageBase_EXPORT const char *const ITK_PatientID;
77 extern ITKIOImageBase_EXPORT const char *const ITK_ExperimentDate;
78 extern ITKIOImageBase_EXPORT const char *const ITK_ExperimentTime;
79 extern ITKIOImageBase_EXPORT const char *const ITK_InputFilterName;
80 extern ITKIOImageBase_EXPORT const char *const ITK_NumberOfDimensions;
81 extern ITKIOImageBase_EXPORT const char *const ITK_ImageType;
82 extern ITKIOImageBase_EXPORT const char *const ITK_PatientName;
83 extern ITKIOImageBase_EXPORT const char *const ITK_ScanID;
84 extern ITKIOImageBase_EXPORT const char *const ROI_NAME;
85 extern ITKIOImageBase_EXPORT const char *const ROI_X_SIZE;
86 extern ITKIOImageBase_EXPORT const char *const ROI_X_RESOLUTION;
87 extern ITKIOImageBase_EXPORT const char *const ROI_Y_SIZE;
88 extern ITKIOImageBase_EXPORT const char *const ROI_Y_RESOLUTION;
89 extern ITKIOImageBase_EXPORT const char *const ROI_Z_SIZE;
90 extern ITKIOImageBase_EXPORT const char *const ROI_Z_RESOLUTION;
91 extern ITKIOImageBase_EXPORT const char *const ROI_NUM_SEGMENTS;
92 extern ITKIOImageBase_EXPORT const char *const ROI_PLANE;
93 extern ITKIOImageBase_EXPORT const char *const ROI_SCAN_ID;
94 } // end namespace itk
95 
96 #endif // itkIOCommon_h
ITKIOImageBase_EXPORT const char *const ROI_SCAN_ID
ITKIOImageBase_EXPORT const char *const ROI_NUM_SEGMENTS
ITKIOImageBase_EXPORT const char *const ITK_Spacing
ITKIOImageBase_EXPORT const char *const ITK_Origin
ITKIOImageBase_EXPORT const char *const ITK_ExperimentTime
ITKIOImageBase_EXPORT const char *const ROI_X_RESOLUTION
ITKIOImageBase_EXPORT const char *const ITK_FileNotes
ITKIOImageBase_EXPORT const char *const ITK_PatientName
Centralized funtionality for IO classes.
Definition: itkIOCommon.h:38
ITKIOImageBase_EXPORT const char *const ROI_X_SIZE
ITKIOImageBase_EXPORT const char *const ITK_InputFilterName
ITKIOImageBase_EXPORT const char *const SPM_ROI_SCALE
ITKIOImageBase_EXPORT const char *const ITK_FileOriginator
ITKIOImageBase_EXPORT const char *const ROI_NAME
ITKIOImageBase_EXPORT const char *const ITK_OnDiskBitPerPixel
ITKIOImageBase_EXPORT const char *const ITK_ScanID
ITKIOImageBase_EXPORT const char *const ITK_ZDirection
ITKIOImageBase_EXPORT const char *const ROI_Z_RESOLUTION
ITKIOImageBase_EXPORT const char *const ITK_ImageType
ITKIOImageBase_EXPORT const char *const ROI_PLANE
ITKIOImageBase_EXPORT const char *const ITK_PatientID
ITKIOImageBase_EXPORT const char *const ITK_OriginationDate
ITKIOImageBase_EXPORT const char *const ITK_ImageFileBaseName
ITKIOImageBase_EXPORT const char *const ITK_VoxelUnits
ITKIOImageBase_EXPORT const char *const ITK_OnDiskStorageTypeName
ITKIOImageBase_EXPORT const char *const ROI_Y_SIZE
ITKIOImageBase_EXPORT const char *const ITK_NumberOfDimensions
ITKIOImageBase_EXPORT const char *const ROI_Z_SIZE
ITKIOImageBase_EXPORT const char *const ROI_Y_RESOLUTION
ITKIOImageBase_EXPORT const char *const ITK_ExperimentDate