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 Cameras, Lenses & Accessories Canon Digital Cameras 
Thread started 20 Jun 2014 (Friday) 22:42
Search threadPrev/next
sponsored links (only for non-logged)

Accuracy of Raw vs. JPEG in camera histograms.

 
AJSJones
Goldmember
Avatar
2,647 posts
Gallery: 6 photos
Likes: 92
Joined Dec 2001
Location: California
     
Jun 20, 2014 22:42 |  #1

We had a discussion recently about in-camera histograms. Magic Lantern has software that allows the evaluation of in-camera raw histograms as distinct from the histograms Canon software presents which are based on the processed jpeg determined by color balance, picture style parameters etc. They have an explanation and illustration towards the bottom of the post here (external link)

The issue was raised by observations that Canon's processing, to a jpeg for Live View, exaggerates the exposure in the histogram compared to what could be optimally recorded by the sensor.

In the bottom right hand corner of the ML shot is the raw histogram showing the red and green channels just to the left of the right edge - i.e. below clipping/saturation. (The D10.6 is a live estimate of the dynamic range for the shot)

IMAGE: https://dl.dropboxusercontent.com/u/34113196/ML/Tutorial/RAW_Exposure_Feedback/JPG1.jpg

This second image shows the histogram a user would see if using the Canon firmware and what looks like a lot of red clipping, so you would typically dial back the exposure to get the red channel away from the right edge of the histogram. You would therefore lose some significant dynamic range and the resulting shadows would be unnecessarily noisier. The shape and positions of the color channel histograms are controlled by the picture style settings (contrast in particular) and WB chosen. One should therefore be aware of what those settings do when evaluating exposure based on the Canon jpeg histogram, especially if trying to capture optimum DR. Not surprisingly Magic Lantern has an "Auto ETTR" function available for just those situations :D
IMAGE: https://dl.dropboxusercontent.com/u/34113196/ML/Tutorial/RAW_Exposure_Feedback/JPG2.jpg

My picture galleries (external link)

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Jun 21, 2014 00:32 |  #2

Good info, thanks for sharing!

Magic Lantern released a version that they say will work on the 5D Classic, but I downloaded it and tried to install the firmware and got a FAIL, don't know if I flubbed it or what, I'll have to check with them!


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
WaltA
Goldmember
Avatar
3,871 posts
Gallery: 10 photos
Likes: 120
Joined Feb 2006
Location: Ladysmith, BC, Canada
     
Jun 21, 2014 10:35 |  #3

tonylong wrote in post #16984739 (external link)
Good info, thanks for sharing!

Magic Lantern released a version that they say will work on the 5D Classic, but I downloaded it and tried to install the firmware and got a FAIL, don't know if I flubbed it or what, I'll have to check with them!

Tony, that s/w is very flawed and no longer supported. Its caused my 5d to lock up quite a bit so I uninstalled it. Be careful of it.

PS check my posts on the ML forum


Walt
400D, 5D, 7D and a bag of stuff

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Jun 21, 2014 13:34 |  #4

WaltA wrote in post #16985346 (external link)
Tony, that s/w is very flawed and no longer supported. Its caused my 5d to lock up quite a bit so I uninstalled it. Be careful of it.

PS check my posts on the ML forum

Ah, OK, I'll stay away from it, thanks Walt!


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
bsmotril
Goldmember
Avatar
2,543 posts
Gallery: 11 photos
Likes: 402
Joined Feb 2006
Location: Austin TX
     
Jun 21, 2014 13:41 |  #5

The histogram on the camera's LCD is calculated using whatever white balance and/or picture style setting you have configured in the camera, essentially showing the graph applied to the in camera rendered JPEG. If you want the histogram to be more accurate, simply go into your picture style and lower the sliders for contrast and saturation all the way down. You really don't need any additional firmware or SW to get a more accurate idea of what the sensor has captured.


Gear List
Galleries: http://www.flickr.com/​photos/smopho/ (external link) --- http://billsmotrilla.z​enfolio.com/ (external link)

  
  LOG IN TO REPLY
