resample: Resampling of an image

Description Usage Arguments Value Examples

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)

coldfir3/RED documentation built on May 8, 2019, 10:52 p.m.