28 #ifndef itkGDCMImageIO_h
29 #define itkGDCMImageIO_h
33 #include "ITKIOGDCMExport.h"
60 extern ITKIOGDCM_EXPORT std::ostream &
102 class InternalHeader;
125 CanReadFile(
const char *)
override;
129 ReadImageInformation()
override;
133 Read(
void * pointer)
override;
147 CanWriteFile(
const char *)
override;
152 WriteImageInformation()
override;
157 Write(
const void * buffer)
override;
160 itkGetConstMacro(RescaleSlope,
double);
161 itkGetConstMacro(RescaleIntercept,
double);
167 itkGetStringMacro(UIDPrefix);
168 itkSetStringMacro(UIDPrefix);
172 itkGetStringMacro(StudyInstanceUID);
173 itkGetStringMacro(SeriesInstanceUID);
174 itkGetStringMacro(FrameOfReferenceInstanceUID);
178 itkSetMacro(KeepOriginalUID,
bool);
179 itkGetConstMacro(KeepOriginalUID,
bool);
180 itkBooleanMacro(KeepOriginalUID);
185 itkSetMacro(LoadPrivateTags,
bool);
186 itkGetConstMacro(LoadPrivateTags,
bool);
187 itkBooleanMacro(LoadPrivateTags);
192 itkSetMacro(ReadYBRtoRGB,
bool);
193 itkGetConstMacro(ReadYBRtoRGB,
bool);
194 itkBooleanMacro(ReadYBRtoRGB);
200 GetValueFromTag(
const std::string & tag, std::string & value);
209 GetLabelFromTag(
const std::string & tag, std::string & labelId);
212 #if !defined(ITK_LEGACY_REMOVE)
225 InternalSetCompressor(
const std::string & _compressor)
override;
231 PrintSelf(std::ostream & os,
Indent indent)
const override;
234 InternalReadImageInformation();
236 double m_RescaleSlope{};
238 double m_RescaleIntercept{};
240 std::string m_UIDPrefix{};
242 std::string m_StudyInstanceUID{};
244 std::string m_SeriesInstanceUID{};
246 std::string m_FrameOfReferenceInstanceUID{};
248 bool m_KeepOriginalUID{};
250 bool m_LoadPrivateTags{};
252 bool m_ReadYBRtoRGB{};
255 unsigned int m_GlobalNumberOfDimensions{};
263 InternalHeader * m_DICOMHeader{};
268 #endif // itkGDCMImageIO_h