Description Usage Arguments Value Note See Also Examples
This function shrinks an image using the average and returns a new image.
1 | imgAverageShrink(imgdata, x_scale, y_scale)
|
imgdata |
The image |
x_scale |
The horizontal scale factor |
y_scale |
The vertical scale factor |
return an imagedata object
The scale factors are expected to be less than 1.
imgMedianShrink
imgNearestNeighborScale
imgBilinearScale
imgCubicScale
1 2 3 4 5 | ## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
y <- imgAverageShrink(x, 0.5, 0.5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.