r_dec_intensity: Decrease intensity

Description Usage Arguments Value Note See Also Examples

Description

This function decreases an image intensity by a given factor.

Usage

1
r_dec_intensity(imgdata, percentage)

Arguments

imgdata

The image

percentage

A non negative value representing the intensity percentage to be decreased. 1 stands for 100% (eg. 0.5 = 50%).

Value

return an imagedata object

Note

This is the R implementation of imgDecreaseIntensity.

See Also

imgDecreaseIntensity imgIncreaseIntensity r_inc_intensity

Examples

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

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