CyberDyneSystems
Admin (type T-2000)
Avatar
52,922 posts
Gallery: 193 photos
Likes: 10114
Joined Apr 2003
Location: Rhode Island USA
     
Jun 21, 2014 13:44 |  #6

bsmotril wrote in post #16985633 (external link)
The histogram on the camera's LCD is calculated using whatever white balance and/or picture style setting you have configured in the camera, essentially showing the graph applied to the in camera rendered JPEG. If you want the histogram to be more accurate, simply go into your picture style and lower the sliders for contrast and saturation all the way down. You really don't need any additional firmware or SW to get a more accurate idea of what the sensor has captured.

Good tip! Never thought of this even though I've been aware of the discrepancy for years.
Has anyone tested this to be sure? I think I'm going to set all my cameras to a custom style now.

Good thread :)


GEAR LIST
CDS' HOT LINKS
Jake Hegnauer Photography (external link)

  
  LOG IN TO REPLY
WilsonFlyer
Goldmember
1,251 posts
Gallery: 2 photos
Likes: 872
Joined Mar 2011
     
Jun 21, 2014 13:46 as a reply to  @ bsmotril's post |  #7

ML is no longer supported? Do tell.




  
  LOG IN TO REPLY
pwm2
"Sorry for being a noob"
Avatar
8,626 posts
Likes: 3
Joined May 2007
Location: Sweden
     
Jun 21, 2014 13:55 |  #8

The Canon histogram is correct for people who shoot JPEG only.


5DMk2 + BG-E6 | 40D + BG-E2N | 350D + BG-E3 + RC-1 | Elan 7E | Minolta Dimage 7U | (Gear thread)
10-22 | 16-35/2.8 L II | 20-35 | 24-105 L IS | 28-135 IS | 40/2.8 | 50/1.8 II | 70-200/2.8 L IS | 100/2.8 L IS | 100-400 L IS | Sigma 18-200DC
Speedlite 420EZ | Speedlite 580EX | EF 1.4x II | EF 2x II

  
  LOG IN TO REPLY
AJSJones
THREAD ­ STARTER
Goldmember
Avatar
2,647 posts
Gallery: 6 photos
Likes: 92
Joined Dec 2001
Location: California
     
Jun 21, 2014 14:40 |  #9

CyberDyneSystems wrote in post #16985641 (external link)
Good tip! Never thought of this even though I've been aware of the discrepancy for years.
Has anyone tested this to be sure? I think I'm going to set all my cameras to a custom style now.

Good thread :)

That's why many people dial contrast down to a minimum - the highlights are not "multiplied" so much and don't get as close to the right hand side.
The processing for the preview is obviously necessary to see a reasonable image, but the histogram is often/usually what people go by to judge exposure settings.

If you don't want to process after capture, then you want the color channels not to be blown out in the processed image, so the presentation of the processed histogram is appropriate for that situation. In the above example, you would need to dial down the exposure to get the (processed) red values down to below saturation/clipping/bl​owout for the resulting jpeg. That means the actual captured values in the red channel are a long way below maximum (so they don't blow out after being multiplied as WB is applied) and results in some possibly significant loss of overall captured DR. Most of the time, that's not going to matter much, if at all, to the end result.

If you are prepared to process after the fact and therefore shoot raw, you may well be someone who wants to get the most DR at the capture stage. That means knowing that the unprocessed values for each sensel are below max and not blowing out (even if they might blow out when the data multipliers are executed for jpeg processing). So that's when you need to use the raw histogram as a judge of how far to the right the histogram should go. So the "best of both worlds" here is to have the preview based on typical processing preferences but use the raw to judge the actual exposure settings. Then you wouldn't have to have a washed out greenish preview just to get max DR. Then you can start PP on the raw data knowing that nothing was blown out (in the regions of interest) and that the shadows are as good as they can be for that image.

