Add DICOMExporter and use it to save images.
This commit is contained in:
39
src/common/DICOMExporter.h
Normal file
39
src/common/DICOMExporter.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#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 &&) = 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__
|
||||
Reference in New Issue
Block a user