imgAverageShrink: Shrink an image

Description Usage Arguments Value Note See Also Examples

Description

This function shrinks an image using the average and returns a new image.

Usage

1
imgAverageShrink(imgdata, x_scale, y_scale)

Arguments

imgdata

The image

x_scale

The horizontal scale factor

y_scale

The vertical scale factor

Value

return an imagedata object

Note

The scale factors are expected to be less than 1.

See Also

imgMedianShrink imgNearestNeighborScale imgBilinearScale imgCubicScale

Examples

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)

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.