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