gamma_correction: Gamma correction

View source: R/open_image_rscript.R

gamma_correctionR Documentation

Gamma correction

Description

Gamma correction

Usage

gamma_correction(image, gamma)

Arguments

image

matrix or 3-dimensional array where the third dimension is equal to 3

gamma

a positive value

Details

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

Value

depending on the input, either a matrix or an array

Author(s)

Lampros Mouselimis

Examples


path = system.file("tmp_images", "2.jpg", package = "OpenImageR")

image = readImage(path)

filt = gamma_correction(image, gamma = 0.5)


OpenImageR documentation built on July 9, 2023, 5:43 p.m.