28 #ifndef __itkGDCMImageIO_h
29 #define __itkGDCMImageIO_h
31 #define ITKIO_DEPRECATED_GDCM1_API
104 virtual bool CanReadFile(
const char *);
107 virtual void ReadImageInformation();
110 virtual void Read(
void *buffer);
121 virtual bool CanWriteFile(
const char *);
125 virtual void WriteImageInformation();
129 virtual void Write(
const void *buffer);
134 itkGetConstMacro(RescaleSlope,
double);
135 itkGetConstMacro(RescaleIntercept,
double);
142 itkGetStringMacro(UIDPrefix);
143 itkSetStringMacro(UIDPrefix);
147 itkGetStringMacro(StudyInstanceUID);
148 itkGetStringMacro(SeriesInstanceUID);
149 itkGetStringMacro(FrameOfReferenceInstanceUID);
154 itkSetMacro(KeepOriginalUID,
bool);
155 itkGetConstMacro(KeepOriginalUID,
bool);
156 itkBooleanMacro(KeepOriginalUID);
159 #if defined( ITKIO_DEPRECATED_GDCM1_API )
166 void GetPatientName(
char *name);
168 void GetPatientID(
char *
id);
170 void GetPatientSex(
char *sex);
172 void GetPatientAge(
char *age);
174 void GetStudyID(
char *
id);
176 void GetPatientDOB(
char *dob);
178 void GetStudyDescription(
char *desc);
180 void GetBodyPart(
char *part);
182 void GetNumberOfSeriesInStudy(
char *series);
184 void GetNumberOfStudyRelatedSeries(
char *series);
186 void GetStudyDate(
char *date);
188 void GetModality(
char *modality);
190 void GetManufacturer(
char *manu);
192 void GetInstitution(
char *ins);
194 void GetModel(
char *model);
196 void GetScanOptions(
char *options);
203 bool GetValueFromTag(
const std::string & tag, std::string & value);
211 static bool GetLabelFromTag(
const std::string & tag,
212 std::string & labelId);
215 #if defined( ITKIO_DEPRECATED_GDCM1_API )
277 typedef enum { JPEG = 0, JPEG2000, JPEGLS, RLE } TCompressionType;
278 itkSetEnumMacro(CompressionType, TCompressionType);
279 itkGetEnumMacro(CompressionType, TCompressionType);
285 void PrintSelf(std::ostream & os,
Indent indent)
const;
287 bool OpenGDCMFileForReading(std::ifstream & os,
const char *filename);
289 bool OpenGDCMFileForWriting(std::ofstream & os,
const char *filename);
291 void InternalReadImageInformation(std::ifstream & file);
305 void operator=(
const Self &);
307 #if defined( ITKIO_DEPRECATED_GDCM1_API )
336 #endif // __itkGDCMImageIO_h