11

I captured a Raw image using my Canon 450D. When imported this RAW(CR2) file into Lightroom and Photoshop CS5, it showed the Temperature as 4900 and White Balance setting - "As shot". When I checked the EXIF data associated to this raw CR2 file, there is no mention of the colour temperature setting in it.

I used Irfanview to see this EXIF data. Irfanview + Canon raw plugin can open this Canon raw CR2 file.**

  1. So how does Photoshop/Lightroom compute the colour temperature from the Raw image data?

  2. Would be interested in knowing What kind of algorithm/mathematical computation it does to get this temeprature number?

  3. Could it be possible that the CR2 raw file has this Colour temperature information embedded into it, but Irfanview Exif information display somehow missed it/messed it?

Any pointers would be useful.

mattdm
  • 143,140
  • 52
  • 417
  • 741
goldenmean
  • 1,219
  • 1
  • 14
  • 25

1 Answers1

16

It is in the EXIF data, but the info is under Canon tag. For any EXIF-related tasks, I wholeheartedly recommend ExifTool by Phil Harvey.

Here's an example of a real file (which coincidentally was shot with Canon 450D)

$ exiftool -canon:"WB_RGGB*" -canon:"*temp*" MG_5366.CR2
WB RGGB Levels As Shot          : 2270 1024 1024 1520
WB RGGB Levels Auto             : 2270 1024 1024 1520
WB RGGB Levels Measured         : 2267 1023 1024 1518
WB RGGB Levels Daylight         : 2245 1024 1024 1425
WB RGGB Levels Shade            : 2595 1024 1024 1197
WB RGGB Levels Cloudy           : 2422 1024 1024 1299
WB RGGB Levels Tungsten         : 1660 1075 1075 2222
WB RGGB Levels Fluorescent      : 1960 1024 1024 1945
WB RGGB Levels Kelvin           : 2245 1024 1024 1425
WB RGGB Levels Flash            : 2485 1024 1024 1273
Camera Temperature              : 18 C
Color Temperature               : 5200
Color Temp As Shot              : 4955
Color Temp Auto                 : 4955
Color Temp Measured             : 4955
Color Temp Daylight             : 5200
Color Temp Shade                : 7000
Color Temp Cloudy               : 6000
Color Temp Tungsten             : 3200
Color Temp Fluorescent          : 3776
Color Temp Kelvin               : 5189
Color Temp Flash                : 6310

NB: Windows users: double-check that you use double-quotes, not single quotes.


EDIT: The Color Temp infos are "nice to know" data, but they do not hold any other value than informational. The °Kelvins are probably based on camera's WB calculations and post-processing software most likely uses the WB RGGB Levels data.

I tested this by changing the Color Temp As Shot value from 52007000 and opened the file in Photoshop (Adobe Camera Raw). Nothing did change.

Then I changed the WB RGGB Levels As Shot value of a copy of the original file from 2270 1024 1024 15201000 1000 1000 1000 and the image changed to this:

wb rggb change

I did not change the Color Temp As Shot value, but Adobe Camera Raw shows the temperature as 2150 (tint -144)

Summa summarum: Adobe Camera Raw calculates the "Color Temperature" from the EXIF-data, from WB_RGGBLevels* tag, under the Canon group (under the Maker Notes group).

Jari Keinänen
  • 2,279
  • 2
  • 28
  • 44
  • @Koiyu: Thanks. I donwloaded the exiftool and checked the CR2 file I have, and it showed no information related to temperatur/WB in it. Is it possible for you to check my RAW CR2 file from: https://docs.google.com/leaf?id=0ByuMwWMOjsD0MWFmNjRlMTQtZDcwZS00MzEzLWE0MjktMWRmMjdhY2E5Yjkx&hl=en and let know the outcome of exiftool for colour temperature related data in it. Or else something is amiss with the Raw mode setting which I did while I captured this file. – goldenmean Apr 28 '11 at 17:04
  • @goldenmean sadly, the "download original" option under "File" is grayed out. Is there any other way for you to share the file? (or am I doing something wrong) – Jari Keinänen Apr 28 '11 at 17:08
  • @Sorry my error. Pls check the link in my comment above now. Its a zip file having the CR2 inside it. – goldenmean Apr 28 '11 at 17:09
  • @Koiyu: When I run exiftool on my CR2 image which I shared with you, this is the result:- https://docs.google.com/leaf?id=0ByuMwWMOjsD0ZDU1ZDYzZGItODBjMS00MmU5LWJhY2MtMDQ1MWUyNjUxYmJi&hl=en – goldenmean Apr 28 '11 at 17:19
  • 1
    @goldenmean, I updated koiyu's correct answer with the dump from your file. BTW, in my experience IrfanView only shows a dumbed down subset of exif, it shouldn't be trusted for much beyond the basics. ExifTool FTW. – cabbey Apr 28 '11 at 17:20
  • @goldenmean This is what I got with exiftool -g1 -h MG_5366.CR2 > MG_5366.html (-h makes html output and -g1 prints specific group headings (such as canon used in my answer)) http://baa.fi/se/MG_5366.html – Jari Keinänen Apr 28 '11 at 17:23
  • @Koiyu: Thanks for the result. But I dont see that outout. I am using exiftool(Windows Executable) version 8.56 with commandline as: exiftool -canon:'WB_RGGB' -canon:'temp*' /Users/cabbey/Downloads/MG_5366.CR2 – goldenmean Apr 28 '11 at 17:23
  • @Koiyu: Now I get what you showed. exiftool -g1 did the trick. thank you so much. – goldenmean Apr 28 '11 at 17:28
  • @goldenmean I tested the command in my answer with the Windows executable and it seems you need to use double quotes instead of single quotes. I.e. exiftool.exe -canon:"WB_RGGB*" -canon:"*temp*" file.CR2 should work – Jari Keinänen Apr 28 '11 at 17:31
  • (and as a side note the -g+number option just visually groups the data. You should get full dump just with exiftool.exe file.CR2) – Jari Keinänen Apr 28 '11 at 17:34
  • @Koiyu: Thanks. But now I see a difference in Colour temperature as shown by Adobe Photoshop and exiftool. e.g. for the image I shared with you - Adobe PS = 6400. Exiftool = Color Temp As Shot : 6844. Any ideas why this discrepancy? – goldenmean Apr 28 '11 at 17:43
  • @goldenmean are you sure it's the same file? Both cabbey's and mine dumps show Color Temp As Shot as 4955 and if I open the file in Photoshop, I get temperature as 4900 (and +17 tint). Anyway, I think the WB RGGB levels play more crucial role in how Adobe Camera Raw interprets "color temperature" rather than the lone °Kelvin value. – Jari Keinänen Apr 28 '11 at 17:55
  • @Sorry not the same file but some other one, still Adobe PS + tint is not equal to what is given by exiftool. lot of difference. – goldenmean Apr 28 '11 at 18:01
  • @goldenmean the Color Temperature doesn't actually matter. Only the WB RGGB Levels do; see my edit. – Jari Keinänen Apr 28 '11 at 18:31
  • @koiyu:Thanks for conducting this 'experiement' and sharing this info. – goldenmean May 03 '11 at 13:54