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 08 Jan 2013 (Tuesday) 22:51
Search threadPrev/next
sponsored links (only for non-logged)

raw histogram

 
Unknown456
Member
90 posts
Likes: 1
Joined Mar 2011
     
Jan 08, 2013 22:51 |  #1

why can't camera manufacturers create a histogram that displays the true histogram for raw photos? anyone know why it hasn't been done?




  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 570
Joined Sep 2007
Location: Vancouver, WA USA
     
Jan 08, 2013 23:24 |  #2

Unknown456 wrote in post #15464208 (external link)
why can't camera manufacturers create a histogram that displays the true histogram for raw photos? anyone know why it hasn't been done?

A "Brightness" histogram of the Raw data would be pretty garbled. Even though the individual "sensels" do capture the photons, the actual values are discreet R, G and B "captures. The data then has to be "interpolated" in a process that allows an "averaging" of neighboring pixels and then "breaking things down" to individual RGB pixels.

This sensor design and process is known as the Bayer sensor design and interpolation process. It was, I believe, developed in the Kodak labs a bunch of years ago because visual/optical scientists determined that a resulting RGB image could successfully "present" itself to the human visual system. They also determined that more "accuracy" could be achieved by using twice as many "Green sensels" than the R and B sensels.

There is an alternative sensor design called the Foveon design used in some cameras that tries to "get" RGB pixels using "layered" R, G and B sensels, but it's not the designed in use by Canon, Nikon, etc.

Now, the thing to realize about the Raw data is that the Raw data is the actual R, G and B sensel data. The camera has not done the "interpolation", that is up to the Raw processor. Than means a couple things: first, the "averaging" of the neighboring sensels has not been applied. I've never seen a study of what the resulting Luminance histogram would be and how it may differ from what we see after the Raw processing, I can't comment on that. But the huge difference would show up in the RGB histogram, because of the green 'bias" that would show up before processing.

So, there are reasons why the in-camera histogram actually uses a processed jpeg that is "embedded" in the Raw file.

Now a consideration that a lot of us who shoot Raw bear in mind is that this jpeg uses the Picture Styles the camera is set to shoot, including a fair degree of Contrast and Saturation, which to a lot of us is not ideal, and so a lot of us set our Picture Style to Neutral and then dial back the in-camera Contrast and Saturation all the way.

What this does is let us view a histogram that would be closer to what you might see in an app like Lightroom and Camera Raw, and also to push our exposures more "To The Right" without the evidence of "clipping" showing up in a misleading way.

There are also Color considerations that have led some to play with the UniWhiBal technique, but I really haven't delved much into that. If you are wanting to know, you can actually do searches for "UniWhiBal" and get good info, and also ask here and hopefully the guys who know that stuff can chime in!


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
ejenner
Goldmember
Avatar
3,867 posts
Gallery: 98 photos
Likes: 1136
Joined Nov 2011
Location: Denver, CO
     
Jan 09, 2013 00:06 as a reply to  @ tonylong's post |  #3

One way I kind of get a 'raw luminance' estimate is just to look at the green channel and ETTR on that - generally, if you equalize all the channels, the image will be mostly green.

Of course, this doesn't work well if the entire scene is red or blue.


Edward Jenner
5DIV, M6, GX1 II, Sig15mm FE, 16-35 F4,TS-E 17, TS-E 24, 35 f2 IS, M11-22, M18-150 ,24-105, T45 1.8VC, 70-200 f4 IS, 70-200 2.8 vII, Sig 85 1.4, 100L, 135L, 400DOII.
http://www.flickr.com/​photos/48305795@N03/ (external link)
https://www.facebook.c​om/edward.jenner.372/p​hotos (external link)

  
  LOG IN TO REPLY
BigAl007
Cream of the Crop
Avatar
8,119 posts
Gallery: 556 photos
Best ofs: 1
Likes: 1682
Joined Dec 2010
Location: Repps cum Bastwick, Gt Yarmouth, Norfolk, UK.
     
Jan 09, 2013 07:02 |  #4

Tony one way to do a "RAW" histogram for checking if any one channel is saturated would be to have 4 of them, Red, Green, Green, Blue. As the Bayer filter is effectively alternating columns/rows of Red/Green and Blue/Green, giving the double quantity of green pixels. The resulting histograms would then show each results for each 2×2 sub-set of four red/green/green/blue sensels. That way you could ETTR and truly know if you have saturated any of the pixels. This could be achieved from the RAW data only and would not need to affect, or be affected by, the preview JPEG that is produced in the camera. Of course most camera owners would be terribly confused by RGGB histograms, but I see no reason not to make this available at least on high end cameras.

