Demo code to illustrate the improvement in the definition of a labelled region using spatial relationships between other regions in the supervoxel space.
Irving et al (2016).
Pieces-of-parts for supervoxel segmentation with global context: Application to DCE-MRI tumour delineation. Medical Image Analysis, 21 (32), 69-83.
Build and run
python setup.py build_ext --inplace
Input probabilities associated with each label
Output probabilities for the tumour region