New Channel Mixer thread... how do you channel mix?

I had read that, Pat. It helped me understand. :+1:

1 Like

In fact, I looked in the manual on editing I have made up, and under Channel mixer the first link listed was your article.

1 Like

Mind to share how you determine that?

You can see that from the histogram.

I thought I had gray/lightness blend figured out, but no. I reasoned that in gray channel, when you increase a color, that lightens it because you are saturating it, i.e., removing gray from the color. Adding lightness blend to the equation: increasing red makes areas with red lighter. But using the jpg of the original road, field, and sky scene and only increasing red to 1.163–no other changes–darkened the sky. How does that happen? If there is red in the sky, shouldn’t it make it lighter?

What tool are you talking about.?

:thinking:???

Can you please make make a snapshot that could help us understand what you mean.
Are you talking about Mono mixer in GIMP?

I was talking about channel mixer and your post above of March 28. Sorry for the confusion.

My bad. I should have opened the reference to see what post you were referring to. I thought you’d respond to my last post.

In gray mode with the color mixer in darktble, you combine the color channels from zero. This means that if you increase the red channel, you will actually only see the red channel. As long as you don’t increase the values for other channels, they will remain off at first. Since the sky is blue, and you have not increased the blue channel, the sky is dark.

Yes, but you see a darker sky, because blue channel is not yet on and blue is the predominant color of the sky.

BTW, this is the big difference to the mono mixer in GIMP, which has the same function as the gray mode in the color mixer in darktable.

image image

image

image image

image

image image

image

image image

In the case of the sky, all RGB values drop, but in the case of the road, all go up. Can you explain what makes the difference? Is it because red is below 128 in the sky and above it in the road?

:point_down:

  1. Maybe you are confused by the fact that nothing happens before you move the slider. That means you see the image as a combination of all three color channels. The moment you move the first color channel, the gray mode is activated. Try it without Lightniss blend mode to see what I mean.

  2. Here is the explanation of the Blend Mode “lightness” in darktable : "This blend mode mixes lightness from the input and output images. Color data (chroma and hue) are taken unaltered from the input image. " https://www.darktable.org/usermanual/en/blending_operators.html How exactly the values will be affected by this blend mode, I don’t know. Maybe you should ask the darktable developers.

Yes, I have been confused by the behavior of the module if you reset it. When you reset, the colored image shows up in its unmodified state, and I thought that is where I was starting from. But if you move one of the sliders off zero ever so slightly, the image goes black. That, as you say, is the real starting point.

As you move the red slider up, the sky, the whole image, in fact, becomes lighter. But because the maximum is 2, the sky stays darker than the original. Using the green slider, moving it up a little leaves the image darker, but if you move the slider up more, the image crosses over from being darker to being lighter than the original–before the slider reaches 2.

Sorry to be so dense. Thanks for your patience.

No problem. The important thing is that we got this straightened out.

Yeah, it’s really confusing. Maybe gray mode should be activated immediately upon clicking on “gray”.

Actually the channel mixer already has this mode where you can use channels to control only the brightness of the image, (“lightness” mode), which is the same as “gray” mode with lightness blend mode.
The problem is, it starts exactly the same from zero. I think it would be much more intuitive if the sliders for the channels were already moved by default so that the brightness of the image is identical to the original brightness before the mode was switched on. That way, you could see changes immediately when you move the sliders afterwards.

A hint: To influence the brightness of the picture with the channel mixer, I prefer to use “gray” mode with HSV lightness blend mode, because with HSV lightness the colors won’t flip over if you go too far with the values

This should be documented in the user manual to avoid confusion.

Another question:

In order to have the same blue in the sky across several images the area selected by the color picker should be changed from rgb 57 99 151 to rgb 74 108 154. This is very easy to do using the channel mixer and raising the red slider in the red channel, the green slider in the green channel and the blue slider in the blue channel. Since the whole sky is blue and selected by means of a mask there is no problem with the white balance (neutral grey).

What would be a systematic approach if you had to maintain the correct neutral grey?

Sorry @obe , I didn’t understand the question. Neutral grey in a blue sky?

Hi’ @s7habo
I’m sorry for not being precise. My example represent a very basic use of the channel mixer. The red, green and blue slider was raised to 1,3-1,2-1,05 to get the right color in the selected area.

Now forget all about the above example.

Problem: Using the channel mixer, you want to change the color of a selected patch to a specific r,g,b combination and at the same time keep neutral grey intact in the image to avoid too much changes in other parts. How do you do tune the sliders in a systematic way?

As far as I know, keeping neutral grey intact requires that the sum of red, green and blue adds to up 1,0 in every channel.

If you want to keep neutral grey intact and tweak just an area of similar colours, you can use masks to achieve this. In your case a parametric mask for the blue areas should help. Or use the colorzones module

1 Like

Hi’ @MStraeten
Somehow my reply ended in a Rawtherapee thread and went into orbit.
So I try once more.
Thank you for your answer. I used the color zones module to get close to the blue color I wanted and used the channel mixer wth a mask to do the last fine tuning.

I have read the thread “pease help me to understand the channel mixer” and the replies of @patdavid several times.

I have especially noted the following “Any slider in the Red channel can only affect the R value of your output pixel. Likewise, any slider in the Green channel can only affect the G value of the output pixel, and any slider in the Blue channel can only affect the B value of the output pixel” by @james

…………but adjusting the blue slider in the red channel from 0 to 2 changes the G-value from 87 to 78 and the B-value changes as well?

This is not according to the theory?