crop: Return a croped image of desired size by removing pixels from...

Description Usage Arguments Value Examples

View source: R/crop.R

Description

Return a croped image of desired size by removing pixels from borders of the image

Usage

1

Arguments

image

input image as a array

width

integer desired width for new image

height

integer desired height for new image

Value

array for croped image

Examples

1
2
old_img <- array(1:24, dim = c(10, 10, 3))
croped_img <- crop(old_img, 5, 5)

UBC-MDS/Rgroup12 documentation built on April 1, 2020, 4:36 a.m.