Updated 2008-06-04

Spatial Network assessments in landscapes
JMatrixNet is a small java program that provides functionality to identify network of habitat patches in landscapes.
NOTE! The program is, at the best, in pre-alpha state. The potential for improvements of the user interface, functionality and performance in to say the least, high. All contributions all welcome (see license agreement below).

License agreement

The program and the source-code are freely available for non-commercial purposes. All major contributions must however be submitted to the author, and the author can freely include any part of those submissions in future releases. Contributors will be acknowledged.

Program description

Brief overview

The program can read different image files representing landscapes. Patches of habitats in the landscapes should be made distinguishable using a unique colour prior to usage. The program will identify those patches based on the colour of the pixels (a patch is defined as a coherent collection of pixels of the unique colour). A minimum patch size can be defined. All distances between the patches are calculated (centre-to-centre and edge-to-edge), and based on those distances, a network of patches are defined. The network can later be saved as a Payek network file (.net). The program is also capable of some rudimentary sliding window based analyses.

Quick get started

In addition to the above, all patches, distances and networks can be saved, or loaded, to/from separate files. For large files, this is highly recommended to save time. Please note that sometimes the program will hang until an operation is complete, and sometimes the time-consuming operation is put in a separate thread (i.e. the program will not hang). Be patient! Details about the different methods can be read from the source-code.


Version 0.5 (2008-06-04) zip (with jars, source-code and javadoc)
Can handle multiple habitat colors (i.e. the habiat patches could have more than just one color, but a specific patch is still defined as adjecent pixels of the same color)

Version 0.4 (2006-10-20) zip (with jars, source-code and javadoc)
More robust, better at handling large files, can summarize components based on a user definable minimal component area

Version 0.3 (2005-03-29) zip (with jars, source-code and javadoc)
Added support for some sliding window analyses and component based analyses (i.e. counting components)

Version 0.2 (2004-09-13) zip (with jars and source-code)
Added support for 32-bit colour bitmaps, and also other image file types such as gif, jpg etc. Added buffer-zone analysis tool and more

Version 0.1 (2004-06-12) zip (with jars and source-code)

Please note that Sun's Jimi SDK is needed, and could be downloaded here. Jimi SDK should be installed prior to the installation of JMatrixNet (as well as Java Runtime, preferably version 1.4 or higher).

Installation instructions


Örjan Bodin at Stockholm University, Stockholm Resilience Centre (orjan.bodin 'at'


Hanski, I. 1994. A practical model of metapopulation dynamics. Journal of Animal Ecology 63:151-162

Urban, D. and T. Keitt. 2001. Landscape connectivity: A graph-theoretic perspective. Ecology 82(5):1205-1218