dicom_parser.utils.siemens package¶
Subpackages¶
Submodules¶
dicom_parser.utils.siemens.mosaic module¶
Defines 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_mosaic_dimensions
() → tuple¶ Returns the number of rows and columns that make up the mosaic.
- Returns
n_rows, n_columns
- 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
-
dicom_parser.utils.siemens.private_tags module¶
Siemens specific private tags they may not be accessible by keyword using pydicom.
Parses a SIEMENS MR image’s B-vector as represented in the private (0019, 100E) DiffusionGradientDirection DICOM tag.
Parses a SIEMENS MR image’s slice timing as saved in the private (0019, 1029) MosaicRefAcqTimes tag to a list of floats representing slice times in milliseconds.