Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with using using show_geometry on a slice obtained with get_slice #1367

Closed
lauramurgatroyd opened this issue Oct 14, 2022 · 1 comment

Comments

@lauramurgatroyd
Copy link
Member

Using the seeds in a box dataset (which is conebeam):

I applied transmission to absorption conversion and then tried to get a slice and show the geometry with the following code:

data_absorption.reorder(order='tigre')
data_slice = data_absorption.get_slice(vertical='centre')
print(data_slice.geometry)
show_geometry(data_slice.geometry, data_slice.geometry.get_ImageGeometry())

fdk =  FDK(data_slice)
recon_slice = fdk.run()
show2D(recon)
printing the geometry gives:
2D Cone-beam tomography
System configuration:
	Source position: [   0.    , -261.3065]
	Rotation axis position: [0., 0.]
	Detector position: [  0.    , 850.4165]
	Detector direction x: [1., 0.]
Panel configuration:
	Number of pixels: [1000    1]
	Pixel size: [0.4 0.4]
	Pixel origin: top-right
Channel configuration:
	Number of channels: 1
Acquisition description:
	Number of positions: 1571
	Angles 0-20 in degrees:
[180.     , 179.77084, 179.54169, 179.31255, 179.08339, 178.85423,
 178.62508, 178.39592, 178.16678, 177.93762, 177.70847, 177.47931,
 177.25015, 177.02101, 176.79185, 176.5627 , 176.33354, 176.10439,
 175.87524, 175.64609]

I get the following:

image

image

@gfardell
Copy link
Member

closed by #1492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants