imgGamma {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

imgGamma(imgdata, gamma_value)

Arguments

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

Value

return an imagedata object

See Also

r_gamma

Examples

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

[Package biOps version 0.2.1 Index]