nonMaximaSupression

Edge detection impulse non-maxima supression.

Filtering used in canny edge detection algorithm - suppresses all edge impulses (gradient values along edges normal) except the peek value.

Slice!(Contiguous, [2], V*)
nonMaximaSupression
(
InputTensor
V = DeepElementType!InputTensor
)
(
InputTensor mag
,
InputTensor orient
,
Slice!(Contiguous, [2], V*) prealloc = emptySlice!([2], V)
,
TaskPool pool = taskPool
)

Parameters

mag InputTensor

Gradient magnitude.

orient InputTensor

Gradient orientation of the same image source as magnitude.

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

Optional pre-allocated buffer for output slice.

pool TaskPool

TaskPool instance used parallelise the algorithm.

Note: Orientation and pre-allocated structures must match. If prealloc buffer is not given, orient memory has to be contiguous. See: dcv.imgproc.filter.calcGradients, dcv.imgproc.convolution

Meta