Learn R Programming

OpenImageR (version 1.1.7)

gamma_correction: Gamma correction

Description

Gamma correction

Usage

gamma_correction(image, gamma)

Arguments

image

matrix or 3-dimensional array

gamma

a positive value

Value

depending on the input, either a matrix or an array

Details

This function applies gamma correction to a matrix or to a 3-dimensional array. The gamma correction controls the overall brightness of an image.

Examples

Run this code
# NOT RUN {
path = system.file("tmp_images", "2.jpg", package = "OpenImageR")

image = readImage(path)

filt = gamma_correction(image, gamma = 0.5)

# }

Run the code above in your browser using DataLab