Python and MATLAB wrapper for C++ functions for computing the MALIS loss
The MALIS loss is described here:
SC Turaga, KL Briggman, M Helmstaedter, W Denk, HS Seung (2009). Maximin learning of image segmentation. Advances in Neural Information Processing Systems (NIPS) 2009.
http://papers.nips.cc/paper/3887-maximin-affinity-learning-of-image-segmentation
Note that you have to have the c++ library boost installed (on ubuntu you can install it with "sudo apt-get install libboost-all-dev").