Tools

Slugline. Simple, elegant screenwriting.

Red Giant Color Suite, with Magic Bullet Looks 2.5 and Colorista II

Needables
  • Sony Alpha a7S Compact Interchangeable Lens Digital Camera
    Sony Alpha a7S Compact Interchangeable Lens Digital Camera
    Sony
  • Panasonic LUMIX DMC-GH4KBODY 16.05MP Digital Single Lens Mirrorless Camera with 4K Cinematic Video (Body Only)
    Panasonic LUMIX DMC-GH4KBODY 16.05MP Digital Single Lens Mirrorless Camera with 4K Cinematic Video (Body Only)
    Panasonic
  • TASCAM DR-100mkII 2-Channel Portable Digital Recorder
    TASCAM DR-100mkII 2-Channel Portable Digital Recorder
    TASCAM
  • The DV Rebel's Guide: An All-Digital Approach to Making Killer Action Movies on the Cheap (Peachpit)
    The DV Rebel's Guide: An All-Digital Approach to Making Killer Action Movies on the Cheap (Peachpit)
    by Stu Maschwitz

Entries in Image Nerdery (53)

Monday
Feb062006

Linear Color Workflow in AE7, Part 1

When AE7 was announced, I posted a list of ten cool things you can do with it. Let's dive right in to one of the biggest, which is that you can scrap eLin and work in a true linear floating point color space.

Warning: The following may have the effect of making AE7's 32-bit float mode sound more complicated than it inherently is, so let me stress that none of what I describe here is strictly necessary for enjoying AE7's new color mode. If you want to experiment with the increased quality and overbright performance of float, just pop your project into float mode and start experimenting. But if you've warmed up to a linear color workflow, perhaps via eLin or similar techniques, then read on for the AE7 equivalents.

The first thing you'll note about AE7's Project Settings dialog is that it has grown substantially. There's now a pop-up for your Project Working Space. This is a the first baby steps of ICC color management in AE. It's not a complete implemengtatjon in 7.0, but it is usable, and it's perhaps the easiest way of working in a linear color space.



What you're going to do is select 32 bits per channel (float), and then select a linear color profile as your Project Working Space. The problem is that no linear, or gamma 1.0 profiles ship with AE7. So quit AE and download this file:

linearProfiles.zip (4kb zip file)

Unzip it and add the two files contained within to your collection of ICC profiles. On the Mac, that's:

~/Library/ColorSync/Profiles/

On Windows, it's:

C:\Program Files\Common Files\Adobe\Color\Profiles

Restart After Effects, create a new project, and access the Project Settings Window. Select 32bpc mode, and then select one of these two linear profiles as your Project Working Space.

How do you choose between them? Good question, one that entire books have been written to address for the Photoshop community that's been dealing with the joys and pains of ICC color management since before we had RAM preview. You could do worse than to go read two or three of those books right now. If, afterwards, you still have the will to live, pick one of the two profiles at random and plow ahead.



You now have a floating-point project with a linear Working Space. Import a familiar image, preferably one with an ICC profile embedded. Add it to a comp and view the result.

The image will look too bright. Why? Well, AE doesn't recognize the embedded profile. That's right, here's where AE's fledgeling color management leaves us hanging. AE is assuming that the imported footage is already in the Project Working Space. It's not. It's gamma-encoded, so it looks too bright. We have to manually convert the gamma-encoded colors in our image to the linear Project Working Space.

We do this with Effect > Utility > Color Profile Converter. Apply this effect to your image and observe the Effects Controls. You'll see pop-ups for two profiles, Input and Output. The idea here is that we convert the pixels from the image's native color space to that of the project. So set Input Profile to the correct profile for the image, the one embedded within it. Leave Output set to Project Working Space.



Now the image in the comp viewer should look correct. You've converted your pixels to linear light values and your linear image is not only being gamma corrected for display, it's also being display compensated using ICC color management. In other words, for the first time ever, and whether you like it or not, this image will look the same in After Effects as in Photoshop.

There's much more to discuss, but we had to start somewhere. Please comment, query, cry, or acquiesce.

Wednesday
Nov162005

sRGB

The sRGB luminance curve is designed to be an approximation of a gamma 2.2 curve, but with a straightline portion near zero to avoid rounding errors in conversions.

Duh.

It's hard to find good online resources with the to- and from-sRGB conversions expressed in language compatible with nerdy compositing applications, so I thought I’d consolidate some findings here.

Spitzak has the sRGB to linear conversion right:

x < .04045 ? x/12.92 : pow((x+.055)/1.055, 2.4)

And here’s its inverse:

x < .0031308 ? x*12.92 : (1.055*pow(x,1/2.4)) -0.055

The question mark is an if/then. If the conditional before it is true, do what’s before the colon. If false, do what’s after.

Boom.

Wednesday
Aug242005

terminology

By far the best thing about all this linear color workflow stuff is that people can easily use one term to mean completely opposite things. For instance, we say that an image with a gamma of 2.2 looks right on a monitor of gamma 2.2, but in truth one of those is really the opposite of the other so that they can cancel out.*

Throb.net has a very good breakdown of using a linear-light workflow in 3D. In fact, part of it looks strangeley familiar. But in Throb’s graycard example, he uses the opposite terminology from mine.

He calls is darker card, the one that has not been corrected for display, “gamma encoded,” and calls the one that looks right to our eye “linear.” This terminology disagrees with mine, and with that of the inimitable Bill Spitzak. I like to use linear to describe linear light intensities, whereas Throb tends to use it to describe perceptual linearity.

But a perceptually linear image is indeed gamma-encoded, so I still think Throb’s page is a little confusing. I’m guessing he’s saying that the dark image you see is effectively gamma-encoded by the display device?

He and I and others actually had a conversation earlier this year on the Highend2D Shake mailing list about how corn-fusing all this stuff is. It boils down to the difference of describing the data in the file vs. the light that hits your eye. Perceptually linear = gamma encoded file. Perceptually dark = linear data.

It's always dangerous when some random website, mine included, starts claiming to be authoritative on matters of color, so I've always been carefull to be consistent with my terminology, label it as mine and not necessarily everyone’s, and declare my assumptions. Looks like Throb has a similar policy.

Lastly, I’d be remiss if I didn’t point out that there is a magnificent chapter by Brendan Bolles on all this stuff in AE 6.5 Studio Techniques.

* And for that, I do apologize.

Wednesday
Jul202005

More free image nerdery

ImageJ, a public domain, cross-platform (Java), 32-bit image processing program.

What does it mean? I don't know.