dbdicom.extensions.vreg.apply_sbs_passive_rigid_transformation#
- dbdicom.extensions.vreg.apply_sbs_passive_rigid_transformation(series_moving: Series, parameters: ndarray, description=None) Series [source]#
Apply slice-by-slice passive rigid transformation of an image volume.
Passive in this context means that the coordinates are transformed rather than the image array itself.
- Parameters:
series_moving (dbdicom.Series) – Series containing the volune to be moved.
parameters (np.ndarray) – 6-element numpy array with values of the translation (first 3 elements) and rotation vector (last 3 elements) that map the moving volume on to the static volume. The list contains one entry per slice, ordered by slice location. The vectors are defined in an absolute reference frame in units of mm.
- Raises:
ValueError – If the moving series contains multiple slice groups with different orientations.
ValueError – If the array to be moved is empty.
- Returns:
Sibling dbdicom series in the same study, containing the translated volume.
- Return type:
dbdicom.Series