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 Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
Thread started 11 Nov 2010 (Thursday) 05:33
Search threadPrev/next
sponsored links (only for non-logged)

From Custom White Balance to Color Temperature ?

 
yb98
Goldmember
Avatar
2,625 posts
Likes: 36
Joined Feb 2003
Location: Paris
     
Nov 11, 2010 05:33 |  #1

Usually custom white balance is defined by clicking on a neutral pixel.
I'd like to know if there is a formula that allows to calculate the color temperature when I clic on a pixel of the image that represent a neutral area ?

Let's say that this pixel has the value R,G and B initially.
what is the function that allows to calculate CT=f(R,G,B) ?
CT being the color temperature


Best DPP Threads
DPP++ Video Channel (external link)
New Version DPP++ 11.3 released (external link)

  
  LOG IN TO REPLY
PhotosGuy
Cream of the Crop, R.I.P.
Avatar
75,941 posts
Gallery: 8 photos
Likes: 2610
Joined Feb 2004
Location: Middle of Michigan
     
Nov 11, 2010 10:50 |  #2

Since none of our many members of Measurebaters Unanimous have popped in here to answer, I'm going to ask you why CT=f(R,G,B) is important to you?

Personally, regarding WB generally, reality isn't everything. Would we try to make a sunset neutral? The "Correct" WB may not be the "Right" WB for a image. Remember, you're the judge of your own image, & if your monitor, browser, & post processing utility are properly calibrated & color managed, I think it's more useful to adjust by eye for a pleasing image.


FrankC - 20D, RAW, Manual everything...
Classic Carz, Racing, Air Show, Flowers.
Find the light... A few Car Lighting Tips, and MOVE YOUR FEET!
Have you thought about making your own book? // Need an exposure crutch?
New Image Size Limits: Image must not exceed 1600 pixels on any side.

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 569
Joined Sep 2007
Location: Vancouver, WA USA
     
Nov 11, 2010 10:57 |  #3

Heh! Although at first glance it does seem like a strange request, but I imagine yb98 is trying to work out an algorithm for his DPP++ application so that an RGB reading of a netral target taken from the eyedropper can be calculated in the formula into a color temp which can be used to apply a WB correction in DPP++ without resorting to the "regular" DPP WB tool.

Am I in the ballpark, yb98?


Tony
Two Canon cameras (5DC, 30D), three Canon lenses (24-105, 100-400, 100mm macro)
Tony Long Photos on PBase (external link)
Wildlife project pics here (external link), Biking Photog shoots here (external link), "Suburbia" project here (external link)! Mount St. Helens, Mount Hood pics here (external link)

  
  LOG IN TO REPLY
yb98
THREAD ­ STARTER
Goldmember
Avatar
2,625 posts
Likes: 36
Joined Feb 2003
Location: Paris
     
Nov 11, 2010 11:16 |  #4

tonylong wrote in post #11265607 (external link)
Heh! Although at first glance it does seem like a strange request, but I imagine yb98 is trying to work out an algorithm for his DPP++ application so that an RGB reading of a netral target taken from the eyedropper can be calculated in the formula into a color temp which can be used to apply a WB correction in DPP++ without resorting to the "regular" DPP WB tool.

Am I in the ballpark, yb98?

Exactly !!! ;)


Best DPP Threads
DPP++ Video Channel (external link)
New Version DPP++ 11.3 released (external link)

  
  LOG IN TO REPLY
yb98
THREAD ­ STARTER
Goldmember
Avatar
2,625 posts
Likes: 36
Joined Feb 2003
Location: Paris
     
Nov 11, 2010 11:20 |  #5

I have the feeling that the white balance issued from the use of the eyedropper cant not be always converted just to a color temperature but color temperature + something else (tint ?), because sometimes I get a white balance from the eyedropper that I can not obtain with the color temperature slider. Am I right ?


Best DPP Threads
DPP++ Video Channel (external link)
New Version DPP++ 11.3 released (external link)

  
  LOG IN TO REPLY
bohdank
Cream of the Crop
Avatar
14,060 posts
Likes: 6
Joined Jan 2008
Location: Montreal, Canada
     
Nov 11, 2010 11:31 |  #6

Hue/tint is also part of the formula.


