Custom Filter Kernel


The Custom Filter Kernel command convolves a user-specified filter kernel. The filter kernel contains numeric weights to be applied to values in the neighborhood of each target pixel. The filter kernel is defined by its width, height, and kernel values entered into a grid. The kernel values are actually weights applied to pixels in the neighborhood of each target pixel of the image. The kernel may be any size you specify and a given kernel may also be normalized to a "volume" of 1.0 without typing in normalized weights.

Custom Filter Properties

Profile [|>]

Selects the parameter profile for this command and allows you to save or work with existing presets.

[Select]

Opens the Select Source Images dialog to choose images from an image window, folder, files, name template, or a Mira File List.

Custom Filter Kernel

This group specified the properties of the kernel. Enter the filter width, height, and weights.

 

Width

Sets the number of columns in the filter grid.

 

Height

Sets the number of rows in the filter grid.

 

(Weights)

Specify 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.

[Normalize]

Click this button to normalize the filter weights so the sum of weights is 1.0.

Source Region

Specifies the rectangular region to be processed. The options are as follows:

Entire image

The entire image is processed.

Image Cursor

The region to be processed is selected using the Image Cursor.

Rectangle

The region specified by Min and Max limits for Column and Row coordinates is processed.

Column and Row, Min and Max

When Rectangle is selected, these values specify the column and row limits to be processed.

Normalizing the Kernel

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

Spatial Filter Commands

Custom 3x3 Filter


Mira Pro x64 User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.