medianFilter

Median filtering algorithm.

Slice!(Contiguous, packs, O*)
medianFilter
(
alias BoundaryConditionTest = neumann
T
O = T
SliceKind kind
size_t[] packs
)
(
Slice!(kind, packs, T*) slice
,
size_t kernelSize
,
Slice!(Contiguous, packs, O*) prealloc = emptySlice!(packs, O)
,
TaskPool pool = taskPool
)

Parameters

slice Slice!(kind, packs, T*)

Input image slice.

kernelSize size_t

Square size of median kernel.

prealloc Slice!(Contiguous, packs, O*)

Optional pre-allocated return image buffer.

pool TaskPool

Optional TaskPool instance used to parallelize computation.

Return Value

Type: Slice!(Contiguous, packs, O*)

Returns filtered image of same size as the input. If prealloc parameter is not an empty slice, and is of same size as input slice, return value is assigned to prealloc buffer. If not, newly allocated buffer is used.

Meta