npinto/bangmetric — pull request #1 by poilvert (2012-05-17 16:02:28+00:00)
Title: WIP: add a new segmentation module

@npinto,

First draft for a new segmentation module. So far I needed the ``pad2d`` function from
sthor so I added it to the module, even though in the future we will remove that extra
code and depend on sthor.

I also made a proxy to the Adjusted Rand Index metric from sklearn that seems fast
enough. That metric though, is only usable on *segmented images* (on needs multiple
labels for each connected component).

I added a quick build script to build a small Cython module that I use in the warping error
code.

Finally here are the steps to make it (hopefully) work :

1. build the Cython extension module by executing ``build_unique.sh``
2. run the demo code ``warping_error_demo.py``

Cheese,

N.