dither Function

public pure function dither(img, maximum) result(rst)

Apply dither translation

Arguments

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

Image array that has pixel values.

integer, intent(in) :: maximum

Max value of pixels.

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

Image array that applied dither.