tomosipo.geometry.ConeVectorGeometry

class tomosipo.geometry.ConeVectorGeometry(*, shape, src_pos, det_pos, det_v, det_u)[source]

Documentation for ConeVectorGeometry

A class for representing cone vector geometries.

__init__(*, shape, src_pos, det_pos, det_v, det_u)[source]

Create an arbitrarily oriented cone-beam geometry

Parameters:
  • 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.

  • src_pos – A numpy array of dimension (num_positions, 3) with the source positions in (z, y, x) order.

  • det_pos – A numpy array of dimension (num_positions, 3) with the detector center positions in (z, y, x) order.

  • det_v – A numpy array of dimension (num_positions, 3) with the vector pointing from the detector (0, 0) to (1, 0) pixel (up).

  • det_u – A numpy array of dimension (num_positions, 3) with the vector pointing from the detector (0, 0) to (0, 1) pixel (sideways).

Methods

__init__(*, shape, src_pos, det_pos, det_v, ...)

Create an arbitrarily oriented 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

angles

The angles from which projections are acquired.

corners

Returns a vector with the corners of each detector

det_normal

The detector normal vectors of the geometry.

det_pos

The detector positions of the geometry.

det_shape

The shape of the detector.

det_size

The size of the detector.

det_sizes

The size of each detector.

det_u

The detector u-vectors of the geometry.

det_v

The detector v-vectors of the geometry.

is_cone

Is this geometry a cone-beam geometry?

is_parallel

Is this geometry a parallel-beam geometry?

is_vec

Is this a vector geometry?

lower_left_corner

Returns a vector with the positions of the lower-left corner the detector

num_angles

The number of angles in the projection geometry

num_steps

The number of orientations in the geometry

ray_dir

The ray direction of the geometry.

src_pos

The source positions of the geometry.