Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CannyOptions

Hierarchy

Index

Properties

Optional L2gradient

L2gradient: undefined | false | true

if true a more accurate L2 norm will be used to calculate the image gradient magnitude

Optional apertureSize

apertureSize: undefined | number

aperture size for the Sobel operator.

Optional channels

channels: true | number[]

If true then all channels will be processed independently and then joined to build the result. The only exception is when there are 4 channels and in this case, if channels===true, the last 4th channel will be omitted (alpha). If an array of numbers is given then those channels will be processed only. If not given then the operation will behave normally, processing as single channel image.

Optional dst

dst: Mat

Output image. If not given it will be created. Note that you can give [src] as output image in which case the input image will be written.

src

src: Mat

Input image.

Optional threshold1

threshold1: undefined | number

first threshold for the hysteresis procedure.

Optional threshold2

threshold2: undefined | number

Observation: When this has low values flood pass through edges of color similar to the low channel

Generated using TypeDoc