Alan


alanevans.co.uk (external link)

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 570
Joined Sep 2007
Location: Vancouver, WA USA
     
Jan 09, 2013 07:06 |  #5

Well, there ya go, nobody ever accuses me of being all "on top of this stuff" but fortunately we have some good contributors!!!


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
tzalman
Fatal attraction.
Avatar
13,497 posts
Likes: 213
Joined Apr 2005
Location: Gesher Haziv, Israel
     
Jan 09, 2013 10:31 |  #6

Unknown456 wrote in post #15464208 (external link)
why can't camera manufacturers create a histogram that displays the true histogram for raw photos? anyone know why it hasn't been done?

There is absolutely no reason or justification for it not being done at least in the "advanced models. (A soccer mom with a Rebel might find it confusing.) There have been several free applications with a Raw histogram (the UFRaw converter, Rawnalyze whose author is now diseased and Raw Digger http://www.rawdigger.c​om/ (external link) ) so there is no reason why it can't be in the firmware. Uni-WB can be a useful substitute if you don't mind WBing without an approximately close starting place in the converter. It is not a true Raw histogram because it is gamma corrected and Raw data is linear, but if all you use the histogram for is the placement of the white point, it does a good job.


Elie / אלי

  
  LOG IN TO REPLY
Unknown456
THREAD ­ STARTER
Member
90 posts
Likes: 1
Joined Mar 2011
     
Jan 09, 2013 19:34 as a reply to  @ tzalman's post |  #7

thank you tonylong for your detailed response. I did not really expect to get a real answer when I asked, you have given me a lot of things to learn about. And gave me a direction to start looking. thank you again. do you know if you would you still use the neutral picture style with contrast and saturation set to zero when using uniwhibal?




  
  LOG IN TO REPLY
HappySnapper90
Cream of the Crop
5,145 posts
Likes: 3
Joined Aug 2008
Location: Cleveland, Ohio
     
Jan 09, 2013 19:38 |  #8

Unknown456 wrote in post #15464208 (external link)
why can't camera manufacturers create a histogram that displays the true histogram for raw photos? anyone know why it hasn't been done?

RAW data cannot have a histogram, because it'd have to have settings to be used during conversion from RAW data to image file. How much contrast, how much saturation, what type of tone curve?

If using a Canon dSLR, set your picture style to "neutral" and that will be with as little contrast and saturation as choosable in a picture style.




  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 570
Joined Sep 2007
Location: Vancouver, WA USA
     
Jan 09, 2013 21:53 |  #9

Unknown456 wrote in post #15468290 (external link)
thank you tonylong for your detailed response. I did not really expect to get a real answer when I asked, you have given me a lot of things to learn about. And gave me a direction to start looking. thank you again.

Hey, glad to chip in. Realize, though, that I'm not a physics guy or an optical or vision scientist, or any kind of scientest, I've just researched these things from a layman's point of view...

Do you know if you would you still use the neutral picture style with contrast and saturation set to zero when using uniwhibal?

I always have my Picture Style set to Neutral and have my Contrast and Saturation setting set to -4 because I shoot Raw and prefer the extra "latitude" I get from "pushing things!


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
Kolor-Pikker
Goldmember
2,790 posts
Likes: 59
Joined Aug 2009
Location: Moscow
     
Jan 10, 2013 05:53 |  #10

HappySnapper90 wrote in post #15468307 (external link)
RAW data cannot have a histogram, because it'd have to have settings to be used during conversion from RAW data to image file. How much contrast, how much saturation, what type of tone curve?

If using a Canon dSLR, set your picture style to "neutral" and that will be with as little contrast and saturation as choosable in a picture style.

Faithful is a better profile than Neutral. IMO.

Raw histogram also doesn't make as much sense now, because both LR4 and CO7 can reconstruct highlight data if one or two of the color channels clip, this makes it possible to pull highlights by as much as a stop more than previously possible.


5DmkII | 24-70 f/2.8L II | Pentax 645Z | 55/2.8 SDM | 120/4 Macro | 150/2.8 IF
I acquired an expensive camera so I can hang out in forums, annoy wedding photographers during formals and look down on P&S users... all the while telling people it's the photographer, not the camera.

  
  LOG IN TO REPLY
