dicom_to_cnn.tools.pre_processing package¶
Submodules¶
dicom_to_cnn.tools.pre_processing.array_convertor module¶
dicom_to_cnn.tools.pre_processing.convert_format module¶
dicom_to_cnn.tools.pre_processing.series module¶
dicom_to_cnn.tools.pre_processing.threshold_mask module¶
- dicom_to_cnn.tools.pre_processing.threshold_mask.threshold_matrix(mask_array: numpy.ndarray, pet_array: numpy.ndarray, threshold: float) numpy.ndarray¶
function to threshold a ndarray mask
- Args:
mask_array (np.ndarray): [(z,x,y,c)] pet_array (np.ndarray): [(z,x,y)] threshold (float): [0.41, 2.5, 4.0 or other]
- Returns:
[ndarray]: [threshold mask]