(Page 2 of 5 pages for this article  <  1 2 3 4 >  Last »)

Monday, February 02, 2009

Filed under: CamerasPost ProductionProductionTipsTraining

The Not-So-Technical Guide to S-Log and Log Gamma Curves

Art Adams | 02/02

What you need to know about log curves—with hardly any math at all

THE WASTE OF COUNTING BITS

Linear gamma images, in their raw form, are unwatchable: most of the image will appear very dark because the vast majority of luminance values in an average scene are going to fall into one quarter of the bits. Out of 16,384 steps per channel, flesh tone is probably going to fall around 2048 or so, which is pretty far down. Cameras apply what Sony calls a “coarse” gamma correction of .45 to this linear image in order to brighten up the shadows and mid-tones and make it viewable on any Rec 709-compliant TV monitor.

Side note: CRT monitors have a natural gamma response of 2.2, which is the inverse of .45. It was long ago decided that cameras would encode linear images with a .45 gamma curve so that the pictures would appear normal on CRTs. LCD monitors do not have this natural 2.2 gamma response so they are designed to artificially mimic it in order to stay compliant with existing standards.

The problem is that linear gamma is somewhat the opposite of logarithmic gamma, which is how our eyes see. Without getting into hardcore math, this is how logarithmic gamma works:

Imagine one lit candle in a dark room. If we light fifteen additional candles, one at a time, the sequence of total candles lit looks like this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

By the time the sixteenth candle is lit you might assume that the room would appear to our eyes to be sixteen times as bright as it did with one candle lit. But because we see in logarithmic values, the room actually only seems four times as bright as it did when the first candle was lit.

A logarithmic change means that the apparent change in brightness between one candle and two is the same to our eyes as between two candles and four. Adding four more candles, for a total of eight, looks like the same brightness increase as increasing the number of lit candles to sixteen.

The top line is the number of candles, and the bottom line shows the perceptual steps where our eyes see the SAME apparent increase in brightness:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

1 2   4       8                     16

And there’s the difference between linear and log gamma:

The sensor (linear gamma) counts ALL the candles, even though our eyes gradually stop seeing small increases in brightness due to the lighting of individual candles because each additional candle is perceptually too small to count.

Our eyes (log gamma) look at brightness in terms of how bright the first step is (adding a second lit candle to the first) and how much change needs to occur to see that step again (adding four candles to four, adding eight candles to eight, etc.).

Here’s another way to look at this scenario. In order for the eye to start at one brightness level and then see four additional steps of equal brightness:

1+1+1+1+1

We need to light the following numbers of candles:

1 2 4 8 16

It’s important to notice that the logarithmic steps get bigger as the room appears brighter, because that’s how we perceive reality. Our eyes are very good at detecting small steps in dark and mid-tones but the brightness steps get much bigger when we look at bright objects. This is the opposite of how a sensor sees, because linear gamma allocates the most, and smallest, steps to highlights and the least, and biggest, steps to mid-tones and shadows.

On to the main course on page three…

(Page 2 of 5 pages for this article  <  1 2 3 4 >  Last »)

                    Clip to Evernote

 

The Best of Stunning Good Looks

Art Adams | 08/30

A directory of my best articles, sorted by topic.

This entry is a guide to my best articles, sorted by topic. Enjoy!

How to get the “24p” look for your live-switched multicam shoot

Allan Tépper | 02/10

A contracted article, sponsored by Datavideo Corporation.

image

Our friends at Datavideo recently asked me to write an article called How to get the “24p” look for your live-switched multicam shoot. The article covers many factors…

Anton/Bauer Provides Rock-Solid Dependability For “The Amazing Race” As It Treks Across The Globe

PVC News Staff | 02/06

The Amazing Race uses Anton/Bauer to ensure all cameras have enough power to capture every exciting moment the contestants encounter.

image

Since their first day of production back in 2001, crew members of the hit reality television series “The Amazing Race” have counted on Anton/Bauer® products to power them through…

You must be registered to comment. This is an effort to reduce spam. Please REGISTER HERE.

You say that the origin of ETTR is in wanting to encode data more precisely.

I don’t know about the origins of ETTR, but I would say the main advantage of ETTR is not increased precision, but decreased noise (because darker areas are noisier on digital cameras).

Posted by Charles Angus  on  01/31  at  09:04 PM


The best way to think of exposing digital cinematography cameras is to think of them as being like reversal film stock… Make any sense with respect to ETTR?

The problem with digital cameras is they can clip too harshly, so make sure highlight exposure is correct, and almost let shadow detail fall where it will, adding fill lighting as required.

