View Single Post
  #9  
Old December 7th 04, 06:44 PM
Timo Autiokari
external usenet poster
 
Posts: n/a
Default

On Mon, 06 Dec 2004 11:04:15 -0800, wrote:

reading digital photo histograms.


The histogram that digital cameras show is not logarithmic nor linear.

With current digital cameras the histogram shows the distribution of
the linear captured data after the data has been a) automatically
edited (finalized) by the firmware of the camera and b) compensated
for CRT viewing. So, in short, with most if not all digital cameras
the histogram is calculated from the camera finalized JPEG image. This
unfortunately is so even if one is shooting in the linear RAW mode.

In case the following three requirements are in effect:

1) the camera outputs the image data in the sadRGB color space (not
many do so even if the manufacturers may so indicate in the manual)

2) the camera does behave colorimetricly, in other words it does not
apply non-colorimetric "enhancements" (most if not all point&shoot
cameras are non-colorimetric and some dSLRs are also).

3) the coding system of the camera is such that it maps the captured
data up to level 255 (most do so)

then you can estimate your exposure value (EV) from the histogram
using the following table:

Histogram ends at 255 == EV 0
Histogram ends at 230 == EV -0.33
Histogram ends at 207 == EV -0.67
Histogram ends at 186 == EV -1
Histogram ends at 168 == EV -1.33
Histogram ends at 151 == EV -1.67
Histogram ends at 136 == EV -2
Histogram ends at 122 == EV -2.33
Histogram ends at 110 == EV -2.67
Histogram ends at 99 == EV -3
Histogram ends at 89 == EV -3.33
Histogram ends at 80 == EV -3.67
Histogram ends at 72 == EV -4

So, e.g. if the histo of your photo ends at level 207 it means that
you'd need to overexpose by +2/3 stops in order to capture hull
histogram (in other words to utilize the capability of the camera in
the best possible way).

Most cameras do not apply the sadRGB transfer function so the
following table that is calculated for gamma 1.72 space (native gamma
space of Mac systems) will often give more accurate estimation:

Histogram ends at 255 == EV 0
Histogram ends at 223 == EV -0.33
Histogram ends at 195 == EV -0.67
Histogram ends at 170 == EV -1
Histogram ends at 149 == EV -1.33
Histogram ends at 130 == EV -1.67
Histogram ends at 114 == EV -2
Histogram ends at 100 == EV -2.33
Histogram ends at 87 == EV -2.67
Histogram ends at 76 == EV -3
Histogram ends at 67 == EV -3.33
Histogram ends at 58 == EV -3.67
Histogram ends at 51 == EV -4

Now, a totally another issue then is the way how you perceive the
effect of the f/stops (aperture) when you look through the viewfinder
and change the aperture setting of the lens (while keeping the DOF
button pressed). In this situation the vision adapts (light
adaptation, it behaves about logarithmicly) so the change of the
aperture (that also has logarithmic scale) will be perceived as a
change that is equal in "effect" or in "amount", stop after stop, so
the perceived effect is about linear. That is the desired effect and
infarct the very reason why the aperture scaling was chosen to be
logarithmic.

Timo Autiokari
http://www.aim-dtp.net