feConvolveMatrix | R Documentation |
A convolution combines pixels in the input image with neighbouring pixels to produce a resulting image. A wide variety of imaging operations can be achieved through convolutions, including blurring, edge detection, sharpening, embossing and beveling.
feConvolveMatrix(input = NA, order = 3,
kernelMatrix = matrix(),
divisor = 1, bias = 0,
targetX = 1, targetY = 1,
edgeMode = c("duplicate", "wrap", "none"),
kernelUnitLength = NA, preserveAlpha = FALSE,
...)
input |
Identifies an input for this filter primtive. See
|
order |
A numeric vector of length 1 or 2. Indicates the number of cells in
each dimension for |
kernelMatrix |
The kernel matrix for the convolution. The number of entries must
correspond with the values given by |
divisor |
After applying the |
bias |
After applying the |
targetX |
Determines the positioning in X of the convolution matrix relative
to a given target pixel in the input image. The leftmost column of
the matrix is column number zero. The value must be such that:
|
targetY |
Determines the positioning in Y of the convolution matrix relative
to a given target pixel in the input image. The topmost row of the
matrix is row number zero. The value must be such that: |
edgeMode |
Determines how to extend the input image as necessary with colour values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.
|
kernelUnitLength |
The first number is the |
preserveAlpha |
A value of A value of |
... |
Further arguments to be passed onto |
For more information about this primitive, consult the reference to the SVG specification.
An fe.convolve.matrix
object.
Simon Potter
https://www.w3.org/TR/SVG/filters.html#feConvolveMatrixElement
filterEffect
, fe
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.