summaryrefslogtreecommitdiffstats
path: root/cuda/2d/sirt.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-04-06 18:01:16 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-09-25 14:10:10 +0200
commit609e81d67217f4ff21c8a0aec82584da0fee1908 (patch)
tree9dc3da429ea0963117eb8a41a390a37a289a784d /cuda/2d/sirt.cu
parent0c2482e1dce65ded6215cd5634d86b4c00381e27 (diff)
downloadastra-609e81d67217f4ff21c8a0aec82584da0fee1908.tar.gz
astra-609e81d67217f4ff21c8a0aec82584da0fee1908.tar.bz2
astra-609e81d67217f4ff21c8a0aec82584da0fee1908.tar.xz
astra-609e81d67217f4ff21c8a0aec82584da0fee1908.zip
Remove unmaintained, out of date 'STANDALONE' cuda code
Diffstat (limited to 'cuda/2d/sirt.cu')
-rw-r--r--cuda/2d/sirt.cu63
1 files changed, 0 insertions, 63 deletions
diff --git a/cuda/2d/sirt.cu b/cuda/2d/sirt.cu
index 2621490..2c5fdc9 100644
--- a/cuda/2d/sirt.cu
+++ b/cuda/2d/sirt.cu
@@ -29,10 +29,6 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#include "astra/cuda/2d/util.h"
#include "astra/cuda/2d/arith.h"
-#ifdef STANDALONE
-#include "testutil.h"
-#endif
-
#include <cstdio>
#include <cassert>
@@ -302,62 +298,3 @@ float SIRT::computeDiffNorm()
}
-
-#ifdef STANDALONE
-
-using namespace astraCUDA;
-
-int main()
-{
- float* D_volumeData;
- float* D_sinoData;
-
- SDimensions dims;
- dims.iVolWidth = 1024;
- dims.iVolHeight = 1024;
- dims.iProjAngles = 512;
- dims.iProjDets = 1536;
- dims.fDetScale = 1.0f;
- dims.iRaysPerDet = 1;
- unsigned int volumePitch, sinoPitch;
-
- allocateVolume(D_volumeData, dims.iVolWidth, dims.iVolHeight, volumePitch);
- zeroVolume(D_volumeData, volumePitch, dims.iVolWidth, dims.iVolHeight);
- printf("pitch: %u\n", volumePitch);
-
- allocateVolume(D_sinoData, dims.iProjDets, dims.iProjAngles, sinoPitch);
- zeroVolume(D_sinoData, sinoPitch, dims.iProjDets, dims.iProjAngles);
- printf("pitch: %u\n", sinoPitch);
-
- unsigned int y, x;
- float* sino = loadImage("sino.png", y, x);
-
- float* img = new float[dims.iVolWidth*dims.iVolHeight];
-
- copySinogramToDevice(sino, dims.iProjDets, dims.iProjDets, dims.iProjAngles, D_sinoData, sinoPitch);
-
- float* angle = new float[dims.iProjAngles];
-
- for (unsigned int i = 0; i < dims.iProjAngles; ++i)
- angle[i] = i*(M_PI/dims.iProjAngles);
-
- SIRT sirt;
-
- sirt.setGeometry(dims, angle);
- sirt.init();
-
- sirt.setBuffers(D_volumeData, volumePitch, D_sinoData, sinoPitch);
-
- sirt.iterate(25);
-
-
- delete[] angle;
-
- copyVolumeFromDevice(img, dims.iVolWidth, dims, D_volumeData, volumePitch);
-
- saveImage("vol.png",dims.iVolHeight,dims.iVolWidth,img);
-
- return 0;
-}
-#endif
-