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 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();
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