Interface CloseOptions

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

Properties

Properties

iterations?: number

Number of iterations of the algorithm.

Default

1

kernel?: number[][]

3x3 matrix. The kernel can only have ones and zeros. Accessing a value: kernel[row][column].

Default

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