tomosipo.geometry.ConeGeometry
- class tomosipo.geometry.ConeGeometry(angles=1, shape=1, size=None, src_orig_dist=None, src_det_dist=None)[source]
A parametrized circular cone-beam geometry
- __init__(angles=1, shape=1, size=None, src_orig_dist=None, src_det_dist=None)[source]
Create a circular cone-beam geometry
- Parameters:
angles –
If integral value: the number of angles in the cone-beam geometry. This describes a full arc (2 pi radians) with uniform placement and without the start and end point overlapping.
If np.ndarray: the values of the array are taken as projection angle (units are radians).
shape – The detector shape in pixels. If tuple, the order is (height, width). Else the pixel has the same number of pixels in the u and v direction.
size –
The detector size. If a single float is provided, the detector is square with equal width and height.
The order is (height, width), i.e. (v, u).
cone_angle – The fraction det_height / src_det_dist. If provided, src_orig_dist and src_det_dist need not be provided. The detector is placed on the origin.
src_orig_dist – The source to origin distance.
src_det_dist – The source to detector distance.
Methods
__init__([angles, shape, size, ...])Create a circular cone-beam geometry
from_astra()project_point(point)Projects point onto detectors
rescale_det(scale)Rescale detector pixels
reshape(new_shape)Reshape detector pixels without changing detector size
to_astra()Convert geometry to astra geometry
to_vec()Return a vector geometry of the current geometry
to_vol()Returns a volume vector geometry representing the detector
Attributes
anglesThe angles from which projections are acquired.
cornersReturns a vector with the corners of each detector
det_normalThe detector normal vectors of the geometry.
det_posThe detector positions of the geometry.
det_shapeThe shape of the detector.
det_sizeThe size of the detector.
det_sizesThe size of each detector.
det_uThe detector u-vectors of the geometry.
det_vThe detector v-vectors of the geometry.
is_coneIs this geometry a cone-beam geometry?
is_parallelIs this geometry a parallel-beam geometry?
is_vecIs this a vector geometry?
lower_left_cornerReturns a vector with the positions of the lower-left corner the detector
num_anglesThe number of angles in the projection geometry
num_stepsThe number of orientations in the geometry
ray_dirThe ray direction of the geometry.
src_det_distThe source to detector distance
src_orig_distThe source to object distance
src_posThe source positions of the geometry.