SeparableKernel class

A kernel object to use with separableConvolution filtering.

Constructors

SeparableKernel(int size)
Create a separable convolution kernel for the given radius.

Properties

coefficients List<num>
final
hashCode int
The hash code for this object.
no setterinherited
length int
Get the number of coefficients in the kernel.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
final

Methods

apply(Image src, Image dst, {bool horizontal = true}) → void
Apply the kernel to the src image, storing the results in dst, for a single dimension. If [horizontal is true, the filter will be applied to the horizontal axis, otherwise it will be appied to the vertical axis.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scaleCoefficients(num s) → void
Scale all of the coefficients by s.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) num
Get a coefficient from the kernel.
operator []=(int index, num c) → void
Set a coefficient in the kernel.