18 #ifndef itkDICOMImageIO2_h
19 #define itkDICOMImageIO2_h
20 #if !defined( ITK_LEGACY_REMOVE )
25 #include "DICOMParser.h"
26 #include "DICOMAppHelper.h"
36 class DICOMImageIO2:
public ImageIOBase
41 typedef DICOMImageIO2 Self;
42 typedef ImageIOBase Superclass;
49 itkTypeMacro(DICOMImageIO2, Superclass);
55 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
58 virtual
void ReadImageInformation() ITK_OVERRIDE;
64 virtual
void Read(
void *buffer) ITK_OVERRIDE;
75 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE {
return false; }
78 virtual void WriteImageInformation() ITK_OVERRIDE {}
82 virtual void Write(
const void *) ITK_OVERRIDE {}
85 void GetPatientName(
char *name);
87 void GetPatientID(
char *
id);
89 void GetPatientSex(
char *sex);
91 void GetPatientAge(
char *age);
93 void GetStudyID(
char *
id);
95 void GetPatientDOB(
char *dob);
97 void GetStudyDescription(
char *desc);
99 void GetBodyPart(
char *part);
101 void GetNumberOfSeriesInStudy(
char *series);
103 void GetNumberOfStudyRelatedSeries(
char *series);
105 void GetStudyDate(
char *date);
107 void GetModality(
char *modality);
109 void GetManufacturer(
char *manu);
111 void GetInstitution(
char *ins);
113 void GetModel(
char *model);
117 virtual ~DICOMImageIO2();
118 virtual void PrintSelf(std::ostream & os, Indent indent)
const ITK_OVERRIDE;
120 itkdicomparser::DICOMParser *m_Parser;
121 itkdicomparser::DICOMAppHelper *m_AppHelper;
123 void ReadDataCallback(doublebyte group,
125 itkdicomparser::DICOMParser::VRTypes
type,
129 unsigned char *m_ImageDataBuffer;
132 DICOMImageIO2(
const Self &) ITK_DELETE_FUNCTION;
133 void operator=(const Self &) ITK_DELETE_FUNCTION;
137 #endif //#if !defined( ITK_LEGACY_REMOVE )
138 #endif // itkDICOMImageIO2_h
*brief Mask an image with the negative of a mask **This class is templated over the types of the *input image type