fixes #903

Graph-cut segmentation now produces a label image like the other thresholding operators. Fixes #903.