41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
#ifndef __DICOMEXPORT_H__
|
|
#define __DICOMEXPORT_H__
|
|
#include <string>
|
|
|
|
#include "Matrix.h"
|
|
|
|
#include "Parser/Data/PatientData.h"
|
|
namespace Recon {
|
|
|
|
class DICOMExporter
|
|
{
|
|
public:
|
|
enum ImageType{
|
|
REFL,
|
|
SOS,
|
|
ATT
|
|
};
|
|
explicit DICOMExporter(const PatientData& aPatientData);
|
|
//仅仅用于测试!!!
|
|
DICOMExporter();
|
|
DICOMExporter(DICOMExporter &&) = default;
|
|
DICOMExporter(const DICOMExporter &) = default;
|
|
DICOMExporter &operator=(DICOMExporter &&) = default;
|
|
DICOMExporter &operator=(const DICOMExporter &) = default;
|
|
~DICOMExporter();
|
|
void setExportBasePath(const std::string & path);
|
|
void exportDICOM(Aurora::Matrix aMatrix, ImageType type);
|
|
private:
|
|
std::string mBasePath;
|
|
std::string mStudyDate;
|
|
std::string mStudyTime;
|
|
|
|
char mStudyInstanceUID[100]={0};
|
|
char mSeriesInstanceUID[100]={0};
|
|
PatientData mPatientData;
|
|
void exportDCM(std::string path, double * startPoint, double* endPoint, int* imageXYZ,double* data, int type);
|
|
};
|
|
|
|
|
|
}
|
|
#endif // __DICOMEXPORT_H__
|