diff options
author | Willem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:12:55 +0000 |
---|---|---|
committer | wpalenst <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:12:55 +0000 |
commit | 3a6769465bee7d56d0ddff36613b886446421e07 (patch) | |
tree | 624e85c5d6a4ab19c958a388e3436219693a6296 /cuda/2d/arith.h | |
parent | 4dfb881ceb82b07630437e952dec62323977ab56 (diff) | |
download | astra-3a6769465bee7d56d0ddff36613b886446421e07.tar.gz astra-3a6769465bee7d56d0ddff36613b886446421e07.tar.bz2 astra-3a6769465bee7d56d0ddff36613b886446421e07.tar.xz astra-3a6769465bee7d56d0ddff36613b886446421e07.zip |
Remove padding in 2D cuda in favour of Border mode
Diffstat (limited to 'cuda/2d/arith.h')
-rw-r--r-- | cuda/2d/arith.h | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/cuda/2d/arith.h b/cuda/2d/arith.h index c8c7b41..d745aef 100644 --- a/cuda/2d/arith.h +++ b/cuda/2d/arith.h @@ -55,28 +55,21 @@ struct opSetMaskedValues; struct opMulMask; - -enum VolType { - SINO = 0, - VOL = 1 -}; - - -template<typename op, VolType t> void processVolCopy(float* out, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVolCopy(float* out, float param, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVolCopy(float* out1, float* out2, float param1, float param2, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVolCopy(float* out, const float* in, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVolCopy(float* out, const float* in, float param, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVolCopy(float* out, const float* in1, const float* in2, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVolCopy(float* out, const float* in1, const float* in2, float param, unsigned int width, unsigned int height); - -template<typename op, VolType t> void processVol(float* out, unsigned int pitch, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVol(float* out, float fParam, unsigned int pitch, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVol(float* out1, float* out2, float fParam1, float fParam2, unsigned int pitch, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVol(float* out, const float* in, unsigned int pitch, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVol(float* out, const float* in, float fParam, unsigned int pitch, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVol(float* out, const float* in1, const float* in2, float fParam, unsigned int pitch, unsigned int width, unsigned int height); -template<typename op, VolType t> void processVol(float* out, const float* in1, const float* in2, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out, float param, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out1, float* out2, float param1, float param2, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out, const float* in, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out, const float* in, float param, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out, const float* in1, const float* in2, unsigned int width, unsigned int height); +template<typename op> void processVolCopy(float* out, const float* in1, const float* in2, float param, unsigned int width, unsigned int height); + +template<typename op> void processVol(float* out, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVol(float* out, float fParam, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVol(float* out1, float* out2, float fParam1, float fParam2, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVol(float* out, const float* in, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVol(float* out, const float* in, float fParam, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVol(float* out, const float* in1, const float* in2, float fParam, unsigned int pitch, unsigned int width, unsigned int height); +template<typename op> void processVol(float* out, const float* in1, const float* in2, unsigned int pitch, unsigned int width, unsigned int height); template<typename op> void processVol3D(cudaPitchedPtr& out, const SDimensions3D& dims); template<typename op> void processVol3D(cudaPitchedPtr& out, float fParam, const SDimensions3D& dims); |