Skip to main content

uncrop_volume

Function uncrop_volume 

Source
pub fn uncrop_volume<T: Copy>(data: &[T], b: &CropBox, fill: T) -> Vec<T>
Expand description

Put a cropped volume back into a full-grid volume, filling everything outside the box with fill (zero for field maps and χ, which are undefined outside the mask anyway).

§Panics

If data does not match the box’s dims.