/PerceivedBrightness

Map a picture to its perceive brightness

Primary LanguagePython

Mini Project - Sort via Perceived Brightness

Goal

I wanted to sort the colors from this image by perceived brightness

original

Result

sorted by perceived brightness

Steps

1. Map each pixel to its perceived brightness

This is the only step where the script is used. We take the original image and, for each pixel, map the color to its perceive brightness. Then we display the value on the red component. mapped to perceived brightness

2. Manually sort by perceived brightness

mapped to perceived brightness - sorted

3. Reproduce the order with the real colors - And DONE 😃

sorted by perceived brightness