From d32df3bcd1910f56195e828a0f7fba8fc04b90ab Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Thu, 12 Jul 2018 12:11:52 +0200 Subject: Refactor filter config --- cuda/2d/fft.cu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cuda/2d/fft.cu') diff --git a/cuda/2d/fft.cu b/cuda/2d/fft.cu index 4454746..864e325 100644 --- a/cuda/2d/fft.cu +++ b/cuda/2d/fft.cu @@ -300,13 +300,13 @@ void genIdenFilter(int _iProjectionCount, cufftComplex * _pFilter, } } -void genCuFFTFilter(E_FBPFILTER _eFilter, float _fD, int _iProjectionCount, +void genCuFFTFilter(const SFilterConfig &_cfg, int _iProjectionCount, cufftComplex * _pFilter, int _iFFTRealDetectorCount, - int _iFFTFourierDetectorCount, float _fParameter /* = -1.0f */) + int _iFFTFourierDetectorCount) { - float * pfFilt = astra::genFilter(_eFilter, _fD, _iProjectionCount, + float * pfFilt = astra::genFilter(_cfg, _iProjectionCount, _iFFTRealDetectorCount, - _iFFTFourierDetectorCount, _fParameter); + _iFFTFourierDetectorCount); for(int iDetectorIndex = 0; iDetectorIndex < _iFFTFourierDetectorCount; iDetectorIndex++) { -- cgit v1.2.3