bwlabel_test, an Octave code which calls bwlabel(), which is given a binary matrix, and organizes the 1 values into labeled clusters, using 4-way or 8-way connectivity. For Octave, bwlabel() is part of the image() package.
The information on this web page is distributed under the MIT license.
bwlabel_test is available in a MATLAB version and an Octave version.
components, an Octave code which seeks the connected nonzero or nonblack components of an image or an integer array.
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.