#include #include "Function2D.h" #include "Matrix.h" #include "src/reflectionReconstruction/preprocessData/resampleTransmissionVolume.h" #include "src/reflectionReconstruction/preprocessData/precalcImageParameters.h" #include "src/reflectionReconstruction/preprocessData/imageExtrapolation.h" #include "src/common/getGeometryInfo.h" #include "src/config/config.h" #include "MatlabReader.h" using namespace Recon; inline double fourDecimalRound(double src){ return round(src*10000.0)/10000.0; } #define EXPECT_DOUBLE_AE(valueA,valueB)\ EXPECT_DOUBLE_EQ(fourDecimalRound(valueA),fourDecimalRound(valueB)) class ProcessData_Test : public ::testing::Test { protected: static void SetUpCommonTester() { } static void TearDownTestCase() { } void SetUp() { } void TearDown() { } }; TEST_F(ProcessData_Test, imageExtrapolation) { MatlabReader m("/home/sun/testData/imageExtrapolation.mat"); auto smHelperInput = m.read("SMHelperInput"); auto smHelper = m.read("SMHelper"); auto result = imageExtrapolation(smHelperInput, 3); for(int i=0;i