im_crop: Image cropping

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Image cropping

Usage

1
im_crop(im, margin)

Arguments

im

an image

margin

a numeric vector.

Value

an image

Examples

1
2
3
plot(im_crop(regatta, 100)) # crop all four sides with the same value
plot(im_crop(regatta, c(100, 50))) # vertical, horizontal
plot(im_crop(regatta, c(0, 50, 50, 200))) # top, right, bottom, left

tsuda16k/noesis documentation built on Nov. 25, 2020, 10:16 a.m.