fixes #903

Graph-cut segmentation now produces a label image like the other thresholding operators. This fixes #903 and fixes #902 .