feat: load DICOM modality from config.bin
This commit is contained in:
@@ -26,7 +26,6 @@ namespace {
|
|||||||
UID_CTImageStorage);
|
UID_CTImageStorage);
|
||||||
aDataset->putAndInsertString(DCM_SOPClassUID, UID_CTImageStorage);
|
aDataset->putAndInsertString(DCM_SOPClassUID, UID_CTImageStorage);
|
||||||
|
|
||||||
aDataset->putAndInsertString(DCM_Modality, "CT");
|
|
||||||
aDataset->putAndInsertString(DCM_TransferSyntaxUID,
|
aDataset->putAndInsertString(DCM_TransferSyntaxUID,
|
||||||
UID_LittleEndianImplicitTransferSyntax);
|
UID_LittleEndianImplicitTransferSyntax);
|
||||||
aDataset->putAndInsertString(DCM_ImageType, "ORIGINAL\\PRIMARY");
|
aDataset->putAndInsertString(DCM_ImageType, "ORIGINAL\\PRIMARY");
|
||||||
@@ -94,6 +93,7 @@ namespace Recon
|
|||||||
mStudyInstanceUID = aPatientData.getStudyUID();
|
mStudyInstanceUID = aPatientData.getStudyUID();
|
||||||
}
|
}
|
||||||
std::string measurementID = aMetaData.getMeasurementID();
|
std::string measurementID = aMetaData.getMeasurementID();
|
||||||
|
|
||||||
unsigned long dateIndex = measurementID.find('_');
|
unsigned long dateIndex = measurementID.find('_');
|
||||||
unsigned long timeIndex = measurementID.find('T');
|
unsigned long timeIndex = measurementID.find('T');
|
||||||
OFDateTime currentDateTime;
|
OFDateTime currentDateTime;
|
||||||
@@ -178,12 +178,15 @@ namespace Recon
|
|||||||
|
|
||||||
::initialSeriesTime(dataset, mStudyTime);
|
::initialSeriesTime(dataset, mStudyTime);
|
||||||
|
|
||||||
|
dataset->putAndInsertString(DCM_Modality, mPatientData.getModality().empty()?
|
||||||
|
"CT":mPatientData.getModality().data());
|
||||||
|
|
||||||
dataset->putAndInsertString(DCM_InstitutionName, mPatientData.getInstituationName().empty()?
|
dataset->putAndInsertString(DCM_InstitutionName, mPatientData.getInstituationName().empty()?
|
||||||
"InstName":mPatientData.getInstituationName().data());
|
"":mPatientData.getInstituationName().data());
|
||||||
dataset->putAndInsertString(DCM_InstitutionAddress, mPatientData.getInstituationAddress().empty()?
|
dataset->putAndInsertString(DCM_InstitutionAddress, mPatientData.getInstituationAddress().empty()?
|
||||||
"default addr":mPatientData.getInstituationAddress().data());
|
"":mPatientData.getInstituationAddress().data());
|
||||||
dataset->putAndInsertString(DCM_ReferringPhysicianName,mPatientData.getReferringPhysicianName().empty()?
|
dataset->putAndInsertString(DCM_ReferringPhysicianName,mPatientData.getReferringPhysicianName().empty()?
|
||||||
"ReferringPhysician": mPatientData.getOperatorName().data());
|
"": mPatientData.getReferringPhysicianName().data());
|
||||||
dataset->putAndInsertString(DCM_PatientName, mPatientData.getPatientName().empty()?
|
dataset->putAndInsertString(DCM_PatientName, mPatientData.getPatientName().empty()?
|
||||||
"TestPatient":mPatientData.getPatientName().data());
|
"TestPatient":mPatientData.getPatientName().data());
|
||||||
dataset->putAndInsertString(DCM_PatientSex, mPatientData.getPatientSex().data());
|
dataset->putAndInsertString(DCM_PatientSex, mPatientData.getPatientSex().data());
|
||||||
|
|||||||
Reference in New Issue
Block a user