feat: fix all TEST and add DICOM export TEST
This commit is contained in:
@@ -21,7 +21,7 @@ using namespace Aurora;
|
||||
using namespace Recon;
|
||||
|
||||
|
||||
inline double fourDecimalRound(double src) {
|
||||
inline float fourDecimalRound(float src) {
|
||||
return round(src*10000.0)/10000.0;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ TEST_F(GetTransmissionData_Test, getTransmissionData) {
|
||||
|
||||
|
||||
// //getMeasurementMetaData
|
||||
// double maxNumTAS = Aurora::max(auroraUnion(slList, rlList)).getData()[0];
|
||||
// float maxNumTAS = Aurora::max(auroraUnion(slList, rlList)).getData()[0];
|
||||
// MeasurementInfo expInfo = loadMeasurementInfos(&dataParser);
|
||||
// TempInfo temp = getTemperatureInfo(&dataParser, maxNumTAS);
|
||||
// CEInfo ce = getCEInfo(&dataParser, expInfo);
|
||||
@@ -84,7 +84,7 @@ TEST_F(GetTransmissionData_Test, getTransmissionData) {
|
||||
// motorPosAvailableRef = transformationInfo.motorPos;
|
||||
// if(transformationMatricesRef.isNull())
|
||||
// {
|
||||
// Matrix motorPos1 = Matrix::fromRawData(new double[1] {1}, 1);
|
||||
// Matrix motorPos1 = Matrix::fromRawData(new float[1] {1}, 1);
|
||||
// transformationMatricesRef = getTransformationMatrix(&refParser, motorPos1).rotationMatrix;
|
||||
// }
|
||||
// else
|
||||
@@ -112,12 +112,12 @@ TEST_F(GetTransmissionData_Test, getTransmissionData) {
|
||||
|
||||
// if(expInfo.sampleRate != reflectParams::aScanReconstructionFrequency)
|
||||
// {
|
||||
// reflectParams::expectedAScanDataLength = ceil(expInfo.numberSamples * ((double)reflectParams::aScanReconstructionFrequency / expInfo.sampleRate));
|
||||
// reflectParams::expectedAScanDataLength = ceil(expInfo.numberSamples * ((float)reflectParams::aScanReconstructionFrequency / expInfo.sampleRate));
|
||||
// }
|
||||
|
||||
// preComputes.matchedFilterRef = createMatchedFilter(ceRef.ce, ceRef.measuredCEUsed, reflectParams::findDefects, reconParams::removeOutliersFromCEMeasured, expInfo.Hardware);
|
||||
|
||||
// preComputes.timeInterval = (double)1 / reflectParams::aScanReconstructionFrequency;
|
||||
// preComputes.timeInterval = (float)1 / reflectParams::aScanReconstructionFrequency;
|
||||
// preComputes.measuredCEUsed = ce.measuredCEUsed;
|
||||
// preComputes.measuredCE_TASIndices = ce.tasIndices;
|
||||
// preComputes.measuredCE_receiverIndices = ce.receiverIndices;
|
||||
@@ -141,7 +141,7 @@ TEST_F(GetTransmissionData_Test, getTransmissionData) {
|
||||
|
||||
// Matrix iMp;
|
||||
// Matrix mp_inter = intersect(motorPosAvailable, transParams::motorPos, iMp);
|
||||
// double* mpRef_interData = Aurora::malloc(iMp.getDataSize());
|
||||
// float* mpRef_interData = Aurora::malloc(iMp.getDataSize());
|
||||
// for(int i=0; i<iMp.getDataSize(); ++i)
|
||||
// {
|
||||
// mpRef_interData[i] = motorPosAvailableRef[iMp[i] - 1];
|
||||
|
||||
Reference in New Issue
Block a user