Image Processing, Python, Image Enhancement, Histogram Manipulation, Data Science.
such that their mean values are the same. Translating the concept into code gets you this output marty_gw = ((marty * (marty.mean() / marty.mean(axis=(0, 1)))) .clip(0, 255).astype(int)) skio.imshow(marty_gw); Gray-world Algorithm result Ground-truth algorithm — Based from the observed image, users