From fedacced5387aed3d4941aea33ab84dbbd0a7835 Mon Sep 17 00:00:00 2001 From: sunwen Date: Tue, 24 Oct 2023 13:09:17 +0800 Subject: [PATCH] Fix imageExtrapolation. --- .../preprocessData/imageExtrapolation.cpp | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/reflectionReconstruction/preprocessData/imageExtrapolation.cpp b/src/reflectionReconstruction/preprocessData/imageExtrapolation.cpp index 4b2455b..a4f8db8 100644 --- a/src/reflectionReconstruction/preprocessData/imageExtrapolation.cpp +++ b/src/reflectionReconstruction/preprocessData/imageExtrapolation.cpp @@ -30,24 +30,18 @@ Matrix Recon::imageExtrapolation(const Matrix& aImg, int aDim) if(!indexe.empty()) { - Matrix result = aImg; - std::vector lowerZIndexe; - for(int i=0; i<=indexe[0] - 1; ++i) + Matrix result = aImg; + if(indexe[0] - 1 > 0) { - lowerZIndexe.push_back(i); - } - for(int i=0; i