Skip to main content

center_crop_2d

Function center_crop_2d 

Source
pub fn center_crop_2d(
    input: &ArrayD<f64>,
    crop_h: usize,
    crop_w: usize,
) -> Result<ArrayD<f64>, AugmentationError>
Expand description

Center crop: crop [crop_h, crop_w] from the center of the last two spatial dims.