Gimp has a "Luminance" mode in the layer settings:
I use it to overlay a high-resolution grayscale image on an upscaled low-resolution color image to make the color image sharper. E.g., given a grayscale image and a color image
the result of applying the grayscale image as a luminance "mask" on the blurry color image creates a sharp color image:
How does the luminance filter work, and how would I implement this in Python (e.g. using Pillow)?




