powered by
Resampling of an image
resample(im, L = 1, L1 = L, L2 = L)
cimg object
cimg
numeric indicating the overall scale change. This parameter will be override by L1 or L2
numeric indicating the directional scale change
A resampled cimg object
# 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