I have volumetric data representing 3D scans of human breasts, with voxel sizes of (0.2mm, 0.073mm, 0.47mm). I need to resample this data so that all voxel sizes are the same. Is there a Python function available for resampling with interpolation?
Alternatively, I’m looking to write a custom function that achieves the following:
volume, mask, label = dataset[0]
def resample_volume(volume, pixel_sizes={'x': 0.2, 'y': 0.073, 'z': 0.475}):
# Implementation goes here
return resampled_volume