resample: Resampling of an image

Description Usage Arguments Value Examples

View source: R/resample.R

Description

Resampling of an image

Usage

1
resample(im, L = 1, L1 = L, L2 = L)

Arguments

im

cimg object

L

numeric indicating the overall scale change. This parameter will be override by L1 or L2

L1, L2

numeric indicating the directional scale change

Value

A resampled cimg object

Examples

1
2
3
4
im <- lenna
par(mfrow = c(1,2), mar = rep(0,4)+0.1)
plot(im, axes = FALSE, interp = FALSE)
plot(resample(im, 1/4), axes = FALSE, interp = FALSE)

redR documentation built on May 2, 2019, 3:47 p.m.

Related to resample in redR...