imgAverageShrink {biOps} | R Documentation |
This function shrinks an image using the average and returns a new image.
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
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) y <- imgAverageShrink(x, 0.5, 0.5) ## End(Not run)