r_gamma {biOps}R Documentation

Gamma correct an image

Description

This function applies gamma operation to a given image. Each pixel value is taken to the inverse of gamma_value-th exponent

Usage

r_gamma(imgdata, gamma_value)

Arguments

imgdata The image
gamma_value A non negative value representing operation gamma value

Value

return an imagedata object

Note

This is the R implementation of imgGamma.

See Also

imgGamma

Examples

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

[Package biOps version 0.2.1 Index]