bwlabel_test, a MATLAB code which calls bwlabel() or bwlabeln(), which are functions built in to the Image Processing Toolbox. Given a 2D matrix or 3D array of nonzero values, it organizes them into labeled components, using connectivity 4 or 8 (2D) or 6, 18 or 26 (3D).
The information on this web page is distributed under the MIT license.
bwlabel_test is available in a MATLAB version and an Octave version and a Python version.
components, a MATLAB code which seeks the connected nonzero or nonblack components of an image or an integer array.
percolation_simulation, a MATLAB 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.