otsu Function

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

Applie binarization with ostu's method.

Arguments

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

Image array that has pixel values.

integer, intent(in) :: maximum

Max pixel value.

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

Image Array that applied binarization.