Learn R Programming

redR (version 1.0.1)

resample: Resampling of an image

Description

Resampling of an image

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab