Crop: Crop

Description Usage Arguments Value Examples

View source: R/Crop.R

Description

Crop image to desired size

Usage

1
Crop(img, height, width)

Arguments

img

—-Array, input image array

height

—-Int, height of the desired image

width

—-Int, width of the desired image

Value

The cropped image

Examples

1
2
img <- array(runif(1000),dim=c(10,10,3))
Crop(img, 8,8)

UBC-MDS/ImgHelpR documentation built on Feb. 13, 2022, 2:20 a.m.