Interface: ConvolutionFilterOptions

ConvolutionFilterOptions

Options for the ConvolutionFilter constructor.

Properties:
Name Type Default Description
height number 200

Height of the object you are transforming

matrix ConvolutionMatrix [0,0,0,0,0,0,0,0,0]

An array of values used for matrix transformation, specified as a 9 point Array

width number 200

Width of the object you are transforming

Members

height number

Height of the object you are transforming

Default Value:
  • 200

matrix ConvolutionMatrix

An array of values used for matrix transformation, specified as a 9 point Array

Default Value:
  • [0,0,0,0,0,0,0,0,0]
Example
const matrix = new Float32Array(9); // 9 elements of value 0
const matrix = [0,0.5,0,0.5,1,0.5,0,0.5,0];

width number

Width of the object you are transforming

Default Value:
  • 200