It is currently Sat Apr 20, 2024 8:10 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Repairing Color Cast
PostPosted: Mon May 30, 2016 12:11 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
I found an awesome tutorial on fixing color cast in photos at gimp.pixtuts.com I searched the web for pics to use, and found a good one used in a photoshop tut. I tried it in GIMP, following the Photoshop instructions, which were quite different, and I couldn't complete it. I then followed the GIMP tut, and I was quite excited about the conclusion.

GIMP Tut: http://gimp.pixtuts.com/gimp-tutorials/ ... correction

Results below:


Attachments:
original orange.png
original orange.png [ 848.74 KiB | Viewed 6418 times ]
original repaired.png
original repaired.png [ 930.11 KiB | Viewed 6418 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 12:32 am  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13011
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Nice outcome steven8.
:bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 1:10 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
Hello Steven,

Here is my try, I used G'MIC "HSL adjustment" , "Specific saturation" (both from Garagecoder) and curves. My monitor isn't calibrated. Maybe it can be improved. Colors are always a matter of taste. ;)


Attachments:
original orange_gmic_curves.jpg
original orange_gmic_curves.jpg [ 509.17 KiB | Viewed 6383 times ]


Last edited by iarga on Mon May 30, 2016 1:49 am, edited 1 time in total.
Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 1:18 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
With more saturation:


Attachments:
original orange_gmic_curves_2.jpg
original orange_gmic_curves_2.jpg [ 551.68 KiB | Viewed 6383 times ]
Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 1:23 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
I like it, but the colors seem a little muted. Not enough saturation. Made me want to try this G'MIC HSL adjustment, though. I just used it. with tweaks, and I prefer the result over my original repair. What do you think?

I tried calibrating my monitor once. I have no idea if it did anything. :)


Attachments:
original hsl repaired.png
original hsl repaired.png [ 910.69 KiB | Viewed 6381 times ]
Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 1:25 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
Ha! We were both saturating at the same time. Both better results!!


Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 1:42 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
I prefer your last result above your first. I gave you my examples to give you an idea of what is possible with those G'MIC filters. So you can use them and experiment with them to your own taste. The color balance of GIMP is also useful. Another great filter of G'MIC is "Color grading" (for colors only use color grade sliders) from John Lakkas. There is also a GIMP filter with the same name from him, but that doesn't work with GIMP 2.9


Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 3:22 am  (#8) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
Anything that doesn't make the stove pure gray isn't really working correctly. Iarga's results are the closest...
This script does just that...

_________________
Image


Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 4:08 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
For some color cast images "HSL adjustment" works better than "Specific saturation". For others "Specific saturation" works better. In some cases you can use them in sequence. I like these filters, because you can have a decent result very quick. (In cases with wrong camera adjustment for light: candel light, tungsten, day light and vice versa, these filters are very useful)

You can always start with curves and color balance (GIMP: shadows, midtones and highlights). Also you can try curves in different color spaces (G'MIC "Curves interactive").

Also take a look to the G'MIC filters "RGB tone" and "CMYK -tone" from Iain Fergusson. This will take some time, but excellent for fine-tuning.

You can use al different kinds of color correction, also the one you mentioned with the inverted colors.

The nice thing is that you can afterwards combine them to get an optimal result to your taste.

The color corrected image with the script Ofnuts mentioned (Luca de Alfaro), the ligter grays/whites then become a little bit green/yellow, but you can correct that afterwards. (I took the stove color, just under handle as gray foreground gray, sliders 100,100, 0.... with different settings perhaps better results):


Attachments:
original orange_script_Luca_de_Alfaro.jpg
original orange_script_Luca_de_Alfaro.jpg [ 576.85 KiB | Viewed 6327 times ]
Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 6:19 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
You can also use G'MIC "Color temperature" from Tom Keil. Without automatic color balance. Turn the slider to the left. After this refine with (GIMP and/or G'MIC) curves, (GIMP) color balance etc.

Other color temperature filters perhaps do the same.

There are many ways to skin a (color) ca(s)t.


Top
 Post subject: Re: Repairing Color Cast
PostPosted: Mon May 30, 2016 7:09 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
The following classic method is almost the same as you mentioned in your first post:

1. Duplicate layer,
2. remove transparency (Layer>Transparency>Remove Alpha Channel),
3. Filters>Blur>Pixalise, with maximum width and hight. (with your image 900*600)
4. Now you have the avarage color of the image.
5. Invert color of this layer (Colours>invert).
6. Set this color-inverted layer to Overlay (above the Original). Adjust opacity of this overlay.
....[you can also make an duplicate of the inverted layer and set it to Colour. Now you can combine different
....opacities from this two layers (Overlay and Colour)]
7. New layer from visible, duplicate this layer.
8. Possibly desaturate to taste.

After this: curves, color balance etc. etc. (now I didn't take this last step, so you can compare)


Attachments:
original orange_inverted_averege_color_ desaturated.jpg
original orange_inverted_averege_color_ desaturated.jpg [ 540.91 KiB | Viewed 2344 times ]
Top
 Post subject: Re: Repairing Color Cast
PostPosted: Tue May 31, 2016 5:10 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
Your final take looks to be the most natural of all. Thank you so much for all of your tips, iarga. They are greatly appreciated!


Top
 Post subject: Re: Repairing Color Cast
PostPosted: Tue May 31, 2016 6:24 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Mar 28, 2016
Posts: 312
Location: Netherlands
Thank you. It's all about personal taste. I think I would combine the last one with the (more saturated) second. I prefer the colors of the second one, but appreciate the light values of the last. So I would layer those images and then try to get a nice result with blend modes. The most important thing is that you can try all these filters and methods and find a result you like.

Sometimes automatic color balance gives a nice result, but a lot of times you have to find a nice result yourself. Color casts differ from photo to photo. So you everytime have to search what's the best method to correct the colors.

I most of the times use curves first.

Very good tutorials by Pat David:

Basic Color Curves
Getting around in gimp color correction
Color curves matching

Sometimes it doesn't work with curves first, then I try methods I mentioned earlier. Afterwards I use curves and color balance etc. etc.

I would love if someone else has something to "teach" here about this subject. I also like to learn new methods and like to know about other (unknown) Open Source tools and filters to work with colors, color correction and color grading. I think it's fascinating.


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Repairing an old document

6

No new posts Attachment(s) Colour Cast Script

0

No new posts Attachment(s) Colour Cast Reduction Plug-in

16

No new posts Attachment(s) GEGL Color Light Fusion (12 blend modes for color overlay)

9

No new posts Attachment(s) Background color chanage and typed text color change

8



* Login  



Powered by phpBB3 © phpBB Group