tomosipo.parallel_vec

tomosipo.parallel_vec(*, shape, ray_dir, det_pos, det_v, det_u)[source]

Create an arbitrarily oriented parallel-beam geometry

Parameters:
  • shape (int | Tuple[int, int] | Iterable[int]) – 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.

  • ray_dir (Tuple[float, float, float] | Iterable[Tuple[float, float, float]] | ndarray) – A numpy array of dimension (num_positions, 3) with the ray direction in (Z, Y, X) order.

  • det_pos (Tuple[float, float, float] | Iterable[Tuple[float, float, float]] | ndarray) – A numpy array of dimension (num_positions, 3) with the detector center positions in (Z, Y, X) order.

  • det_v (Tuple[float, float, float] | Iterable[Tuple[float, float, float]] | ndarray) – A numpy array of dimension (num_positions, 3) with the vector pointing from the detector (0, 0) to (1, 0) pixel (up).

  • det_u (Tuple[float, float, float] | Iterable[Tuple[float, float, float]] | ndarray) – A numpy array of dimension (num_positions, 3) with the vector pointing from the detector (0, 0) to (0, 1) pixel (sideways).

Returns:

An arbitrarily oriented parallel-beam geometry

Return type:

ParallelVectorGeometry