quantize Function

public pure function quantize(img, n_split, maximum) result(rst)

Apply quantize

Arguments

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

Image array that has pixel values.

integer, intent(in) :: n_split

Number of split.

integer, intent(in), optional :: maximum

Max value of pixels.

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

Image array that applied quantize.