Skip to main content

crop_volume

Function crop_volume 

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

Copy the box out of a full-grid volume.

§Panics

If data does not match the box’s full_dims.