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);
162 itkSetMacro(LoadPrivateTags,
bool);
163 itkGetConstMacro(LoadPrivateTags,
bool);
164 itkBooleanMacro(LoadPrivateTags);
167 #if defined( ITKIO_DEPRECATED_GDCM1_API )
174 void GetPatientName(
char *name);
176 void GetPatientID(
char *
id);
178 void GetPatientSex(
char *sex);
180 void GetPatientAge(
char *age);
182 void GetStudyID(
char *
id);
184 void GetPatientDOB(
char *dob);
186 void GetStudyDescription(
char *desc);
188 void GetBodyPart(
char *part);
190 void GetNumberOfSeriesInStudy(
char *series);
192 void GetNumberOfStudyRelatedSeries(
char *series);
194 void GetStudyDate(
char *date);
196 void GetModality(
char *modality);
198 void GetManufacturer(
char *manu);
200 void GetInstitution(
char *ins);
202 void GetModel(
char *model);
204 void GetScanOptions(
char *options);
210 bool GetValueFromTag(
const std::string & tag, std::string & value);
218 static bool GetLabelFromTag(
const std::string & tag,
219 std::string & labelId);
221 #if defined( ITKIO_DEPRECATED_GDCM1_API )
272 typedef enum { JPEG = 0, JPEG2000, JPEGLS, RLE } TCompressionType;
273 itkSetEnumMacro(CompressionType, TCompressionType);
274 itkGetEnumMacro(CompressionType, TCompressionType);
280 void PrintSelf(std::ostream & os,
Indent indent)
const;
282 bool OpenGDCMFileForReading(std::ifstream & os,
const char *filename);
284 bool OpenGDCMFileForWriting(std::ofstream & os,
const char *filename);
286 void InternalReadImageInformation(std::ifstream & file);
302 void operator=(
const Self &);
304 #if defined( ITKIO_DEPRECATED_GDCM1_API )
333 #endif // __itkGDCMImageIO_h