19 #ifndef itkNiftiImageIO_h
20 #define itkNiftiImageIO_h
21 #include "ITKIONIFTIExport.h"
83 FileType DetermineFileType(
const char *FileNameToRead);
91 bool CanReadFile(
const char *FileNameToRead)
override;
94 void ReadImageInformation()
override;
97 void Read(
void *buffer)
override;
106 bool CanWriteFile(
const char *FileNameToWrite)
override;
113 void WriteImageInformation()
override;
117 void Write(
const void *buffer)
override;
122 GenerateStreamableReadRegionFromRequestedRegion(
const ImageIORegion & requestedRegion)
const override;
125 itkSetMacro(RescaleSlope,
double);
126 itkSetMacro(RescaleIntercept,
double);
133 itkSetMacro(LegacyAnalyze75Mode,
bool);
134 itkGetConstMacro(LegacyAnalyze75Mode,
bool);
140 void PrintSelf(std::ostream & os,
Indent indent)
const override;
149 unsigned int getSFormCodeFromDictionary()
const;
150 unsigned int getQFormCodeFromDictionary()
const;
154 void DefineHeaderObjectDataType();
156 void SetNIfTIOrientationFromImageIO(
unsigned short int origdims,
unsigned short int dims);
158 void SetImageIOOrientationFromNIfTI(
unsigned short int dims);
160 void SetImageIOMetadataFromNIfTI();
164 class NiftiImageProxy;
172 double m_RescaleSlope{1.0};
173 double m_RescaleIntercept{0.0};
177 bool m_LegacyAnalyze75Mode{
true};
182 #endif // itkNiftiImageIO_h
Light weight base class for most itk classes.
An ImageIORegion represents a structured region of data.
Abstract superclass defines image IO interface.
Class that defines how to read Nifti file format. Nifti IMAGE FILE FORMAT - As much information as I ...
NiftiImageProxy & m_NiftiImage
virtual bool GetUseLegacyModeForTwoFileWriting() const
Control indentation during Print() invocation.
Base class for most ITK classes.
const std::unique_ptr< NiftiImageProxy > m_NiftiImageHolder