Fortran Program
Source Files
Modules
Procedures
Program
rgb_to_gray
Function
12 statements
Source File
posterization.f08
posterization
rgb_to_gray
Contents
public pure function rgb_to_gray(img) result(rst)
Translate rbg image to grayscale image
Arguments
Type
Intent
Optional
Attributes
Name
integer,
intent(in)
::
img
(:,:,:)
Image array that has pixel values.
Return Value
integer, allocatable, (:,:,:)
Translate image array.