diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2014-10-02 13:42:42 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-01-19 11:15:53 +0100 |
commit | 9715fadb1511277add807fc033c32d417fa6ffe0 (patch) | |
tree | 3dd319aa96573b3ff6ec66f9077888199ddf8f41 /cuda/2d/algo.h | |
parent | 2a39390355f55956d6ec1ce204726f979f74b340 (diff) | |
download | astra-9715fadb1511277add807fc033c32d417fa6ffe0.tar.gz astra-9715fadb1511277add807fc033c32d417fa6ffe0.tar.bz2 astra-9715fadb1511277add807fc033c32d417fa6ffe0.tar.xz astra-9715fadb1511277add807fc033c32d417fa6ffe0.zip |
Improve cuda 2d header comments
Diffstat (limited to 'cuda/2d/algo.h')
-rw-r--r-- | cuda/2d/algo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cuda/2d/algo.h b/cuda/2d/algo.h index d39935d..954bb88 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, |