diff options
author | Vaggelis Papoutsellis <22398586+epapoutsellis@users.noreply.github.com> | 2019-04-02 12:00:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 12:00:33 +0100 |
commit | 7f4b6dea68b5249e4e17f12b3a4215e06e630d43 (patch) | |
tree | 8fefe0eda6a7c23fac81f6357b09bb7f98e51a45 /Wrappers | |
parent | cae3bf699151b7ca840ff81045be0bacf8a5276b (diff) | |
download | astra-wrapper-7f4b6dea68b5249e4e17f12b3a4215e06e630d43.tar.gz astra-wrapper-7f4b6dea68b5249e4e17f12b3a4215e06e630d43.tar.bz2 astra-wrapper-7f4b6dea68b5249e4e17f12b3a4215e06e630d43.tar.xz astra-wrapper-7f4b6dea68b5249e4e17f12b3a4215e06e630d43.zip |
add methods to MC AstraProjector
domain_geometry
range_geometry
norm
Diffstat (limited to 'Wrappers')
-rwxr-xr-x | Wrappers/Python/ccpi/astra/ops.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/astra/ops.py b/Wrappers/Python/ccpi/astra/ops.py index 4d459b3..87b24bd 100755 --- a/Wrappers/Python/ccpi/astra/ops.py +++ b/Wrappers/Python/ccpi/astra/ops.py @@ -195,5 +195,20 @@ class AstraProjectorMC(Operator): inputsize[1])) def allocate_direct(self): - return self.create_image_data() + return self.create_image_data()def domain_geometry(self): + return self.volume_geometry + + def domain_geometry(self): + return self.volume_geometry + def range_geometry(self): + return self.sinogram_geometry + + def norm(self): + + x0 = self.volume_geometry.allocate('random') + self.s1, sall, svec = PowerMethodNonsquare(self, 50, x0) + return self.s1 + + + |