28 #ifndef itkGDCMImageIO_h
29 #define itkGDCMImageIO_h
31 #define ITKIO_DEPRECATED_GDCM1_API
34 #include "ITKIOGDCMExport.h"
96 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
99 virtual
void ReadImageInformation() ITK_OVERRIDE;
102 virtual
void Read(
void *buffer) ITK_OVERRIDE;
108 itkSetEnumMacro(InternalComponentType, IOComponentType);
115 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
119 virtual
void WriteImageInformation() ITK_OVERRIDE;
123 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
128 itkGetConstMacro(RescaleSlope,
double);
129 itkGetConstMacro(RescaleIntercept,
double);
136 itkGetStringMacro(UIDPrefix);
137 itkSetStringMacro(UIDPrefix);
141 itkGetStringMacro(StudyInstanceUID);
142 itkGetStringMacro(SeriesInstanceUID);
143 itkGetStringMacro(FrameOfReferenceInstanceUID);
148 itkSetMacro(KeepOriginalUID,
bool);
149 itkGetConstMacro(KeepOriginalUID,
bool);
150 itkBooleanMacro(KeepOriginalUID);
156 itkSetMacro(LoadPrivateTags,
bool);
157 itkGetConstMacro(LoadPrivateTags,
bool);
158 itkBooleanMacro(LoadPrivateTags);
161 #if defined( ITKIO_DEPRECATED_GDCM1_API )
168 void GetPatientName(
char *name);
170 void GetPatientID(
char *
id);
172 void GetPatientSex(
char *sex);
174 void GetPatientAge(
char *age);
176 void GetStudyID(
char *
id);
178 void GetPatientDOB(
char *dob);
180 void GetStudyDescription(
char *desc);
182 void GetBodyPart(
char *part);
184 void GetNumberOfSeriesInStudy(
char *series);
186 void GetNumberOfStudyRelatedSeries(
char *series);
188 void GetStudyDate(
char *date);
190 void GetModality(
char *modality);
192 void GetManufacturer(
char *manu);
194 void GetInstitution(
char *ins);
196 void GetModel(
char *model);
198 void GetScanOptions(
char *options);
204 bool GetValueFromTag(
const std::string & tag, std::string & value);
212 static bool GetLabelFromTag(
const std::string & tag,
213 std::string & labelId);
215 #if defined( ITKIO_DEPRECATED_GDCM1_API )
266 typedef enum { JPEG = 0, JPEG2000, JPEGLS, RLE } TCompressionType;
267 itkSetEnumMacro(CompressionType, TCompressionType);
268 itkGetEnumMacro(CompressionType, TCompressionType);
274 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
276 void InternalReadImageInformation();
278 double m_RescaleSlope;
279 double m_RescaleIntercept;
281 std::
string m_UIDPrefix;
282 std::
string m_StudyInstanceUID;
283 std::
string m_SeriesInstanceUID;
284 std::
string m_FrameOfReferenceInstanceUID;
286 bool m_KeepOriginalUID;
288 bool m_LoadPrivateTags;
293 #if defined( ITKIO_DEPRECATED_GDCM1_API )
322 #endif // itkGDCMImageIO_h
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()
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
SmartPointer< Self > Pointer
std::string m_StudyDescription
static bool GetLoadPrivateTagsDefault()
virtual void LoadSequencesOn()
ImageIOBase::IOComponentType m_InternalComponentType
std::string m_Manufacturer
static void LoadSequencesDefaultOn()
TCompressionType m_CompressionType
static void LoadSequencesDefaultOff()
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)