ConvolutionKernel
Returns a predefined pixmap convolution kernel.
Syntax
-
ConvolutionKernel(s)
-
s
is a string
-
Description
ConvolutionKernel(s)
returns the predefined pixmap convolution kernel named s
.
The following kernel names are recognised:
-
3×3 box blur
-
3×3 edge detector 1
-
3×3 edge detector 2
-
3×3 edge detector 3
-
3×3 edge detector 4
-
3×3 edge detector 5
-
3×3 emboss
-
3×3 Gaussian blur
-
3×3 identity
-
3×3 sharpen
-
3×3 Sobel 1
-
3×3 Sobel 2
-
5×5 box blur
-
5×5 Gaussian blur
-
5×5 unsharp masking
Examples
convolve(ExampleData("Sally"), ConvolutionKernel("5×5 Gaussian blur"))
convolve(ExampleData("Sally"), ConvolutionKernel("3×3 sharpen"))
convolve(ExampleData("Sally"), ConvolutionKernel("3×3 emboss"))
convolve(ExampleData("Sally"), ConvolutionKernel("3×3 Sobel 1") + ConvolutionKernel("3×3 Sobel 2"))