r_gamma: Gamma correct an image

Description Usage Arguments Value Note See Also Examples

Description

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

Usage

1
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

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

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