adaptive_threshold Function

public pure function adaptive_threshold(img, maximum, kernel_size) result(rst)

Applie adaptive threshold

Arguments

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

Image array that has pixel values.

integer, intent(in) :: maximum

Max pixel value.

integer, intent(in), optional :: kernel_size

Size of kernel.

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

Image array that applied adaptive threshold.