//.h文件 #pragma once class dicomRead { public: dicomRead(void); ~dicomRead(void); private: const char* PatientName; const char* PatientSex; long PatientAge; long Width; long Height; long Depth; long WindowsLevel; long WindowsWidth; double space[2]; double spaceZ; double ImagePosition[3]; double ImageOrientation[6]; unsigned short* buffer; public: const char* GetPatientName(); const char* GetPatientSex(); long GetPatientAge(); long GetWidth(); long GetHeight(); long GetDepth(); long GetWindowsLevel(); long GetWindowsWidth(); double* GetSpace(); double GetSpaceZ(double orientation[6],double position1[3],double position2[3]); double* GetImagePosition(); double* GetImageOrientation(); unsigned short* GetBuffer(); void DicomRead(const char* path); void compressionDicom(const char* path,int repType); void decompressionDicom(const char* path); void readDICOMInfo(const char* path); }; #include "dicomRead.h" #include <map> #include <math.h> #include <iostream> #include <string> #include "dcmtk\config\osconfig.h" #include "dcmtk\dcmdata\dctk.h" #include "dcmtk\dcmdata\dcxfer.h" #include "dcmtk\dcmdata\dctag.h" #include "dcmtk\dcmdata\dctagkey.h" #include "dcmtk\dcmdata\dcpxitem.h" #include "dcmtk\oflog\config.h" #include "dcmtk\dcmimgle\dcmimage.h" #include "dcmtk\dcmjpeg\djdecode.h" #include "dcmtk\dcmjpeg\djdijg12.h" #include "dcmtk\dcmjpeg\djdijg8.h" #include "dcmtk\dcmjpeg\djdijg16.h" #include "dcmtk\dcmjpeg\djencode.h" #include "dcmtk\dcmjpeg\djrploss.h" #include "dcmtk\dcmjpeg\djrplol.h" #include "dcmtk\dcmdata\dcrleerg.h" #include "dcmtk\dcmdata\dcrledrg.h" using……
阅读全文