canny_edge_detection Function

public function canny_edge_detection(img, maximum_value) result(output)

apply canny edge detection
the method is:
1. apply gaussian filtering
2. apply sobel filtering
3. non-maximum supperssion
4. edge tracking by hysteresis

Arguments

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

Image array has pixel values.

integer, intent(in) :: maximum_value

The max value of pixel.

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

Edge array