Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I copy/map pixel brightness to hue?
#2
Starting with a color image:

  • Colors > Components > Decompose to HSL or HSV
  • Copy/paste the Value/lightness layer into the "hue" layers
  • Colors > Components > Recompose
   

However if you start with a grayscale image, you will find that the Hue and Saturation layers are initially black (because gray has no specific hue and its saturation is 0), so if you recompose the image at this point you get the same image (because even if you changed the Hue, the saturation is still 0). So if you want to see color, you have to bucket-fill the saturation layer with some non-zero value (255 for full saturation in the image below) before you recompose:

   

And perhaps you also want to bucket fill the luminosity layer to some uniform value (some medium gray):

   
or at least reduce its constrast:

   

It is quite a coincidence that in this picture, midtones (that are mostly the green hills) are converted to green which is half-way in the hue circle.
Reply


Messages In This Thread
RE: How do I copy/map pixel brightness to hue? - by Ofnuts - 10-08-2023, 12:52 PM

Forum Jump: