imgMedianShrink {biOps}R Documentation

Shrink an image

Description

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

Usage

imgMedianShrink(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

imgAverageShrink imgNearestNeighborScale imgBilinearScale imgCubicScale

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                y <- imgMedianShrink(x, 0.5, 0.5)
        
## End(Not run)

[Package biOps version 0.2.1 Index]