summaryrefslogtreecommitdiffstats
path: root/cuda/2d/algo.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2014-10-02 13:42:42 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2014-10-02 13:42:42 +0200
commit8188b0697751d7c7ec6fe3069d0fceb50ebd0c9e (patch)
treef957ff62ca987167221db39d005407b8a440b077 /cuda/2d/algo.h
parent6354a9af8f1bb5443e7a56b24a84ee1c258a95af (diff)
downloadastra-8188b0697751d7c7ec6fe3069d0fceb50ebd0c9e.tar.gz
astra-8188b0697751d7c7ec6fe3069d0fceb50ebd0c9e.tar.bz2
astra-8188b0697751d7c7ec6fe3069d0fceb50ebd0c9e.tar.xz
astra-8188b0697751d7c7ec6fe3069d0fceb50ebd0c9e.zip
Improve cuda 2d header comments
Diffstat (limited to 'cuda/2d/algo.h')
-rw-r--r--cuda/2d/algo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cuda/2d/algo.h b/cuda/2d/algo.h
index 96195a3..9f2aa00 100644
--- a/cuda/2d/algo.h
+++ b/cuda/2d/algo.h
@@ -74,6 +74,13 @@ public:
// instead of calling setBuffers, you can also call allocateBuffers
// to let ReconAlgo manage its own GPU memory
virtual bool allocateBuffers();
+
+ // copy data to GPU. This must be called after allocateBuffers.
+ // pfSinogram, pfReconstruction, pfVolMask, pfSinoMask are the
+ // sinogram, reconstruction, volume mask and sinogram mask in system RAM,
+ // respectively. The corresponding pitch variables give the pitches
+ // of these buffers, measured in floats.
+ // The sinogram is multiplied by fSinogramScale after uploading it.
virtual bool copyDataToGPU(const float* pfSinogram, unsigned int iSinogramPitch, float fSinogramScale,
const float* pfReconstruction, unsigned int iReconstructionPitch,
const float* pfVolMask, unsigned int iVolMaskPitch,