tomosipo.cone_vec
- tomosipo.cone_vec(*, shape, src_pos, det_pos, det_v, det_u)[source]
Create an arbitrarily oriented cone-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.src_pos (
Tuple[float,float,float] |Iterable[Tuple[float,float,float]] |ndarray) – A numpy array of dimension (num_positions, 3) with the source positions 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 cone-beam geometry
- Return type: