The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: labelmatrix (cc)

Create labelled matrix from bwconncomp structure.

Uses the structure as returned by the bwconncomp function to create a label matrix, where each individual object is assigned a positive number. A value of zero corresponds to the background.

The class of the output matrix is dependent on the number of objects, being uint, uint16, uint32, or double, whichever is enough.

See also: bwconncomp, bwlabel, bwlabeln, label2rgb, rgb2label.

Package: image