canny

Perform canny filtering on an image to expose edges.

  1. Slice!(Contiguous, [2], V*) canny(Slice!(kind, [2], T*) slice, T lowThresh, T upThresh, EdgeKernel edgeKernelType = EdgeKernel.SOBEL, Slice!(Contiguous, [2], V*) prealloc = emptySlice!([2], V), TaskPool pool = taskPool)
    Slice!(Contiguous, [2], V*)
    canny
    (
    V
    T
    SliceKind kind
    )
    (
    Slice!(kind, [2], T*) slice
    ,,,,
    Slice!(Contiguous, [2], V*) prealloc = emptySlice!([2], V)
    ,
    TaskPool pool = taskPool
    )
  2. Slice!(Contiguous, [2], V*) canny(Slice!(kind, [2], T*) slice, T thresh, EdgeKernel edgeKernelType = EdgeKernel.SOBEL, Slice!(Contiguous, [2], V*) prealloc = emptySlice!([2], V))

Parameters

slice
Type: Slice!(kind, [2], T*)

Input image slice.

lowThresh
Type: T

lower threshold value after non-maxima suppression.

upThresh
Type: T

upper threshold value after non-maxima suppression.

edgeKernelType

Type of edge kernel used to calculate image gradients.

prealloc
Type: Slice!(Contiguous, [2], V*)

Optional pre-allocated buffer.

pool
Type: TaskPool

TaskPool instance used parallelise the algorithm.

Meta