Skip to main content

crop_pad

Function crop_pad 

Source
pub(crate) fn crop_pad<T: Copy + Default>(
    x: &[T],
    dims: (usize, usize, usize),
    crop: &[(usize, usize, usize); 3],
) -> Vec<T>
Expand description

Copy the crop box of x (on dims) into a zero grid of the padded size, FRAME_OFFSET voxels in along each axis.