functions for benchmarking the semantic segmentation output