This is an old revision of the document!


PHP's gd library is missing or unable to create PNG images

Insert Layer Map

Description

This functor inserts a layer in a map in a certain position with a given name.

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 Map showing each group of cells as a patch identified by a label. It has the same dimensions as the source map.

Group

Notes

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

Internal Name

CalcPatchLabelMap