bwlabel_test


bwlabel_test, a Python code which calls label(), which is a scipy.ndimage() function, which is given a matrix, and organizes the nonzero values into labeled components, using 4-way or 8-way connectivity.

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, a Python code which seeks the connected nonzero or nonblack components of an image or an integer array.

percolation_simulation, a Python 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 10 March 2025.