resize_doubleXY | R Documentation |
Resize image by a single scale factor. For non-uniform scaling and a wider range of options, see resize.
resize_doubleXY(im)
resize_halfXY(im)
resize_tripleXY(im)
imresize(im, scale = 1, interpolation = 3)
im |
an image |
scale |
a scale factor |
interpolation |
interpolation method to use (see doc for resize). Default 3, linear. Set to 5 for cubic, 6 for Lanczos (higher quality). |
an image
resize_doubleXY()
: Double size
resize_halfXY()
: Half size
resize_tripleXY()
: Triple size
imresize()
: resize by scale factor
Simon Barthelme
For double-scale, triple-scale, etc. uses an anisotropic scaling algorithm described in: http://www.scale2x.it/algorithm.html. For half-scaling uses what the CImg doc describes as an "optimised filter", see resize_halfXY in CImg.h.
resize
im <- load.example("parrots")
imresize(im,1/4) #Quarter size
map_il(2:4,~ imresize(im,1/.)) %>% imappend("x") %>% plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.