gamma_correction Function

public pure function gamma_correction(img, maximum_value, g) result(translated)

Apply gamma correction

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: img(:,:,:)

Image array has pixel values.

integer, intent(in) :: maximum_value

The max value of pixels.

real, intent(in) :: g

Gamma value.

Return Value integer, allocatable, (:,:,:)

The image applied gamma correction.