summaryrefslogtreecommitdiffstats
path: root/cuda/3d/cgls3d.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-06-22 15:46:11 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-06-22 16:06:32 +0200
commite5b70e8b53e4ecc81b1aacc3af7893faf49ddc24 (patch)
treee92e7e11123d6b8daadb6bd70bdd2f1d4230423d /cuda/3d/cgls3d.h
parent3c5d9351a801f8f83565a4dbc9186cbc6a5d2b76 (diff)
downloadastra-e5b70e8b53e4ecc81b1aacc3af7893faf49ddc24.tar.gz
astra-e5b70e8b53e4ecc81b1aacc3af7893faf49ddc24.tar.bz2
astra-e5b70e8b53e4ecc81b1aacc3af7893faf49ddc24.tar.xz
astra-e5b70e8b53e4ecc81b1aacc3af7893faf49ddc24.zip
Move CUDA include files
Diffstat (limited to 'cuda/3d/cgls3d.h')
-rw-r--r--cuda/3d/cgls3d.h112
1 files changed, 0 insertions, 112 deletions
diff --git a/cuda/3d/cgls3d.h b/cuda/3d/cgls3d.h
deleted file mode 100644
index b9b9e3a..0000000
--- a/cuda/3d/cgls3d.h
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
------------------------------------------------------------------------
-Copyright: 2010-2018, imec Vision Lab, University of Antwerp
- 2014-2018, CWI, Amsterdam
-
-Contact: astra@astra-toolbox.com
-Website: http://www.astra-toolbox.com/
-
-This file is part of the ASTRA Toolbox.
-
-
-The ASTRA Toolbox is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-The ASTRA Toolbox is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
-
------------------------------------------------------------------------
-*/
-
-#ifndef _CUDA_CGLS3D_H
-#define _CUDA_CGLS3D_H
-
-#include "algo3d.h"
-
-namespace astraCUDA3d {
-
-class _AstraExport CGLS : public ReconAlgo3D {
-public:
- CGLS();
- ~CGLS();
-
-// bool setConeGeometry(const SDimensions3D& dims, const SConeProjection* projs);
-
-
- bool enableVolumeMask();
- bool enableSinogramMask();
-
- // init should be called after setting all geometry
- bool init();
-
- // setVolumeMask should be called after init and before iterate,
- // but only if enableVolumeMask was called before init.
- // It may be called again after iterate.
- bool setVolumeMask(cudaPitchedPtr& D_maskData);
-
- // setSinogramMask should be called after init and before iterate,
- // but only if enableSinogramMask was called before init.
- // It may be called again after iterate.
- bool setSinogramMask(cudaPitchedPtr& D_smaskData);
-
-
- // setBuffers should be called after init and before iterate.
- // It may be called again after iterate.
- bool setBuffers(cudaPitchedPtr& D_volumeData,
- cudaPitchedPtr& D_projData);
-
-
- // set Min/Max constraints. They may be called at any time, and will affect
- // any iterate() calls afterwards.
- bool setMinConstraint(float fMin) { return false; }
- bool setMaxConstraint(float fMax) { return false; }
-
- // iterate should be called after init and setBuffers.
- // It may be called multiple times.
- bool iterate(unsigned int iterations);
-
- // Compute the norm of the difference of the FP of the current reconstruction
- // and the sinogram. (This performs one FP.)
- // It can be called after iterate.
- float computeDiffNorm();
-
-protected:
- void reset();
-
- bool useVolumeMask;
- bool useSinogramMask;
-
- cudaPitchedPtr D_maskData;
- cudaPitchedPtr D_smaskData;
-
- // Input/output
- cudaPitchedPtr D_sinoData;
- cudaPitchedPtr D_volumeData;
-
- // Temporary buffers
- cudaPitchedPtr D_r;
- cudaPitchedPtr D_w;
- cudaPitchedPtr D_z;
- cudaPitchedPtr D_p;
-
- float gamma;
-
- bool sliceInitialized;
-};
-
-_AstraExport bool doCGLS(cudaPitchedPtr D_volumeData, unsigned int volumePitch,
- cudaPitchedPtr D_projData, unsigned int projPitch,
- cudaPitchedPtr D_maskData, unsigned int maskPitch,
- const SDimensions3D& dims, const SConeProjection* projs,
- unsigned int iterations);
-
-}
-
-#endif