Convolve Filters
| What is a Convolution?
A convolution is one of the convex folds of the surface of the brain, and you may feel like your brain is all crinkled up by convolutions, but they are quite useful. A convolution is an image processing operation that operates by comparing neighboring pixels. Convolution filters are often encapsulated into one simple to use model called a convolution kernel that can perform a number of different functions that simulate real world effects.
|
|||||||||||||||||||||||||||||||||||||||||
![]() |
A convolution kernel is nothing more complex than a set of
values that are used to blend neighboring pixels. The group is
organized into a rectangle, here with 3 rows and 3 columns. The center value represents the center pixel, and the value it will be multiplied by. Each surrounding pixel is also multiplied by a value, and then all the pixels are added together. To 'normalize' , or to keep the final value within a usable range, it is then divided by the sum of all the values. The convolution kernel filter shown here automatically calculates the sum for us. As an option, an 'offset' value can be added. It is useful for certain times, such as when you want to have an image based around gray. There are numerous effects that can be achieved with a convolution kernel. Included are blur, sharpen, edge detect, emboss, and more. Here are just a few examples:
|
||||||||||||||||||||||||||||||||||||||||
| Gray
emboss Imparts the impression of a stone carving or chiseled look to an image.. |
![]() |
| Color emboss Embosses an image as if part of it was raised, and part recessed. |
![]() |
| Edge detect The edge detect filter determines the edges of items in an image and gives them a solid outline similar to a pencil drawing. |
![]() |
| Sobel edge detect This edge detection algorithm uses two successive convolution kernels and a Gaussian blur to determine the edges in an image, so it is smoother and more accurate than a typical edge detection. |
![]() |
| Color Sobel A color version of the Sobel algorithm |
![]() |
| Maximize The maximize filter spatially expands the lightest areas in an image. |
![]() |
| Median The median filter spatially expands the average color in an image. This filter is useful for removing isolated noisy pixels from an image or for removing noise in general. Multiple applications can also impart a painterly quality. |
![]() |
| Minimize Minimize spatially expands areas of darkness in an image. It might be used several times to create a painting like effect. |
![]() |
| MaxMin MaxMin is useful for removing isolated dark pixels from a light background. |
![]() |
| Minmax MinMax is useful for removing isolated bright pixels from a dark background. |
![]() |