19 #ifndef itkNiftiImageIO_h
20 #define itkNiftiImageIO_h
21 #include "ITKIONIFTIExport.h"
81 #if !defined(ITK_LEGACY_REMOVE)
86 extern ITKIONIFTI_EXPORT std::ostream &
88 extern ITKIONIFTI_EXPORT std::ostream &
123 #if !defined(ITK_LEGACY_REMOVE)
141 DetermineFileType(
const char * FileNameToRead);
150 CanReadFile(
const char * FileNameToRead)
override;
154 ReadImageInformation()
override;
158 Read(
void * buffer)
override;
168 CanWriteFile(
const char * FileNameToWrite)
override;
176 WriteImageInformation()
override;
181 Write(
const void * buffer)
override;
186 GenerateStreamableReadRegionFromRequestedRegion(
const ImageIORegion & requestedRegion)
const override;
189 itkSetMacro(RescaleSlope,
double);
190 itkSetMacro(RescaleIntercept,
double);
205 PrintSelf(std::ostream & os,
Indent indent)
const override;
219 getSFormCodeFromDictionary()
const;
221 getQFormCodeFromDictionary()
const;
227 DefineHeaderObjectDataType();
230 SetNIfTIOrientationFromImageIO(
unsigned short int origdims,
unsigned short int dims);
233 SetImageIOOrientationFromNIfTI(
unsigned short int dims);
236 SetImageIOMetadataFromNIfTI();
240 class NiftiImageProxy;
248 double m_RescaleSlope{ 1.0 };
249 double m_RescaleIntercept{ 0.0 };
259 #endif // itkNiftiImageIO_h