SAGA 9.6.1 | Tool Library Documentation

Connectivity Analysis


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

 NameTypeIdentifierDescriptionConstraints
InputInput Binary Gridgrid, inputINPUT_GRIDBinary input image for the connectivity analysis-
OutputFiltered Imagegrid, output, optionalFILTERED_MASKMorphologically filtered binary mask-
Symbolic Imagegrid, outputSYMBOLIC_IMAGEThe final symbolic image-
Outlinesshapes, outputOUTLINESPolygon outlines of object regions-
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Apply Filter?booleanFILTERApply a filter (erosion - binary reconstruction) to the input image Default: 1
Filter Size (Radius)integer numberSIZEFilter size (radius in grid cells)Default: 3
Pixel Centers?booleanBORDER_PIXEL_CENTERSShould the output shapes contain the centers of the border pixels instead of the corners?Default: 0
Remove Border Regions?booleanREMOVE_MARGINAL_REGIONSRemove 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