mmcv.image.solarize¶ mmcv.image.solarize(img, thr=128)[source]¶ Solarize an image (invert all pixel values above a threshold) Parameters img (ndarray) – Image to be solarized. thr (int) – Threshold for solarizing (0 - 255). Returns The solarized image. Return type ndarray