19#ifndef itkNiftiImageIO_h
20#define itkNiftiImageIO_h
21#include "ITKIONIFTIExport.h"
55 AnalyzeITK4Warning = 1,
82#if !defined(ITK_LEGACY_REMOVE)
87extern ITKIONIFTI_EXPORT std::ostream &
89extern ITKIONIFTI_EXPORT std::ostream &
124#if !defined(ITK_LEGACY_REMOVE)
182 Write(
const void * buffer)
override;
190 itkSetMacro(RescaleSlope,
double);
191 itkSetMacro(RescaleIntercept,
double);
210 itkSetMacro(ConvertRASVectors,
bool);
211 itkGetConstMacro(ConvertRASVectors,
bool);
212 itkBooleanMacro(ConvertRASVectors);
230 itkSetMacro(ConvertRASDisplacementVectors,
bool);
231 itkGetConstMacro(ConvertRASDisplacementVectors,
bool);
232 itkBooleanMacro(ConvertRASDisplacementVectors);
236 itkSetMacro(SFORM_Permissive,
bool);
237 itkGetConstMacro(SFORM_Permissive,
bool);
238 itkBooleanMacro(SFORM_Permissive);
280 class NiftiImageProxy;
288 double m_RescaleSlope{ 1.0 };
289 double m_RescaleIntercept{ 0.0 };
291 bool m_ConvertRAS{
false };
292 bool m_ConvertRASVectors{
false };
293 bool m_ConvertRASDisplacementVectors{
true };
300 bool m_SFORM_Corrected{
false };
Abstract superclass defines image IO interface.
An ImageIORegion represents a structured region of data.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Class that defines how to read Nifti file format. Nifti IMAGE FILE FORMAT - As much information as I ...
ImageIORegion GenerateStreamableReadRegionFromRequestedRegion(const ImageIORegion &requestedRegion) const override
void SetImageIOOrientationFromNIfTI(unsigned short dims, double spacingscale, double timingscale)
void ReadImageInformation() override
NiftiImageProxy & m_NiftiImage
void SetImageIOMetadataFromNIfTI()
const std::unique_ptr< NiftiImageProxy > m_NiftiImageHolder
void PrintSelf(std::ostream &os, Indent indent) const override
void SetNIfTIOrientationFromImageIO(unsigned short origdims, unsigned short dims)
unsigned int getQFormCodeFromDictionary() const
virtual bool GetUseLegacyModeForTwoFileWriting() const
bool CanWriteFile(const char *FileNameToWrite) override
void WriteImageInformation() override
NiftiImageIOEnums::NiftiFileEnum DetermineFileType(const char *FileNameToRead)
void Read(void *buffer) override
void Write(const void *buffer) override
unsigned int getSFormCodeFromDictionary() const
void DefineHeaderObjectDataType()
bool CanReadFile(const char *FileNameToRead) override
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)