From 8db3ad4cfd4273e9623f5e2824bd3c7e3a71c641 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 9 Jan 2018 15:57:30 +0100 Subject: Improve postalignment function --- samples/python/s022_fbp_cor.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'samples/python') diff --git a/samples/python/s022_fbp_cor.py b/samples/python/s022_fbp_cor.py index 2d811c0..bb110e5 100644 --- a/samples/python/s022_fbp_cor.py +++ b/samples/python/s022_fbp_cor.py @@ -32,11 +32,7 @@ vol_geom = astra.create_vol_geom(256, 256) proj_geom = astra.create_proj_geom('parallel', 1.0, 256, np.linspace(0,np.pi,180,False)) # Projection geometry with shifted center of rotation -# We create this by shifting the detector center V[:,2:4] by a multiple of the detector -# orientation V[:,4:6]. -proj_geom_cor = astra.geom_2vec(proj_geom) -V = proj_geom_cor['Vectors'] -V[:,2:4] = V[:,2:4] + cor_shift * V[:,4:6] +proj_geom_cor = astra.geom_postalignment(proj_geom, cor_shift) # As before, create a sinogram from a phantom, using the shifted center of rotation import scipy.io -- cgit v1.2.3