ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkIOCommon.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkIOCommon_h
00019 #define __itkIOCommon_h
00020 
00021 
00022 #include "itkIntTypes.h"
00023 #include "itkProcessObject.h"
00024 #include "itkSpatialOrientation.h"
00025 
00026 namespace itk
00027 {
00037 class ITK_EXPORT IOCommon
00038 {
00039 public:
00040   typedef enum {
00042     MAX_FILENAMELIST_SIZE = 512
00043     } SysConstants;
00044   typedef enum {
00045     ITK_UCHAR,         // aka uint8_t
00046     ITK_CHAR,
00047     ITK_USHORT,        // aka uint16_t
00048     ITK_SHORT,
00049     ITK_UINT,          // aka uint32_t
00050     ITK_INT,
00051     ITK_ULONG,         // aka uint64_t
00052     ITK_LONG,
00053     ITK_FLOAT,
00054     ITK_DOUBLE
00055     } AtomicPixelType;   // enumerated constants for the different data types
00056 
00058   static std::string AtomicPixelTypeToString(const AtomicPixelType pixelType);
00059 
00061   static unsigned int ComputeSizeOfAtomicPixelType(const AtomicPixelType pixelType);
00062 };
00063 
00064 extern ITK_EXPORT const char *const ITK_OnDiskStorageTypeName;
00065 extern ITK_EXPORT const char *const ITK_ImageFileBaseName;
00066 extern ITK_EXPORT const char *const ITK_VoxelUnits;
00067 extern ITK_EXPORT const char *const ITK_OnDiskBitPerPixel;
00068 extern ITK_EXPORT const char *const SPM_ROI_SCALE;
00069 extern ITK_EXPORT const char *const ITK_FileNotes;
00070 extern ITK_EXPORT const char *const ITK_Origin;
00071 extern ITK_EXPORT const char *const ITK_Spacing;
00072 extern ITK_EXPORT const char *const ITK_FileOriginator;
00073 extern ITK_EXPORT const char *const ITK_OriginationDate;
00074 extern ITK_EXPORT const char *const ITK_PatientID;
00075 extern ITK_EXPORT const char *const ITK_ExperimentDate;
00076 extern ITK_EXPORT const char *const ITK_ExperimentTime;
00077 extern ITK_EXPORT const char *const ITK_InputFilterName;
00078 extern ITK_EXPORT const char *const ITK_NumberOfDimensions;
00079 extern ITK_EXPORT const char *const ITK_ImageType;
00080 extern ITK_EXPORT const char *const ITK_PatientName;
00081 extern ITK_EXPORT const char *const ITK_ScanID;
00082 extern ITK_EXPORT const char *const ROI_NAME;
00083 extern ITK_EXPORT const char *const ROI_X_SIZE;
00084 extern ITK_EXPORT const char *const ROI_X_RESOLUTION;
00085 extern ITK_EXPORT const char *const ROI_Y_SIZE;
00086 extern ITK_EXPORT const char *const ROI_Y_RESOLUTION;
00087 extern ITK_EXPORT const char *const ROI_Z_SIZE;
00088 extern ITK_EXPORT const char *const ROI_Z_RESOLUTION;
00089 extern ITK_EXPORT const char *const ROI_NUM_SEGMENTS;
00090 extern ITK_EXPORT const char *const ROI_PLANE;
00091 extern ITK_EXPORT const char *const ROI_SCAN_ID;
00092 } // end namespace itk
00093 
00094 #endif // __itkIOCommon_h
00095