polyominoes, a C++ code which provides some utilities for manipulating polyominoes.
A region R is a subset of an MRxNR grid of squares.
A polyomino P is a subset of an MPxNP grid of squares.
Both objects are represented by binary matrices, with the property that there are no initial or final zero rows or columns.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
polyominoes is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and an Octave version and a Python version.