Text this: Noise variance estimation based on image segmentation