summaryrefslogtreecommitdiffstats
path: root/cuda/3d/sirt3d.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-03-23 15:50:24 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-03-23 16:03:21 +0100
commit16430239d04ff738a21146c410918c285552543f (patch)
tree4a4e894d6ece87888b71bb69c32e53721fb7e2a9 /cuda/3d/sirt3d.h
parent5edb35edc2c721b458334a65512b534912c2c542 (diff)
downloadastra-16430239d04ff738a21146c410918c285552543f.tar.gz
astra-16430239d04ff738a21146c410918c285552543f.tar.bz2
astra-16430239d04ff738a21146c410918c285552543f.tar.xz
astra-16430239d04ff738a21146c410918c285552543f.zip
Add relaxation parameters to SIRT3D
Diffstat (limited to 'cuda/3d/sirt3d.h')
-rw-r--r--cuda/3d/sirt3d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cuda/3d/sirt3d.h b/cuda/3d/sirt3d.h
index bb3864a..5e93deb 100644
--- a/cuda/3d/sirt3d.h
+++ b/cuda/3d/sirt3d.h
@@ -48,6 +48,9 @@ public:
// init should be called after setting all geometry
bool init();
+ // Set relaxation factor. This may be called after init and before iterate.
+ void setRelaxation(float r) { fRelaxation = r; }
+
// setVolumeMask should be called after init and before iterate,
// but only if enableVolumeMask was called before init.
// It may be called again after iterate.
@@ -91,6 +94,8 @@ protected:
float fMinConstraint;
float fMaxConstraint;
+ float fRelaxation;
+
cudaPitchedPtr D_maskData;
cudaPitchedPtr D_smaskData;