MRF Segmentation - initial attempt