30 #ifndef itkAnalyzeImageIO_h
31 #define itkAnalyzeImageIO_h
32 #if !defined( ITK_LEGACY_REMOVE )
94 class AnalyzeImageIO:
public ImageIOBase
98 typedef AnalyzeImageIO Self;
99 typedef ImageIOBase Superclass;
106 itkTypeMacro(AnalyzeImageIO, Superclass);
116 virtual bool CanReadFile(
const char *FileNameToRead) ITK_OVERRIDE;
119 virtual void ReadImageInformation() ITK_OVERRIDE;
122 virtual
void Read(
void *buffer) ITK_OVERRIDE;
132 virtual
bool CanWriteFile(const
char *FileNameToWrite) ITK_OVERRIDE;
135 virtual
void WriteImageInformation() ITK_OVERRIDE;
139 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
142 virtual std::vector<
double > GetDirection(
unsigned int i) const ITK_OVERRIDE;
146 virtual std::vector<
double > GetDefaultDirection(
unsigned int i) const ITK_OVERRIDE;
151 virtual
void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
187 } ValidAnalyzeOrientationFlags;
189 ITK_DISALLOW_COPY_AND_ASSIGN(AnalyzeImageIO);
191 void SwapBytesIfNecessary(
void *buffer,
SizeType numberOfPixels);
199 void SwapHeaderBytesIfNecessary(
struct dsr *
const imageheader);
206 void DefineHeaderObjectDataType();
208 #if defined( REORIENT_IMAGES )
209 void ReorientIfNecessary(
char *p);
211 struct ipl_dimensions {
212 unsigned int slicestride;
213 unsigned int rowstride;
214 unsigned int componentstride; x
215 unsigned int pixelsize;
229 void GetAllDimensions(ipl_dimensions & dim);
231 ipl_dimensions m_OldDim, m_NewDim;
245 extern const char *
const ANALYZE_ScanNumber;
246 extern const char *
const ANALYZE_O_MAX;
247 extern const char *
const ANALYZE_O_MIN;
248 extern const char *
const ANALYZE_S_MAX;
249 extern const char *
const ANALYZE_S_MIN;
250 extern const char *
const ANALYZE_CAL_MAX;
251 extern const char *
const ANALYZE_CAL_MIN;
252 extern const char *
const ANALYZE_GLMAX;
253 extern const char *
const ANALYZE_GLMIN;
254 extern const char *
const ANALYZE_AUX_FILE_NAME;
255 extern const char *
const ANALYZE_CALIBRATIONUNITS;
258 #endif //#if !defined( ITK_LEGACY_REMOVE )
259 #endif // itkAnalyzeImageIO_h
ImageBaseType::SizeType SizeType