rgb_to_gray Function

public pure function rgb_to_gray(img) result(rst)

Translate rbg image to grayscale image

Arguments

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

Image array that has pixel values.

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

Translate image array.