Custom Filter


The Custom Filter command convolves a user-specified filter kernel with an Image Set or a single image. The filter kernel may be any size you specify and a given kernel may also be rotated and normalized. The kernel description may be saved as a profile and recalled from the list of kernels at some future time.

A filter kernel is specified by its width, height, and kernel values. The kernel values are actually weights to be applied to the pixels in the neighborhood of each target pixel when the filter is applied to an image. The example above shows one case of an embossing filter which gives the 3-D appearance of topographic relief.

Filter

Selects the filter by name. This is a Profile containing all the parameter settings for filters you have saved.

Filter Weights

The weight for each element of the filter kernel. After entering weights, you can normalize the filter to unit weight by clicking the [Normalize] button.

Width

Sets the number of columns in the filter grid.

Height

Sets the number of rows in the filter grid.

Angle

Specifies a rotation of the weights entered into the dialog. Use this to rotate the filter kernel without calculating new weights. For example, consider the filter typed into the sample dialog above,. This shows a 3x3 gradient filter pointed toward the right. Applying this filter produces an image containing the "east gradient". Setting Angle = 90 would change this to a North or South oriented gradient without having to recalculate or retype the 9 weights in the dialog.

Normalize

The Normalize check box normalizes the filter to have a sum of all weights equal to 1.0. Another way to say this is that it causes the filter kernel to be scaled to unit volume underneath the weight profile.

Use Cursor ROI

If you check this item, only the region inside the Image Cursor is filtered.

The [Normalize] button changes the kernel values in the weight grid. When you click this button, all kernel values are summed to produce a normalization constant which is then divided into all kernel entries. The result is a kernel for which all weights sum to 1.0. Use normalization when the filter should preserve the signal level. A filter like the embossing filter example show here does not use normalization. In fact, the sum of kernel weights for this filter is 0.0.

Related Topics

3x3 Custom Filter, Spatial Filters