Using two waves to control hue and brightness of an image

Hi!

I've got two waves I want to create a single picture from. The first wave should control the color of the pixels (basically, what you get when selecting Modify Image Appearance > Color Table > Rainbow). The second wave should then control the brightness of the pixels in the same image.

Is this possible?
I don't think so. I'm trying to understand how that would look. If you had a very limited number of colours in the first wave, i.e. 2 colours, say red and green, you could encode another intensity onto them in a few different ways. But I don't see how this would work for a normal image with a large range of colours. Well, I'm sure you could do it but I don't know how the eye could interpret it. Maybe I misunderstand...

Edit: I guess you need HSV to RGB (16 bit) conversion.
What I want is basically to control the hue and lightness as in the hsl color model.

Both waves are 2-dimensional.
Let's say the first wave, visualized with the rainbow color table, looked something like Image 1. The second wave, visualized with grayscale, looked something like Image 2. What I want to generate should look like Result.
a1.png (60.81 KB) a2.png (100.16 KB) a3.png (77.55 KB)
The ImageTransform operation has keywords that support conversions from hsl and rgb. Unless you are really peaky on the way you define your intensity you might be able to use the ImageBlend operation where your intensity control wave is used as an alpha and you are blending.

A.G.
WaveMetrics, Inc.