From bc65a0395e6c3930bac0440cc894990dd04cb704 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 13 Jul 2018 16:20:07 +0200 Subject: Reorganize more filter size functions --- src/Filters.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Filters.cpp b/src/Filters.cpp index 3ee3749..c13aa6b 100644 --- a/src/Filters.cpp +++ b/src/Filters.cpp @@ -38,7 +38,7 @@ along with the ASTRA Toolbox. If not, see . namespace astra { -float *genFilter(const SFilterConfig &_cfg, int _iProjectionCount, +float *genFilter(const SFilterConfig &_cfg, int _iFFTRealDetectorCount, int _iFFTFourierDetectorCount) { @@ -546,10 +546,10 @@ SFilterConfig getFilterConfigForAlgorithm(const Config& _cfg, CAlgorithm *_alg) return c; } -static int calcNextPowerOfTwo(int n) +int calcNextPowerOfTwo(int n) { int x = 1; - while (x < n) + while (x < n && x > 0) x *= 2; return x; -- cgit v1.2.3