Add usage of command line.

This commit is contained in:
sunwen
2023-06-28 16:48:28 +08:00
parent b728b9e204
commit fad9168527
8 changed files with 130 additions and 36 deletions

View File

@@ -29,18 +29,11 @@
using namespace Recon;
using namespace Aurora;
void Recon::startReconstructions()
void Recon::startReconstructions(const std::string& aDataPath, const std::string& aDataRefPath, const std::string& aOutputPath)
{
std::string dataPath = "/home/AScans_Data/ADW_TAS_Issue/20230418T145123/";
std::string refPath = "/home/AScans_Data/ADW_TAS_Issue/20230418T141000/";
//std::string dataPath = "/home/AScans_Data/volunteer_20230620/20230620T120410/";
//std::string refPath = "/home/AScans_Data/volunteer_20230620/20230620T122424/";
//std::string dataPath = "/home/AScans_Data/10VolunteerStudyData/20221107/20221107T142539";
//std::string refPath = "/home/AScans_Data/10VolunteerStudyData/20221107/20221107T152522";
std::string outputPath = "/home/sun/20230627_20230418T145123_UR.mat";
MatlabWriter writer(outputPath);
Parser dataParser(dataPath);
Parser refParser(refPath);
MatlabWriter writer(aOutputPath);
Parser dataParser(aDataPath);
Parser refParser(aDataRefPath);
//init total used receiver/emitter/motorPos
Matrix motorPosTotal, slList, snList, rlList, rnList;
if(transParams::runTransmissionReco && reflectParams::runReflectionReco)