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)
    Slice!(Contiguous, [2], T*)
    boxKernel
    (
    T
    )
    (
    size_t rows
    ,
    size_t cols
    ,
    T value = 1
    )
    in { assert (rows > 1 && cols > 1, "Invalid kernel size - rows, and columns have to be larger than 1."); }
  2. Slice!(Contiguous, [2], T*) boxKernel(size_t size, T value = 1)

Parameters

rows
Type: size_t

Rows, or height of kernel.

cols
Type: size_t

Columns, or width of kernel.

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