Interface ErodeOptions

interface ErodeOptions {
    iterations?: number;
    kernel?: number[][];
}

Properties

Properties

iterations?: number

Number of iterations of the algorithm.

Default

1

kernel?: number[][]

Matrix with odd dimensions (e.g. 1 by 3). The kernel can only have ones and zeros. Accessing a value: kernel[row][column].

Default

[[1, 1, 1], [1, 1, 1], [1, 1, 1]]