Make histogram
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | layer(:,:) |
The layer of image. |
||
integer, | intent(in) | :: | maximum |
Max value of pixels. |
Histgram array.
Apply binarization
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | img(:,:,:) |
Image array that has pixel values. |
||
integer, | intent(in) | :: | threshold |
Threshold |
Image array that applied binarization.
Applie binarization with ostu's method.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | img(:,:,:) |
Image array that has pixel values. |
||
integer, | intent(in) | :: | maximum |
Max pixel value. |
Image Array that applied binarization.
Applie adaptive threshold
Type | Intent | Optional | 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. |
Image array that applied adaptive threshold.
Apply quantize
Type | Intent | Optional | 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. |
Image array that applied quantize.
Apply dither translation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | img(:,:,:) |
Image array that has pixel values. |
||
integer, | intent(in) | :: | maximum |
Max value of pixels. |
Image array that applied dither.
Apply error diffusion
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | img(:,:,:) |
Image array that has pixel values. |
||
integer, | intent(in) | :: | maximum |
Max value of pixels. |
Image array that applied error diffusion.
Translate rbg image to grayscale image
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | img(:,:,:) |
Image array that has pixel values. |
Translate image array.