Module Binary Erosion-Reconstruction
Common binary Opening does not guarantee, that foreground regions which outlast the erosion step are reconstructed to their original shape in the dilation step. Depending on the application, that might be considered as a deficiency. Therefore this module provides a combination of erosion with the binary Geodesic Morphological Reconstruction, see
L. Vincent (1993): Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms. IEEE Transactions on Image Processing, Vol. 2, No 2
Here we use the algorithm on p. 194: Breadth-first Scanning.
The marker is defined as the eroded INPUT_GRID, whereas the mask is just the INPUT_GRID itself. OUTPUT_GRID is the reconstruction of the marker under the mask.
- Author: HfT Stuttgart (c) 2013
- Specification: grid
- Menu: Grid|Filter
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Input Grid | Grid (input) | INPUT_GRID | Grid to be filtered | - |
Output | Output Grid | Grid (output) | OUTPUT_GRID | Reconstruction result | - |
Options | Filter Size (Radius) | Integer | RADIUS | Filter size (radius in grid cells) | Default: 3 |
Command-line
Usage: saga_cmd grid_filter 13 -INPUT_GRID <str> [-OUTPUT_GRID <str>] [-RADIUS <num>]
-INPUT_GRID:<str> Input Grid
Grid (input)
-OUTPUT_GRID:<str> Output Grid
Grid (output)
-RADIUS:<num> Filter Size (Radius)
Integer
Default: 3