Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Community Talk, Chatter & Stuff General Photography Talk 
Thread started 19 May 2010 (Wednesday) 06:46
Search threadPrev/next
sponsored links (only for non-logged)

Undo or redo the white balance applied

 
HermanHare
Hatchling
2 posts
Joined May 2010
     
May 19, 2010 06:46 |  #1

Hi All,

I have a fairly large amount of images that where acquired with an Canon EOS-1Ds Mark III with "automatic white balance" and saved as jpeg. I want to stitch these images into panoramas but since the white balance is different for almost all images, the differences between the images are unnecessary big.

Is there a way of undoing the white balance automatically? I was thinking in terms of writing a program that reads in the images, finds the applied AWB from exif-data, and finally removes the white balance correction.

I have found the following exif tags interesting:
---
WB RGGB Levels As Shot : 2009 1024 1024 1601
Color Temp As Shot : 4758
----

but those value work on rgb so I thought the following might be more appropriate:

-----
Blue Balance : 1.563477
Red Balance : 1.961914
-----

The question is how to use them?


Note, I do not want to sit with the images one by one in Photoshop, Gimp or similar. Recapturing with a fixed WB and saving RAW is not an option.


Thank you for your help




  
  LOG IN TO REPLY
neilwood32
Cream of the Crop
Avatar
6,231 posts
Likes: 5
Joined Sep 2007
Location: Sitting atop the castle, Edinburgh, Scotland
     
May 19, 2010 07:07 |  #2

ASAIK there is no such program. Once the image is fixed in Jpeg, the WB is fixed. End of story.

It might be possible to batch process a lot of images in ACR and select a different WB but you will end up with lost IQ due to the resaving process. Note you would not be altering the WB setting as such (it has already been applied to the image and removed as part of the saving to Jpeg) but altering the entire image


Having a camera makes you no more a photographer than having a hammer and some nails makes you a carpenter - Claude Adams
Keep calm and carry a camera!
My Gear

  
  LOG IN TO REPLY
HermanHare
THREAD ­ STARTER
Hatchling
2 posts
Joined May 2010
     
May 20, 2010 05:01 as a reply to  @ neilwood32's post |  #3

A clarification:

I can write the program that does the intended correction myself. I need to know the mathematics. I also realize that reversing the WB (and apply another WB) will not give exactly the same result as applying the intended WB using original raw RGB. But perhaps it will be good enough.

My idea was:
for all images do
(1) Read in the JPG images in memory.
(2) Reverse the AWB (that varies between images) on the Cb and Cr components
(3) Apply another fixed WB (optional)
(4) Save on file


A bit more specific questions would then be:'

Can I work on Cb and Cr components or must I generate "raw R, G, B" ?

What is the mathamatics behind RedBalance and BlueBalance.




  
  LOG IN TO REPLY
SkipD
Cream of the Crop
Avatar
20,476 posts
Likes: 165
Joined Dec 2002
Location: Southeastern WI, USA
     
May 20, 2010 07:41 |  #4

HermanHare wrote in post #10214540 (external link)
A clarification:

I can write the program that does the intended correction myself. I need to know the mathematics. I also realize that reversing the WB (and apply another WB) will not give exactly the same result as applying the intended WB using original raw RGB. But perhaps it will be good enough.

My idea was:
for all images do
(1) Read in the JPG images in memory.
(2) Reverse the AWB (that varies between images) on the Cb and Cr components
(3) Apply another fixed WB (optional)
(4) Save on file

A bit more specific questions would then be:'

Can I work on Cb and Cr components or must I generate "raw R, G, B" ?

What is the mathamatics behind RedBalance and BlueBalance.

As said above, a .JPG file is the result of all the algorithms in the camera and in any post-processing having done their thing. I very seriously doubt that you can do anything at all with white balance in a .JPG other than edit the color of the whole image by a certain amount for each of the three base colors.

The problem is that you cannot "undo" the white balance correction of a .JPG to get to a base from which you can apply a common white balance correction in multiple images. As far as I know, there is no color reference in a .JPG for you to use to correct a variety of shots to a single white balance setting. If these things were easy to do, we would have had software tools in programs like Photoshop long ago to easily tweak white balance in .JPG files. We have not had those tools available, at least as of Photoshop CS2.

In my opinion, you'll spend less time correcting each image in a good graphics software package than you would trying to develop a program to do the task in an automated fashion.

The lesson that should have been learned is to shoot in RAW mode.


Skip Douglas
A few cameras and over 50 years behind them .....
..... but still learning all the time.

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

1,096 views & 0 likes for this thread, 3 members have posted to it.
Undo or redo the white balance applied
FORUMS Community Talk, Chatter & Stuff General Photography Talk 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member was a spammer, and banned as such!
2812 guests, 172 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.