Connectivity Analysis
- Author: HfT Stuttgart (c) 2013
- Menu: Grid | Filter
Description
Connectivity analysis of a binary input image according to
Burger, W., Burge, M.: Digitale Bildverarbeitung. Springer Verlag 2006, p.208.
Output consists in a symbolic image of the connected foreground regions and a shape of the borders of the foreground regions (outer and inner borders). The shape may contain alternatively the centers or the corners of the border pixels. Optionally, the regions which have contact with the image borders can be removed together with their border shapes.
In addition, an optional morphological filter (erosion-binary reconstruction) can be applied to the input image first.
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Input Binary Grid | grid, input | INPUT_GRID | Binary input image for the connectivity analysis | - |
Output | Filtered Image | grid, output, optional | FILTERED_MASK | Morphologically filtered binary mask | - |
Symbolic Image | grid, output | SYMBOLIC_IMAGE | The final symbolic image | - |
Outlines | shapes, output | OUTLINES | Polygon outlines of object regions | - |
Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - |
Apply Filter? | boolean | FILTER | Apply a filter (erosion - binary reconstruction) to the input image | Default: 1 |
Filter Size (Radius) | integer number | SIZE | Filter size (radius in grid cells) | Default: 3 |
Pixel Centers? | boolean | BORDER_PIXEL_CENTERS | Should the output shapes contain the centers of the border pixels instead of the corners? | Default: 0 |
Remove Border Regions? | boolean | REMOVE_MARGINAL_REGIONS | Remove regions which have contact with (are adjacent to) the image borders? | Default: 0 |
Command Line
Usage: saga_cmd grid_filter 14 [-INPUT_GRID ] [-FILTERED_MASK ] [-FILTER ] [-SIZE ] [-SYMBOLIC_IMAGE ] [-OUTLINES ] [-BORDER_PIXEL_CENTERS ] [-REMOVE_MARGINAL_REGIONS ]
-INPUT_GRID: Input Binary Grid
grid, input
-FILTERED_MASK: Filtered Image
grid, output, optional
-FILTER: Apply Filter?
boolean
Default: 1
-SIZE: Filter Size (Radius)
integer number
Default: 3
-SYMBOLIC_IMAGE: Symbolic Image
grid, output
-OUTLINES: Outlines
shapes, output
-BORDER_PIXEL_CENTERS: Pixel Centers?
boolean
Default: 0
-REMOVE_MARGINAL_REGIONS: Remove Border Regions?
boolean
Default: 0