functions implemented to validate supervoxels ( boundary error and segmentation accuracy) unclean