Skip to main content

crop_volume_with

Function crop_volume_with 

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

Copy the box out of a full-grid volume, filling anything outside the grid with fill.

§Panics

If data does not match the box’s full_dims.