Interface CannyEdgeOptions

interface CannyEdgeOptions {
    gaussianBlurOptions?: GaussianBlurOptions;
    highThreshold?: number;
    hysteresis?: boolean;
    lowThreshold?: number;
    out?: Mask;
}

Properties

gaussianBlurOptions?: GaussianBlurOptions

Standard deviation of the gaussian blur (sigma). Value must be between 0 and 1.

Default

{ sigma: 1 }

highThreshold?: number

Higher threshold of the gaussian blur (indicates the strong edges to keep). Value must be between 0 and 1.

Default

0.1

hysteresis?: boolean

Enable/ disable hysteresis steps.

Default

true

lowThreshold?: number

Lower threshold of the gaussian blur (indicates the weak edges to discard).

Default

0.04

out?: Mask

Image to which the resulting image has to be put.