BigAl007
Cream of the Crop
Avatar
8,119 posts
Gallery: 556 photos
Best ofs: 1
Likes: 1682
Joined Dec 2010
Location: Repps cum Bastwick, Gt Yarmouth, Norfolk, UK.
     
Jan 10, 2013 07:39 |  #11

Kolor-Pikker I agree that LR4 and I will take your word on CO7, as I have never tried it, are really good when it comes to recovering highlight data when only one channel has clipped. It would still be nice at least on some of the higher end cameras to offer RGGB (or RGBG depending on which way round the 2×2 grid you go) histograms from the RAW data. Yes calculating it may slow the camera a fraction but it colud be very useful to those who like to take maximum advantage of ETTR. As I said before it would not affect, or be affected by, the in camera JPEG processing options, although if you are shooting as far to the right as absolutely possible the in camera JPEG conversion is going to look "pants" anyway, no matter what in camera settings you have.

Alan


alanevans.co.uk (external link)

  
  LOG IN TO REPLY
tzalman
Fatal attraction.
Avatar
13,497 posts
Likes: 213
Joined Apr 2005
Location: Gesher Haziv, Israel
     
Jan 10, 2013 08:57 |  #12

HappySnapper90 wrote in post #15468307 (external link)
RAW data cannot have a histogram, because it'd have to have settings to be used during conversion from RAW data to image file. How much contrast, how much saturation, what type of tone curve?

What's this?

IMAGE: https://photography-on-the.net/forum/images/hostedphotos_lq/2013/01/2/LQ_632202.jpg
Image hosted by forum (632202) © tzalman [SHARE LINK]
THIS IS A LOW QUALITY PREVIEW. Please log in to see the good quality stuff.

Elie / אלי

  
  LOG IN TO REPLY
tzalman
Fatal attraction.
Avatar
13,497 posts
Likes: 213
Joined Apr 2005
Location: Gesher Haziv, Israel
     
Jan 10, 2013 09:11 |  #13

Raw histogram also doesn't make as much sense now, because both LR4 and CO7 can reconstruct highlight data if one or two of the color channels clip, this makes it possible to pull highlights by as much as a stop more than previously possible.

Although I am light-years away from the "get it right in the camera" gang, this is one area in which I try to avoid the computer's aid. The converters are amazing in the reconstructions they can do, but it's still a reconstruction; data from algorithms and not from optics. Just like good deconvolution sharpening like DPP's DLO is amazing, but it still can't turn a dog into an L lens. Nor can the best resampling turn a 300D into a 7D. To a confirmed pixel peeper the best image will be the one where the ETTR hasn't overshot the mark.


Elie / אלי

  
  LOG IN TO REPLY
Kolor-Pikker
Goldmember
2,790 posts
Likes: 59
Joined Aug 2009
Location: Moscow
     
Jan 10, 2013 13:53 |  #14

tzalman wrote in post #15470159 (external link)
Although I am light-years away from the "get it right in the camera" gang, this is one area in which I try to avoid the computer's aid. The converters are amazing in the reconstructions they can do, but it's still a reconstruction; data from algorithms and not from optics. Just like good deconvolution sharpening like DPP's DLO is amazing, but it still can't turn a dog into an L lens. Nor can the best resampling turn a 300D into a 7D. To a confirmed pixel peeper the best image will be the one where the ETTR hasn't overshot the mark.

Just saying, obviously it's not something you'd want to rely on, but it's there if you mess up.


5DmkII | 24-70 f/2.8L II | Pentax 645Z | 55/2.8 SDM | 120/4 Macro | 150/2.8 IF
I acquired an expensive camera so I can hang out in forums, annoy wedding photographers during formals and look down on P&S users... all the while telling people it's the photographer, not the camera.

  
  LOG IN TO REPLY
Curtis ­ N
Master Flasher
Avatar
19,129 posts
Likes: 11
Joined Apr 2005
Location: Northern Illinois, US
     
Jan 10, 2013 15:09 |  #15

tzalman wrote in post #15470122 (external link)
What's this?

Referring to the histograms in your post #12, I realize that there are twice as many green-filtered photocells as there are red and blue, but why have two green histograms when they're always going to be identical?


"If you're not having fun, your pictures will reflect that." - Joe McNally
Chicago area POTN events (external link)
Flash Photography 101 | The EOS Flash Bible  (external link)| Techniques for Better On-Camera Flash (external link) | How to Use Flash Outdoors| Excel-based DOF Calculator (external link)

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

2,800 views & 0 likes for this thread, 9 members have posted to it.
raw histogram
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 is johntmyers418
1072 guests, 110 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.