boxKernel

Box kernel creation.

Creates square kernel of given size, filled with given value.

  1. Slice!(Contiguous, [2], T*) boxKernel(size_t rows, size_t cols, T value = 1)
  2. Slice!(Contiguous, [2], T*) boxKernel(size_t size, T value = 1)
    Slice!(Contiguous, [2], T*)
    boxKernel
    (
    T
    )
    (
    size_t size
    ,
    T value = 1
    )
    in { assert (size > 1, "Invalid kernel size - has to be larger than 1."); }

Parameters

value
Type: T

Value of elements in the kernel.

Return Value

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

Kernel of size [rows, cols], filled with given value.

Meta