pub fn isotropic_resample_3d_nn(
input: &[f32],
in_w: usize,
in_h: usize,
in_d: usize,
in_spacing: (f64, f64, f64),
target_spacing: f64,
out: &mut [f32],
) -> Result<(usize, usize, usize), MedicalError>Expand description
Resample a 3D volume (stacked slices) to isotropic voxel spacing.
Layout: voxels[z * in_h * in_w + y * in_w + x].
in_spacing = (sx, sy, sz). Returns (out_w, out_h, out_d).