tomosipo.volume_vec
- tomosipo.volume_vec(*, shape, pos=0, w=(1, 0, 0), v=(0, 1, 0), u=(0, 0, 1))[source]
Create an arbitrarily oriented volume geometry
Like the parallel and cone vector geometries, the volume vector geometry can be arbitrarily oriented and positioned.
The position describes the center of the volume. The vectors w, v, u describe the coordinate frame of a single voxel, just like u and v do for detector pixels of vector projection geometries.
- Parameters:
shape (
int|Tuple[int,int,int] |Iterable[int]) – The shape of the volume in voxels.pos (
float|Tuple[float,float,float] |Iterable[Tuple[float,float,float]] |ndarray) – A numpy array of dimension (num_steps, 3) describing the center of the volume in world-coordinates (z, y, x). You may also pass a 3-tuple or a scalar.w (
Tuple[float,float,float] |Iterable[Tuple[float,float,float]] |ndarray) – A numpy array of dimension (num_steps, 3) describing the w basis element in (z, y, x) coordinates. Default is (1, 0, 0).v (
Tuple[float,float,float] |Iterable[Tuple[float,float,float]] |ndarray) – A numpy array of dimension (num_steps, 3) describing the v basis element in (z, y, x) coordinates. Default is (0, 1, 0).u (
Tuple[float,float,float] |Iterable[Tuple[float,float,float]] |ndarray) – A numpy array of dimension (num_steps, 3) describing the u basis element in (z, y, x) coordinates. Default is (0, 0, 1).
- Returns:
VolumeVectorGeometry – An arbitarily oriented volume geometry.