diff options
author | Jakob Jorgensen, WS at HMXIF <jakob.jorgensen@manchester.ac.uk> | 2018-05-10 11:29:41 +0100 |
---|---|---|
committer | Jakob Jorgensen, WS at HMXIF <jakob.jorgensen@manchester.ac.uk> | 2018-05-10 11:29:41 +0100 |
commit | a3dd21598a1d61fec1bc8b7e17abe74d5dbd6a51 (patch) | |
tree | 450ffa4bda82af86d7db1a9d549954a4c9c9ab0a /Wrappers/Python | |
parent | c2062f3713fce3dc414a5a214a80c1c29f757dd4 (diff) | |
download | framework-plugins-a3dd21598a1d61fec1bc8b7e17abe74d5dbd6a51.tar.gz framework-plugins-a3dd21598a1d61fec1bc8b7e17abe74d5dbd6a51.tar.bz2 framework-plugins-a3dd21598a1d61fec1bc8b7e17abe74d5dbd6a51.tar.xz framework-plugins-a3dd21598a1d61fec1bc8b7e17abe74d5dbd6a51.zip |
Remove geoms and pbalg dependence.
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-x | Wrappers/Python/wip/demo_nexus.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Wrappers/Python/wip/demo_nexus.py b/Wrappers/Python/wip/demo_nexus.py index ffa5741..03739b1 100755 --- a/Wrappers/Python/wip/demo_nexus.py +++ b/Wrappers/Python/wip/demo_nexus.py @@ -12,7 +12,6 @@ from ccpi.framework import ImageData, AcquisitionData, ImageGeometry, Acquisitio from ccpi.optimisation.algs import FISTA, FBPD, CGLS
from ccpi.optimisation.funcs import Norm2sq, Norm1
from ccpi.plugins.ops import CCPiProjectorSimple
-from ccpi.reconstruction.parallelbeam import alg as pbalg
from ccpi.processors import Normalizer, CenterOfRotationFinder, AcquisitionDataPadder
from ccpi.io.reader import NexusReader
@@ -62,15 +61,10 @@ padder.set_input(norm.get_output()) padded_data = padder.get_output()
# Create Acquisition and Image Geometries for setting up projector.
-voxel_per_pixel = 1
ag = padded_data.geometry
-geoms = pbalg.pb_setup_geometry_from_acquisition(padded_data.as_array(),
- ag.angles,
- center_of_rotation,
- voxel_per_pixel )
-ig = ImageGeometry(voxel_num_x=geoms['output_volume_x'],
- voxel_num_y=geoms['output_volume_y'],
- voxel_num_z=geoms['output_volume_z'])
+ig = ImageGeometry(voxel_num_x=ag.pixel_num_h,
+ voxel_num_y=ag.pixel_num_h,
+ voxel_num_z=ag.pixel_num_v)
# Define the projector object
print ("Define projector")
|