The histogram display in ML also has little indicators when any channel blows out and what % of pixels in that channel are doing it, so accommodating some % of blow out in e.g., specular highlights, is easier. Whether this approach is worth the effort is obviously an individual opinion. (Of course, if you also like a built-in intervalometer, unlimited HDR bracketing, automated focus stacking, focus peaking, trap focus, auto ETTR etc, then the "worth" of ML might increase - and then there's all the video stuff:D).

It seems it would be quite simple for Canon to have a CFn for the histogram display to switch between jpeg and raw for this purpose. If they "let" us shoot raw, we should have the best tools for assessing its capture:D


My picture galleries (external link)

  
  LOG IN TO REPLY
davesrose
Title Fairy still hasn't visited me!
4,568 posts
Likes: 879
Joined Apr 2007
Location: Atlanta, GA
     
Jun 21, 2014 15:23 as a reply to  @ AJSJones's post |  #10

I've just tried taking some sample shots of a scene (same exposure settings, just keeping profile set at Faithful and going from a contrast +saturation of 0, -2, -4). When looking at the brightness histogram, I didn't see much of a change in the histogram but did see one in the preview jpeg.

In most instances, I have found I can gauge exposure based on the brightness histogram and faithful image profile. I've also found there's a feature in the 5DmkIII (and other recent Canons) that lets you preview and adjust the exposure range of the RAW (RAW image processing). It can save over the jpeg version, but looks like it's another tool where you can go up or down 1EV to check highlights and shadows (would be nicer if it went up or down at least 3EV):

https://www.youtube.co​m/watch?v=e-OUhzMuVBM (external link)


Canon 5D mk IV
EF 135mm 2.0L, EF 70-200mm 2.8L IS II, EF 24-70 2.8L II, EF 50mm 1.4, EF 100mm 2.8L Macro, EF 16-35mm 4L IS, Sigma 150-600mm C, 580EX, 600EX-RT, MeFoto Globetrotter tripod, grips, Black Rapid RS-7, CAMS plate and strap system, Lowepro Flipside 500 AW, and a few other things...
smugmug (external link)

  
  LOG IN TO REPLY
agedbriar
Goldmember
Avatar
2,657 posts
Likes: 399
Joined Jan 2007
Location: Slovenia
     
Jun 21, 2014 15:51 |  #11

CyberDyneSystems wrote in post #16985641 (external link)
Has anyone tested this to be sure?

Yes: Picture style Faithful, contrast to -4 and saturation to -3. (5D3)

I compared the blinking areas on the LCD to the overexposure warnings in RawDigger and they matched nicely. Can't be shure that it works so well on just every image though.


Edit: Shooting ETTR, I prefer blinkies to the histogram, for two reasons.

The line in the histogram, denoting clipping, is hard to see. Besides, I like to know where in the picture the clipping is taking place, as it may be acceptable at some locations.




  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Jun 21, 2014 16:21 |  #12

The effectiveness of dialing down the Contrast all the way depends on the scene and how you approach exposing it -- Contrast affects the highlights and shadows, not so much the mid-tones, so unless you are pushing your highlights "To The Right" you may not in fact see a substantial difference.

If you want to "play" with the idea, take a target that is white but with real "detail", like a white paper with print, a white feather, whatever. Set your exposure to render white as white, but without clipping, in other words so that the details on the paper/feather are properly rendered. But do this initially without relying on the histogram. In other words, spot meter the white "target" and then set your exposure to what would be "pushing" (to the right) but with Raw should also retain some detail.

For testing purposes, I've seen a +3 EV exposure for white actually retain detail, although you'd need to crank on your Hightlight Recovery software (I hear that the new DPP4 has some real gains in the Highlights).

If you've satisfied at the level at which you can push your white exposure, then, take a look at what your in-camera histogram and "blinkies" tell you, and play a bit with especially the Contrast, moving it from zero back to -4 and compare. If you have Live View you can compare the histogram before a shot and after, see what difference it makes!

In practice, I don't tend to push things "all the way", although just the knowledge that I have a bit more headroom than even my histogram and blinkies suggest with the Contrast dialed down gives me a bit of reassurance. Some scenes have highlights that you can "give up", of course, but it is a real pleasure when you can recover more than you realize!


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
Eyeball2
Member
132 posts
Likes: 3
Joined Jun 2014
     
Jun 21, 2014 16:47 |  #13

While not exactly a "groundswell", I am noticing more people becoming interested in a raw-based histogram. I think it would be really nice to have that option but I think I understand why camera manufacturers don't do it.

I think the reason is that many photographers don't have a good grasp of color management and going from wide-gamut to smaller-gamut color spaces has a bit of a learning curve to manage properly. You can see this lack of understanding still prevalent on photo forums with posts along the lines of "Canon is extra sensitive to reds", "the camera light sensors don't correctly measure highly-saturated colors", etc.. The truth is that probably a good 80% or more of "blown reds, oranges, and yellows" is due to trying to fit those colors into the sRGB color space. The raw file itself is perfectly fine.




  
  LOG IN TO REPLY
AJSJones
THREAD ­ STARTER
Goldmember
Avatar
2,647 posts
Gallery: 6 photos
Likes: 92
Joined Dec 2001
Location: California
     
Jun 21, 2014 17:05 |  #14

agedbriar wrote in post #16985805 (external link)
Yes: Picture style Faithful, contrast to -4 and saturation to -3. (5D3)

I compared the blinking areas on the LCD to the overexposure warnings in RawDigger and they matched nicely. Can't be shure that it works so well on just every image though.


Edit: Shooting ETTR, I prefer blinkies to the histogram, for two reasons.

The line in the histogram, denoting clipping, is hard to see. Besides, I like to know where in the picture the clipping is taking place, as it may be acceptable at some locations.

With those parameters, the number of cases where the histogram will mislead seems to be pretty small. The actual display of the Canon histogram has the problem you mention (it's been there as long as they've had histograms, almost as long as they've needed a MLU button, but we digress:D) so the right edge is hard to see. By the same token, with those parameters dialled in, the blinkies will be a pretty good reflection of the clipped areas so you can blow out only the areas that don't matter.


My picture galleries (external link)

  
  LOG IN TO REPLY
TeamSpeed
01010100 01010011
Avatar
40,862 posts
Gallery: 116 photos
Best ofs: 2
Likes: 8923
Joined May 2002
Location: Midwest
     
Jun 22, 2014 06:30 |  #15

davesrose wrote in post #16985784 (external link)
I've just tried taking some sample shots of a scene (same exposure settings, just keeping profile set at Faithful and going from a contrast +saturation of 0, -2, -4). When looking at the brightness histogram, I didn't see much of a change in the histogram but did see one in the preview jpeg.

In most instances, I have found I can gauge exposure based on the brightness histogram and faithful image profile. I've also found there's a feature in the 5DmkIII (and other recent Canons) that lets you preview and adjust the exposure range of the RAW (RAW image processing). It can save over the jpeg version, but looks like it's another tool where you can go up or down 1EV to check highlights and shadows (would be nicer if it went up or down at least 3EV):

https://www.youtube.co​m/watch?v=e-OUhzMuVBM (external link)

The 7D had this too, but not exposure, and even though the 5D3 has exposure, it is one stop either way, which seems odd to me.

Faithful is okay, neutral might be better, and even those have adjustments made for you under the covers that you cannot see. You might be able to see what those are with the picture style editor. Perhaps we could build our own picture style with Canon's editor and upload it back to the camera to be used when we want to see a truer rendition of the histograms, at least the brightness. The bigger issue is that the raw file has at least 1/2 stop extra headroom at each end, and there is no way to make the histogram in-camera show more range, correct?

http://cpn.canon-europe.com …features/pictur​e_style.do (external link)


Past Equipment | My Personal Gallery (external link) My Business Gallery (external link)
"Man only has 5 senses, and sometimes not even that, so if they define the world, the universe, the dimensions of existence, and spirituality with just these limited senses, their view of what-is and what-can-be is very myopic indeed and they are doomed, now and forever."

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

8,438 views & 0 likes for this thread, 14 members have posted to it.
Accuracy of Raw vs. JPEG in camera histograms.
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
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 semonsters
1077 guests, 114 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.