Interface CorrectBackgroundOptions

interface CorrectBackgroundOptions {
    background: Point[];
    backgroundKind?: "dark" | "light";
    order?: number;
}

Properties

background: Point[]

Param: background

Points that are considered the background of an image.

backgroundKind?: "dark" | "light"

Checks if the image background is light or dark. If the background is light, the output image will be inverted.

Default

'light'

order?: number

Param: order

Order of regression function.

Default

2