16.17 Special Filter
Description
The specialflt2 X-Function applies a predefined filter to an input matrix. Predefined filters are:
- Average
- Horizontal Prewitt
- Vertical Prewitt
- Horizontal Sobel
- Vertical Sobel
For user-interface access to this function:
- Create a new matrix with input data.
- Activate the matrix.
- Select Analysis: Mathematics: Special Filter. This opens the specialflt2 dialog box.
Dialog Options
| Input Matrix |
The input Matrix. |
|---|---|
| Output Matrix |
The output matrix. |
| Special filter |
Filter to be applied.
|
| Padding Option |
How to pad cells outside matrix borders.
|
Algorithm
Supplied derivative filters:
Average filter:
Horizontal Prewitt filter:
Vertical Prewitt filter:
Horizontal Sobel filter:
Vertical Sobel filter:
When applying a filter to the edge of the source matrix, some part of the filter may lie outside the source matrix boundary. When this occurs, the user can opt to pad the area outside the source matrix with zeros (Zero Padding), by reflection padding (Map Padding), or repeating edge values (Repeat Padding).