The extended range gamma curves described here help by maximising the range available, so putting off the clip (saturation) point.

Posted by Steve Shaw  on  02/04  at  10:16 AM


good article!

Posted by billS  on  02/05  at  06:16 PM


Hey Art!
Thanks for the Article.

I have to say that one thing that really bugs me is the inconsistency in definitions/understandings of all this business.

After reading a thread on CML and thinking that I “got it”, I saw people chime in on the thread and disagree with the person who basically schooled everyone.

Where do we draw the line? (or the curve)? Who is to believe?

When is this information going to be widely available, and in layman’s terms? It becomes increasingly frustrating to try and figure out the magic of a camera, and waste your energy on doing so, instead of creating good work.

How can someone like me visualize the differences in Linear/log, instead of reading it? After all, most of us behind the camera don’t react to something emotionally till we visualize it…

Thank you for the article. I will have to read it a few more times to have everything sink in.

Jamie

Posted by .(JavaScript must be enabled to view this email address)  on  01/21  at  05:01 PM


I should probably work on making it a lot simpler to understand. Here’s the bottom line:

Linear records ALL the data off the sensor, but the way the sensor records information it saves much more highlight info than shadow info. 50% of linear data describes detail in your brightest highlights… which is a complete waste, because you don’t often have much in the way of bright detailed highlights in the shot.

Log remaps these values when they are stored so that you only record perceptually equal steps (steps that your eye can see the difference in)  instead of every bit of data in linear, which records tons more info in highlights than the eye can see.

Linear gamma looks really dark. It must have a gamma curve applied to it to make it look proper on a CRT or LCD display. In raw form it contains every bit the sensor captured.

Log gamma looks really flat. It doesn’t contain nearly as much data as linear gamma but most of the time that’s okay, because it records brightness in perceptually equal steps and doesn’t favor either highlights or shadows.

Both should offer excellent results, depending on the post house. RED’s “raw” isn’t really linear raw because it has a slightly different gamma curve applied, but it’s pretty close and it is 12-bit color (although heavily compressed). S-Log is only 10-bit color, but that seems to be fine as it hasn’t hobbled the numerous TV shows and features shot that way.

12-bit linear has close to 4096 possible steps of brightness per color channel. (Some bits at the top and bottom are reserved for meta data.) This is linear data so half of this goes immediately to the brightest highlight details. Not very efficient.

10-bit log has close to 1024 steps of brightness per color channel. (Some bits are reserved here as well, so the entire range isn’t used for image data.) The brightness values are spread out much more evenly than linear, though.

I’m not going to say I understand it all well enough to lay out all the definitions and be right on every one. I’ve got an overall idea of how all this is supposed to work. The bottom line is that both methods work fine as long as your post house is competent.

The one thing you don’t want to do is have a post pipeline where the footage drops down to 8-bits. That looks really nasty, and can happen when dealing with Final Cut Pro or if the footage gets dumped to HDCAM at some point. The banding and color noise are horrible.

Posted by Art Adams  on  01/21  at  05:28 PM


Name:

Email:

Location:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:











The Best of Stunning Good Looks

Art Adams | 08/30

A directory of my best articles, sorted by topic.

This entry is a guide to my best articles, sorted by topic. Enjoy!

How to get the “24p” look for your live-switched multicam shoot

Allan Tépper | 02/10

A contracted article, sponsored by Datavideo Corporation.

image

Our friends at Datavideo recently asked me to write an article called How to get the “24p” look for your live-switched multicam shoot. The article covers many factors…

Anton/Bauer Provides Rock-Solid Dependability For “The Amazing Race” As It Treks Across The Globe

PVC News Staff | 02/06

The Amazing Race uses Anton/Bauer to ensure all cameras have enough power to capture every exciting moment the contestants encounter.

image

Since their first day of production back in 2001, crew members of the hit reality television series “The Amazing Race” have counted on Anton/Bauer® products to power them through…

Revisiting the RED workflow, Smoke 2012 style

Marc-Andre Ferguson | 02/03

image

My love affair with RED Digital Cinema began in 2007, when my brief stint as demo artist in the NAB RED booth turned into a regular gig at events and trade shows.…

To be considered for listing, contact pr (at) provideocoalition (dot) com


Copyright © 2011, HD Expo, LLC a division of Diversified Business Communications. DBA Createasphere

All rights reserved. HD EXPO, High Def EXPO, Createasphere, E-Tech, Entertainment Technology Exposition, 3D Production Workshop, VariCamp, P2 Camp, ColorCamp 101, and Lighting, Filters & Gels for HD are all trademarks of HD Expo, LLC.

Terms of Use  |  Privacy Policy

Check PageRank