See Also: FAV, FED, FME, FGA, FMO, FAD, FLE, FSOBEL, FPRE, FSHARP
| Type: | Raster |
| Connection: | Mandatory |
| Minimum Layers: | 1 |
| Maximum Layers: | 1 |
Contains the input image layer to be filtered.
| Type: | Bitmap |
| Connection: | Optional |
| Minimum Layers: | 0 |
| Maximum Layers: | 1 |
Contains the input Area Mask layer, consisting of the area which should be processed. Only the area under "Mask" is written to the "Output".
| Type: | Raster |
| Connection: | Optional |
| Minimum Layers: | 0 |
| Maximum Layers: | 1 |
Contains the output image layer for the filtered result.
| Name: | WeightFile |
| Type: | Text |
| Valid Values: | <filename, max. 64 characters> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the name of the Text file or text layer number containing filter weights:
WeightFile = "filespec" | Text File WeightFile = "10" | Layer TextNOTE: If "Matrixnn" filter matrix parameters are specified, then the WeightFile parameter is ignored.
| Name: | FilterXSize |
| Type: | Integer |
| Valid Values: | 1, 3, 5, 7, 9, ..., 33 |
| Default: | 3 |
| Requirement: | Mandatory |
Specifies the filter size in units of pixels:
FilterXSize = i
| Name: | FilterYSize |
| Type: | Integer |
| Valid Values: | 3, 5, 7, 9, 11, ..., 33 |
| Default: | 3 |
| Requirement: | Mandatory |
Specifies the filter size in units of pixels:
FilterYSize = j
Matrix01 = i,j,...,p
| Name: | Matrix01 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix01" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix02 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix02" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix03 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix03" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix04 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix04" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix05 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix05" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix06 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix06" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix07 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix07" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix08 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix08" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix09 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix09" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix10 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix10" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
| Name: | Matrix11 |
| Type: | Real |
| Valid Values: | <see below> |
| Default: | <none> |
| Requirement: | Optional |
Specifies the filter matrix row element "Matrix11" (see the section "Matrixnn FILTER MATRIX PARAMETERS" above for information).
The MASK parameter specifies the area within the input layer which will be processed. Only area under mask will be filtered and the rest of the image will be unchanged. If a single value is specified, then this value points to a bitmap layer, which define the area to be filtered. When four values are specified, these values define the x,y offsets and x,y dimensions of rectangular window within the image to be filtered. If defaulted, then entire database is processed.
Filtered window 3x3 Weight values set by user.
+---------+ +---------+
|P1 P2 P3 | |M1 M2 M3 |
|P4 P5 P6 | |M4 M5 M6 |
|P7 P8 P9 | |M7 M8 M9 |
+---------+ +---------+
The resulting grey level value R for the smoothed pixel is:
R = (P1*M1 + P2*M2 + ... + P9*M9) / (M1 + M2 + ... + M9)
where:
P1 .. Pn are grey levels of each pixel in filter window
M1 .. Mn are weights (as defined by users) for each pixel
If the sum of filter weights is zero,( M1 + M2 + ... + M9 = 0), then
:
R = (P1*M1 + P2*M2 + ... + P9*M9)
Example of using filter 3x3 on database image 8x8, using Laplacian
mask Q:
+---------+
| 0 -1 0 |
|-1 5 -1 |
| 0 -1 0 |
+---------+
Image before filtering Image after filtering
8 8 9 9 9 7 6 6 6 6
+----------------+ +--------------------+
8 |8 9 9 9 7 6 6 6 | 6 | 7 10 9 13 7 5 6 6 |
8 |8 9 9 7 6 6 6 6 | 6 | 6 11 12 5 4 6 6 6 |
9 |9 8 8 6 6 6 6 6 | 6 |11 6 10 2 6 7 6 6 |
9 |9 8 7 7 6 5 6 6 | 6 |12 9 5 10 6 1 7 6 |
7 |7 7 7 6 6 6 6 6 | 6 | 6 7 9 4 6 7 6 6 |
6 |6 6 6 6 6 6 6 6 | 6 | 5 5 5 6 6 6 6 7 |
6 |6 6 6 6 6 6 6 5 | 5 | 6 6 6 6 6 6 7 1 |
6 |6 6 6 6 6 6 6 6 | 6 | 6 6 6 6 6 6 6 7 |
+----------------+ +--------------------+
6 6 6 6 6 6 6 6 6 6
Note: In the "Image before filtering" on the left, columns and
scanlines outside the box represent the last image column or
scanline being reused, for the case where the filter does not have a
full window.