Python-SRM is a Python implementation of the Statistical Region Merging algorithm (SRM), as described in TPAMI'04 or PR'05 (see Bibliography for more details).
See the Java applet for an online demonstration of the method.
The SRM module contains one class called SRM. The class constructor expects two arguments:
After the initialization, the segmentation can be launched with the method run which expects no arguments.
See the following section for an example.
from scipy.misc import imread from matplotlib import pyplot from SRM import SRM im = imread("lena.png") srm = SRM(im, 256) segmented = srm.run() pyplot.imshow(segmented/256) pyplot.show()
Directly: http://www-connex.lip6.fr/~schwander/python-srm/python-srm-0.1.tar.gz
Darcs repository: http://www-connex.lip6.fr/~schwander/darcs/python-srm/
Python-srm is free software, released under the term of the BSD license.
Copyright 2010-2012 Olivier Schwander <schwander@lix.polytechnique.fr>