Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EdgeOptions

Hierarchy

Index

Properties

Optional borderType

borderType: BorderTypes

border mode used to extrapolate pixels outside of the image, see [BorderTypes].

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 ddepth

ddepth: undefined | number

the output image dept. (-1 to use src.depth()).

Optional delta

delta: undefined | number

Optional delta value that is added to the results prior to storing them in dst .

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.

Optional dx

dx: undefined | number

Applies only for Scharr and Sobel (and are mandatory in that case). Also must less than 3

Optional dy

dy: undefined | number

Applies only for Scharr and Sobel (and are mandatory in that case)

ksize

Transformation (blurring) kernel size. In general only odd numbers greater than 2 are accepted.

Optional scale

scale: undefined | number

Optional scale factor for the computed Laplacian values. By default, no scaling is applied. See getDerivKernels for details.

src

src: Mat

Input image.

type

type: "sobel" | "scharr" | "laplacian"

Generated using TypeDoc