feat: Add more Study Information to dicom export

This commit is contained in:
kradchen
2024-09-19 15:35:43 +08:00
parent a8356cd258
commit 658782b96d
3 changed files with 76 additions and 51 deletions

View File

@@ -31,12 +31,12 @@
using namespace Recon;
using namespace Aurora;
int Recon::startReconstructions(const std::string& aDataPath, const std::string& aDataRefPath, const std::string& aOutputPath)
int Recon::startReconstructions( const std::string& aDataPath, const std::string& aDataRefPath, const std::string& aOutputPath)
{
MatlabWriter writer(aOutputPath);
// MatlabWriter writer(aOutputPath);
Parser dataParser(aDataPath);
Parser refParser(aDataRefPath);
Recon::DICOMExporter exporter(dataParser.getPatientData());
Recon::DICOMExporter exporter(dataParser.getPatientData(), dataParser.getMetaData());
exporter.setExportBasePath(aOutputPath);
if(!dataParser.getShotList()->isValid())
{
@@ -255,9 +255,9 @@ int Recon::startReconstructions(const std::string& aDataPath, const std::string&
//Recon::notifyProgress(25);
RECON_INFO("Start reflectionRecostruction.");
Matrix env = startReflectionReconstruction(&dataParser, preProcessData.saftMode, mp_inter, slList_inter, snList_inter, rlList_inter, rnList_inter, geom, preProcessData.transRecos, expInfo, preComputes);
writer.setMatrix(env, "reflect");
// writer.setMatrix(env, "reflect");
exporter.exportDICOM(env, Recon::DICOMExporter::REFL);
// Recon::notifyProgress(99);
//Recon::notifyProgress(99);
}
// writer.write();
return 0;