Gimp: Invert and merge (to remove color cast)

Well, hope dies last. I get (under the circumstances) okay results when I use Channel Mixer and push up Green in the Blue Channel.

I do like the soft color over the grays. What you shown is that so many info has been lost.

Here is my attempt using GIMP 2.10. I modified the above tutorial in the following way:

Instead of using Blur>Pixelize, I just used the dropper and bucket painted a copy of the photo. Then, inverted the solid color image and used LCH(Color) blend mode instead of overlay mode. Then made another layer from visible and used curves and Hue-Saturation tab as to taste! Rescaled and exported.

EDIT: I realised that there is still some yellow tint to the above photo. I just merged all layers and repeated what I did before the second time to get:

1 Like

Here’s my quick attempt with LAB editing on Krita 4.2 Pre-Alpha, at least the sand color and sky color is almost restorable to the original though more work would be needed. I’ll admit it’s way too saturated, but it’s a quick attempt, so…

gmic sample tiger [0] +negate. average_colors. fc. \${} blend[-2,-1] overlay,100%

Explanation:

  • sample tiger : use the tiger sample image
  • [0] : duplicate it to be able to show the original and result side-by-side
  • +negate. : invert the top image on the stack and save the result as a new image
  • average_colors. : calculate the average of the top image and put the result in the status
  • fc. \${} : fill the top image with the color vector in the status. Because I did this in bash on GNU/Linux, I had to escape the dollar sign. This may not be needed on other operating systems or shells.
  • blend[-2,-1] overlay,100% : blend the top two images in overlay mode with 100% opacity

Here is Mixer PCA at work. I didn’t do colour correction per se, but as you can see, moving 2 sliders already makes the image more palatable. It isn’t the easiest G’MIC filter to understand; partly why I don’t use it much. However, users who have spent more time with it seem to get good results.

PS I forgot to convert to the sRGB gamma and colour space. The G’MIC plugin works in that space and assumes all input to be in the same.

I used the same setting, but it only made colors worse on my end. Maybe a Krita bug.


P.S

I might have how the original image look like, all done with g’mic lab editing on krita, and krita lab editing. I have to say that I enjoy Krita LAB editing.

I PM’d the author of the file for the original krita file.

This is the result following @dan’s one-liner.

Perhaps the best thing to do would be to make a monochrome version and then colourize it by hand or by machine learning. There are a number of links to the latter on this forum. Here is my monochrome take on the beach.



Result from a random colourization algorithm.

1 Like

The sky looks ok, too blue though on the cloud, but the lower end is better than my recent quick attempt. The bottom on the other hand is way too dark. But, I guess we can both agree that a combined approach of hand painting, color editing via color adjustment tool, and AI might be the answer. Overkill, but given the damage done, why not?

It is due to the distribution of tones in the monochrome. I could have regularized them a bit more.

I am more critical of the colours than you are. Personally, I would use this colourized image as a starting point for the colour restoration. The steps would be

1. Make monochrome with max tonal detail (PCA or norm seem suitable).
2. Colourize with GAN machine learning, trained with images related to input image.
3. Use it as a palette and subject reference for the colour restoration.

Maybe it helps scanning in 48 bit depth

I thought I just get a ‘sorry’, so much response… I like to get as close to reality as possible.

Shreedhar’s 2nd image gets sort of close (as far as I can remember). It was a really dull and grey day morning right after a typhoon. So there was no blue in the sky and the water had a sand color tint, from, you guessed it, the sand.

All the images on that roll have that strong yellow tint. It was a negative film (I think Kodak Gold, some consumer grade stuff)

BTW, the waves where nice and tempting, but too much debris in the water, looked really dangerous.

And here I was thinking that the beach wasn’t like that second pic and it’s just a badly damaged film.

Is this how it suppose to look like? https://tembeanami.files.wordpress.com/2011/06/sam_0584.jpg

@st.raw Usually, in my case, I tend to focus on the possibilities when giving advice because everyone’s goal is different. Glad someone is jogging your memories. Appreciate the context, probably would have been useful earlier in the thread… Even more info would be nice, such as the age of the film and the location of the shot.

Hi, I am trying to remove a strong color cast in the attached image. It was shot at an event where they had strong blue and red spotlights. As one can see in the image, a strong blue spotlight has ruined the entire image-making is entirely blueish. How can I achieve a neutral tone in this image and remove the strong blue color cast as well?

I tried a lot of online solutions such as How to Correct White Balance Color Cast Using GIMP, https://www.youtube.com/watch?v=1ZIGDx4Bg-k and pixovert’s youtube video as well.

Welcome @Milan_Pandya,

Because it has a severe color cast, the first usual methods will not work at first. Your image has the most information in the blue channel. So you can mix this “blue” information in the green en red channel. In the blue channel you can reduce the blue.

In this case you can first use a “Channel Mixer”. For example in GIMP: Colours>Components>Channel Mixer.

In G’MIC you can use: Colors>RGB Tone (but this is an advanced channel mixer, a bit difficult)

Or you can edit this in RawTherapee. It has a very nice channel mixer.

Here GIMP 2.8:


With this result:
example_mixer
This is a very quick edit. The preview is small in GIMP 2.8, so this first result can be better after playing.

After the “channel mixer”, you can use other color correcting methods, like you mentioned above.

One thing is important to know: with such a severe color cast, you can not get a perfect result.

Edit: Now with G’MIC>Colors>RGB Tone and G’MIC>Colors>Curves and GIMP Wavelet Denoise (CbCr):

4 Likes


I’ve used a lot of curves but this reveals noise and digital artifacts.

3 Likes

With my edits the blue disappeared totally. You did keep some blue.I like that.

1 Like

Thank you age and iarga. Iarga, your steps were really helpful and screenshots made it easier to follow. Age, thank you for demonstrating curves manipulation.