Bohdan - I may be, and probably am, completely wrong.
Gear List

Montreal Concert, Event and Portrait Photographer (external link)
Flickr (external link)

  
  LOG IN TO REPLY
René ­ Damkot
Cream of the Crop
Avatar
39,856 posts
Likes: 8
Joined Feb 2005
Location: enschede, netherlands
     
Nov 11, 2010 11:34 |  #7

Very probable.

DPP doesn't use a tint slider like LR does, but it has the "Color tone" slider, which does about the same: left = magenta, right = green (with a more limited adjustment region then the "tint" slider in LR)

I presume the "tint" is set "under the hood" as the midpoint of the Color tone slider.


"I think the idea of art kills creativity" - Douglas Adams
Why Color Management.
Color Problems? Click here.
MySpace (external link)
Get Colormanaged (external link)
Twitter (external link)
PERSONAL MESSAGING REGARDING SELLING OR BUYING ITEMS WITH MEMBERS WHO HAVE NO POSTS IN FORUMS AND/OR WHO YOU DO NOT KNOW FROM FORUMS IS HEREBY DECLARED STRICTLY STUPID AND YOU WILL GET BURNED.

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 569
Joined Sep 2007
Location: Vancouver, WA USA
     
Nov 11, 2010 12:18 |  #8

Heh! I've never bothered studying the DCRaw code to try to understand what goes on under the hood of a Raw processor -- the thought of going back to the days of being a C Programmer and then trying to work that into being an amateur/hobbyist photographer makes my brain ache:)!

I guess in Auto WB DPP has to do what all the other Raw processors to to determine a WB estimate. I imagine that involves reading an RGB value for each pixel, averaging it out, then using that average to determine temperature/tone/hue whatever. Obviously that becomes hit-or-miss with Auto WB, and with other processors who can't read a Fixed/Custom WB like DPP can.

But how the eyedropper works has to do a similar "average" of a few pixels then set them to "medium" but I think it would fail to determine the temp of the scene, just of the target. Let's see, take the RGB values of a target and you compare it to "medium" and you then can determine the comparative yellow-blue and red-green values to "medium", right? Something like that? You'd have to have a value range for temp and hue...of course I'm just doing speculative babbling here...


Tony
Two Canon cameras (5DC, 30D), three Canon lenses (24-105, 100-400, 100mm macro)
Tony Long Photos on PBase (external link)
Wildlife project pics here (external link), Biking Photog shoots here (external link), "Suburbia" project here (external link)! Mount St. Helens, Mount Hood pics here (external link)

  
  LOG IN TO REPLY
yb98
THREAD ­ STARTER
Goldmember
Avatar
2,625 posts
Likes: 36
Joined Feb 2003
Location: Paris
     
Nov 11, 2010 12:26 |  #9

I have found this : http://en.wikipedia.or​g/wiki/Color_balance (external link)
It explains how to apply a custom white balance but it doesn't say how to convert it in a color temperature unit...


Best DPP Threads
DPP++ Video Channel (external link)
New Version DPP++ 11.3 released (external link)

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 569
Joined Sep 2007
Location: Vancouver, WA USA
     
Nov 11, 2010 12:55 |  #10

Well, Lightroom breaks things up into Temp, which goes from Blue to Yellow, which is a combination of Red and Green. Tint goes from Green (Blue+Yellow) to Red.

So, I guess you could approach it really simply by first comparing the Blue value with the (R+G)/2 value so that the difference would represent the Temp and then compare the Red to the (G+B)/2 to come up with the relative tint/hue. DPP has a different layout from LR but in the camera you can set a Temp and also a Hue/Color Tone rather than a Custom WB or whatever.

Like I said, that's probably a very simplistic approach...


Tony
Two Canon cameras (5DC, 30D), three Canon lenses (24-105, 100-400, 100mm macro)
Tony Long Photos on PBase (external link)
Wildlife project pics here (external link), Biking Photog shoots here (external link), "Suburbia" project here (external link)! Mount St. Helens, Mount Hood pics here (external link)

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

2,430 views & 0 likes for this thread, 5 members have posted to it.
From Custom White Balance to Color Temperature ?
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
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 is Marcsaa
689 guests, 116 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.