def data_prep_function(data, patch_centers, pixel_spacing, p_transform, p_transform_augment, **kwargs): x = data_transforms.transform_dsb_candidates(data=data, patch_centers=patch_centers, p_transform=p_transform, p_transform_augment=p_transform_augment, pixel_spacing=pixel_spacing) x = data_transforms.pixelnormHU(x) return x
def data_prep_function(data, pid, patch_centers, pixel_spacing, p_transform, p_transform_augment, **kwargs): x = data_transforms.transform_dsb_candidates( data=data, patch_centers=patch_centers, p_transform=p_transform, p_transform_augment=p_transform_augment, pixel_spacing=pixel_spacing) bins, original_borders = rescale_params_hist_eq[pid] x = data_transforms.apply_hist_eq_patch(x, bins, original_borders) x = data_transforms.hu2normHU(x) return x
def data_prep_function(data, pid, patch_centers, pixel_spacing, p_transform, p_transform_augment, **kwargs): x = data_transforms.transform_dsb_candidates(data=data, patch_centers=patch_centers, p_transform=p_transform, p_transform_augment=p_transform_augment, pixel_spacing=pixel_spacing) bins, original_borders = rescale_params_hist_eq[pid] x = data_transforms.apply_hist_eq_patch(x, bins, original_borders) x = data_transforms.hu2normHU(x) return x