Parallel implementation of Graph based segmentation.