brightness_translation Function

public pure function brightness_translation(img, shift, maximum_value) result(translated)

Apply brightness transition

Arguments

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

Image array has pixel value.

integer, intent(in) :: shift

Shift width.

integer, intent(in), optional :: maximum_value

Max value to truncate. default to 255.

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

The image applied brightness transition.