fn resample_nnunet(
data: &[f64],
dims: [usize; 3],
new_dims: [usize; 3],
current_spacing: [f64; 3],
new_spacing: [f64; 3],
order: usize,
) -> Vec<f64>Expand description
nnU-Net resample_data_or_seg_to_shape for one channel (non-segmentation, order_z = 0,
force_separate_z = None): a plain 3D spline resize, unless the voxels are anisotropic
(max/min spacing > 3), in which case each slice is resized in-plane with order and the
low-resolution axis with nearest-neighbour.