28 #ifndef itkGDCMImageIO_h
29 #define itkGDCMImageIO_h
31 #define ITKIO_DEPRECATED_GDCM1_API
34 #include "ITKIOGDCMExport.h"
98 bool CanReadFile(
const char *)
override;
101 void ReadImageInformation()
override;
104 void Read(
void *buffer)
override;
117 bool CanWriteFile(
const char *)
override;
121 void WriteImageInformation()
override;
125 void Write(
const void *buffer)
override;
130 itkGetConstMacro(RescaleSlope,
double);
131 itkGetConstMacro(RescaleIntercept,
double);
138 itkGetStringMacro(UIDPrefix);
139 itkSetStringMacro(UIDPrefix);
143 itkGetStringMacro(StudyInstanceUID);
144 itkGetStringMacro(SeriesInstanceUID);
145 itkGetStringMacro(FrameOfReferenceInstanceUID);
150 itkSetMacro(KeepOriginalUID,
bool);
151 itkGetConstMacro(KeepOriginalUID,
bool);
152 itkBooleanMacro(KeepOriginalUID);
158 itkSetMacro(LoadPrivateTags,
bool);
159 itkGetConstMacro(LoadPrivateTags,
bool);
160 itkBooleanMacro(LoadPrivateTags);
163 #if defined( ITKIO_DEPRECATED_GDCM1_API )
170 void GetPatientName(
char *name);
172 void GetPatientID(
char *
id);
174 void GetPatientSex(
char *sex);
176 void GetPatientAge(
char *age);
178 void GetStudyID(
char *
id);
180 void GetPatientDOB(
char *dob);
182 void GetStudyDescription(
char *desc);
184 void GetBodyPart(
char *part);
186 void GetNumberOfSeriesInStudy(
char *series);
188 void GetNumberOfStudyRelatedSeries(
char *series);
190 void GetStudyDate(
char *date);
192 void GetModality(
char *modality);
194 void GetManufacturer(
char *manu);
196 void GetInstitution(
char *ins);
198 void GetModel(
char *model);
200 void GetScanOptions(
char *options);
206 bool GetValueFromTag(
const std::string & tag, std::string & value);
214 static bool GetLabelFromTag(
const std::string & tag,
215 std::string & labelId);
217 #if defined( ITKIO_DEPRECATED_GDCM1_API )
268 typedef enum { JPEG = 0, JPEG2000, JPEGLS, RLE } TCompressionType;
269 itkSetEnumMacro(CompressionType, TCompressionType);
270 itkGetEnumMacro(CompressionType, TCompressionType);
276 void PrintSelf(std::ostream & os,
Indent indent)
const override;
278 void InternalReadImageInformation();
293 #if defined( ITKIO_DEPRECATED_GDCM1_API )
322 #endif // itkGDCMImageIO_h
std::string m_FrameOfReferenceInstanceUID
virtual void SetLoadSequences(const bool)
Light weight base class for most itk classes.
std::string m_ScanOptions
Abstract superclass defines image IO interface.
static bool GetLoadSequencesDefault()
double m_RescaleIntercept
ImageIO class for reading and writing DICOM V3.0 and ACR/NEMA 1&2 uncompressed images. This class is only an adaptor to the GDCM library.
static void SetLoadSequencesDefault(bool)
std::string m_PatientName
static void LoadPrivateTagsDefaultOn()
unsigned int m_GlobalNumberOfDimensions
virtual void LoadSequencesOff()
std::string m_NumberOfSeriesInStudy
std::string m_StudyDescription
static bool GetLoadPrivateTagsDefault()
virtual void LoadSequencesOn()
ImageIOBase::IOComponentType m_InternalComponentType
std::string m_Manufacturer
static void LoadSequencesDefaultOn()
TCompressionType m_CompressionType
std::string m_StudyInstanceUID
static void LoadSequencesDefaultOff()
std::string m_SeriesInstanceUID
std::string m_NumberOfStudyRelatedSeries
Control indentation during Print() invocation.
std::string m_Institution
InternalHeader * m_DICOMHeader
virtual bool GetLoadSequences() const
Base class for most ITK classes.
static void LoadPrivateTagsDefaultOff()
static void SetLoadPrivateTagsDefault(bool)
virtual void SetMaxSizeLoadEntry(const long)