Learn R Programming

imager (version 0.40.2)

resize_doubleXY: Resize image uniformly

Description

Resize image by a single scale factor. For non-uniform scaling and a wider range of options, see resize.

Usage

resize_doubleXY(im)

resize_halfXY(im)

resize_tripleXY(im)

imresize(im, scale = 1, interpolation = 3)

Arguments

im

an image

scale

a scale factor

interpolation

interpolation method to use (see doc for resize). Default 3, linear.

Value

an image

Functions

  • resize_doubleXY: Double size

  • resize_halfXY: Half size

  • resize_tripleXY: Triple size

  • imresize: resize by scale factor

References

For double-scale, half-scale, triple-scale, etc. uses an anisotropic scaling algorithm described in: http://scale2x.sourceforge.net/algorithm.html.

See Also

resize

Examples

Run this code
# NOT RUN {
im <- load.example("parrots")
imresize(im,1/4) #Quarter size
liply(2:4,function(ind) imresize(im,1/ind),"x") %>%  plot
# }

Run the code above in your browser using DataLab