siemens
Module contents
Utilities for handling Siemens DICOM data.
Subpackages
Submodules
dicom_parser.utils.siemens.mosaic module
Definition of the Mosaic
class that decodes the 2D encoding of 3D
volumes used by Siemens. For more information read this NiBabel article or see pages 10-12 in
here.
- class dicom_parser.utils.siemens.mosaic.Mosaic(mosaic_array: numpy.ndarray, header: dicom_parser.header.Header)
Bases:
object
A Siemens mosaic of 2D images representing a single volume.
- fold() numpy.ndarray
Folds the 2D mosaic to become a 3D volume.
- Returns
3D volume
- Return type
np.ndarray
- get_image_position(iop: numpy.ndarray) Tuple[float, float, float]
Returns a fixed Image Position (Patient) header field value.
- Parameters
iop (np.ndarray) – Image Orientation (Patient) header field value
References
- get_mosaic_dimensions() tuple
Returns the number of rows and columns that make up the mosaic.
- Returns
n_rows, n_columns
- Return type
- get_n_images() int
Returns the number of images encoded in the mosaic.
- Returns
Number of images encoded in mosaic
- Return type
- get_tile(i_row: int, i_column: int) numpy.ndarray
Cut out a tile of the mosaic by row and column indices.
- get_tiles() list
Cuts out the tiles (2D slices) from the mosaic.
- Returns
Tiles collected by row
- Return type