dbdicom.extensions.vreg.apply_sbs_translation#

dbdicom.extensions.vreg.apply_sbs_translation(series_moving: Series, parameters: ndarray, target: Series | None = None) Series[source]#

Apply slice-by-slice translation of an image volume.

Parameters:
  • series_moving (dbdicom.Series) – Series containing the volune to be moved.

  • parameters (np.ndarray) – list of 3-element numpy arrays with values of the translation that maps the moving volume onto the static volume. The list has one entry per slice of the volume.

  • target (dbdicom.Series, optional) – If provided, the result is mapped onto the geometry of this series. If none is provided, the result has the same geometry of the moving series. Defaults to None.

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