Tool Geodesic Morphological Reconstruction
Geodesic morphological reconstruction according to
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: Computing of Regional Maxima and Breadth-first Scanning.
A marker is derived from the input image INPUT_GRID by subtracting a constant SHIFT_VALUE. Optionally the SHIFT_VALUE can be set to zero at the border of the grid ("Preserve 1px border Yes/No"). OUTPUT_GRID is the difference between the input image and the morphological reconstruction of the marker under the input image as mask. If the Option "Create a binary mask" is selected, the OUTPUT_GRID is thresholded with THRESHOLD, creating a binary image of maxima regions.
- Author: HfT Stuttgart (c) 2013
- Menu: Grid|Filter
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Input Grid | Grid (input) | INPUT_GRID | Input for the morphological reconstruction | - |
Output | Object Grid | Grid (output) | OBJECT_GRID | Binary object mask | - |
Difference Input - Reconstruction | Grid (output) | DIFFERENCE_GRID | Difference Input - Reconstruction | - |
Options | Grid system | Grid system | PARAMETERS_GRID_SYSTEM | - | - |
Shift value | Floating point | SHIFT_VALUE | Shift value | Default: 5.000000 |
Preserve 1px border Yes/No | Boolean | BORDER_YES_NO | Preserve 1px border Yes/No | Default: 1 |
Create a binary mask Yes/No | Boolean | BIN_YES_NO | Create a binary mask Yes/No | Default: 1 |
Threshold | Floating point | THRESHOLD | Threshold | Default: 1.000000 |
Command-line
Usage: saga_cmd grid_filter 12 [-INPUT_GRID <str>] [-OBJECT_GRID <str>] [-DIFFERENCE_GRID <str>] [-SHIFT_VALUE <double>] [-BORDER_YES_NO <str>] [-BIN_YES_NO <str>] [-THRESHOLD <double>]
-INPUT_GRID:<str> Input Grid
Grid (input)
-OBJECT_GRID:<str> Object Grid
Grid (output)
-DIFFERENCE_GRID:<str> Difference Input - Reconstruction
Grid (output)
-SHIFT_VALUE:<double> Shift value
Floating point
Default: 5.000000
-BORDER_YES_NO:<str> Preserve 1px border Yes/No
Boolean
Default: 1
-BIN_YES_NO:<str> Create a binary mask Yes/No
Boolean
Default: 1
-THRESHOLD:<double> Threshold
Floating point
Default: 1.000000