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, Slice!(Contiguous, [2], V*) prealloc, TaskPool pool)
    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, Slice!(Contiguous, [2], V*) prealloc)

Parameters

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

Input image slice.

lowThresh T

lower threshold value after non-maxima suppression.

upThresh T

upper threshold value after non-maxima suppression.

edgeKernelType EdgeKernel

Type of edge kernel used to calculate image gradients.

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

Optional pre-allocated buffer.

pool TaskPool

TaskPool instance used parallelise the algorithm.

Meta