A C++ implementation of the statistical region merging [1] algorithm with Python bindings.
I wasn't happy with other Python implementations mainly because of the high execution time for large images so I made this one.
Currently only grayscale 8-bit images are supported.
The implementation is inspired by the ImageJ plugin [2], a substantial part of the code is borrowed from there and ported to C++.
To build C++ lib and tests:
cd libsrm && cmake . && make
To use python bindings copy libsrm.so (or .dll for Windows) to ./pysrm. See usage example in srm_test.py.
[1] R. Nock, F. Nielsen (2004), "Statistical Region Merging", IEEE Trans. Pattern Anal. Mach. Intell. 26 (11): 1452-1458