dicomifier.dicom_to_nifti.stacks#
- class dicomifier.dicom_to_nifti.stacks.OrientationGetter#
Return the ideal orientation of a data set, i.e. allow small variations in the actual orientation.
- property orientations#
- dicomifier.dicom_to_nifti.stacks.frame_group_index_getter(data_set, tag)#
Return bruker_to_dicom-specific frame group information.
- dicomifier.dicom_to_nifti.stacks.ge_complex_image_component_getter(data_set, tag)#
Return GE-specific Complex Image Component data.
- dicomifier.dicom_to_nifti.stacks.ge_diffusion_getter(data_set, tag)#
Return GE-specific diffusion data.
- dicomifier.dicom_to_nifti.stacks.get_diffusion(data_set, tag)#
Get b-value and gradient diffusion from the data_set.
- dicomifier.dicom_to_nifti.stacks.get_dimension_index(data_set, tag, in_stack_position_index)#
Return the dimension index pointer without InStackPosition in order to find the different volumes
- Parameters:
in_stack_position_index – index of the In Stack Position element within the Dimension Index tuple
- dicomifier.dicom_to_nifti.stacks.get_frame_position(data_set, frame_index)#
Get the position of the specified frame.
- dicomifier.dicom_to_nifti.stacks.get_in_stack_position_index(data_set)#
Return the position of In Stack Position element inside the Dimension Index.
- dicomifier.dicom_to_nifti.stacks.get_stacks(data_sets, extra_splitters=None)#
Return the stacks contained in the data sets. The result is a dictionary in which the values are pairs of (data_set, frame_index) (in the case of single-frame data sets, frame_index is None), and in which the keys are tuples of selectors. In this context, a selector is defined as a pair of (group sequence, group, tag) (group sequence and group being None for single-frame data sets), and a value.
- Parameters:
data_sets – list of dicom data sets
extra_splitters – additional splitters to be used when building stacks
- dicomifier.dicom_to_nifti.stacks.siemens_coil_getter(data_set, tag)#
Return Siemens-specific coil identifier.
- dicomifier.dicom_to_nifti.stacks.sort(key, frames)#
Sort the frames of a stack according to the items present in the stack key.