im_resize: Resize image

Description Usage Arguments Value Examples

View source: R/utils.R

Description

If either height or width is given, the other is determined to keep the aspect ratio of image.

Usage

1
im_resize(im, height, width, interpolation = 1)

Arguments

im

an image

height

image height

width

image width

interpolation

Interpolation method. Either 0 (nearest-neighbor), 1 (linear), or 2 (cubic).

Value

an image

Examples

1
2
3
4

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