Calc Patch Label Map

Description

This functor labels patches of cells using sequential numbers. A patch consists of a continuous group of neighboring cells of the same category.

Inputs

Name Type Description
Source Map Map whose non-null cells correspond to an occurrence of a category.

Optional Inputs

Name Type Description Default Value
Initial Patch Label Int Initial number used to label the first patch found on the map. 1
Only Orthogonals Are Allowed Bool If true, only orthogonal cells will be considered first order neighbors. False
Window Lines Positive Int Number of lines of the neighbor search window. 3
Window Columns Positive Int Number of columns of the neighbor search window. 3
Cell Type Cell Type Data cell type. Signed 32 Bit Integer
Null Value Int Null value. 3
Patch Labels Are Sparse Bool If true, the map is loaded as a sparse image. Sparse images have the advantage of storing only the cells containing non-null values, but they have diminished access time. False

Output

Name Type Description
Patch Labels Categorical Map Table Map showing each group of cells as a patch identified by a label. It has the same dimensions as the source map.

Group

Map Algebra

Notes

The use of windows bigger than 3×3 allows disjoint cells to be considered as neighbors.

Internal Name

CalcPatchLabelMap