bwlabel_test


bwlabel_test, an Octave code which calls bwlabel() or bwlabeln(), which are given a 2D matrix or 3D array, and organize the nonzero values into labeled components, using connectivity 4 or 8 (2D), or 6, 18, or 26 (3D).4-way or 8-way connectivity. For Octave, bwlabel() and bwlabeln() are part of the image() package.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

bwlabel_test is available in a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

components, an Octave code which organizes the nonzero elements of a 1d, 2d, or 3d array into connected components.

percolation_simulation, an Octave code which simulates a percolation system. A rectangular region is decomposed into a grid of MxN squares. Each square may be porous or solid. We are interested in a path of porous squares connecting the top and bottom, or the left and right boundaries. The original MATLAB code was written by Ian Cooper.

Source Code:


Last revised on 11 March 2025.