updated superpixel merging