✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Je veux éclaircir une image (comme si on avait une source lumineuse plus forte).
(je fais volontairement abstraction de la correction gamma + les problèmes d'arrondis sont caché ici, il faut certainement ajouter un clamp(round( . ) , 0, 255) mais ce n'est pas la question ici).
Pour chaque pixel p, je fais :