Color Science Explained — Transcript
Full transcript
- 0:00Hi!
- 0:00When we talk about image quality, most people focus on resolution—the
- 0:04number of pixels in an image, which is important for sure.
- 0:08But what about the qualities of each one of those pixels,
- 0:11such as bit depth, dynamic range, and color space?
- 0:15These are some of the key elements when it comes to color science.
- 0:19Understanding color science and management can fundamentally change how you capture,
- 0:23generate, or process images.
- 0:25That’s what we are going to be talking about in this video.
- 0:27Let’s take a look at each one of these one by one: bit depth, dynamic range, and color spaces.
- 0:33Bit depth refers to the number of bits used to define each color component of pixels.
- 0:38The more bits per pixel, the more colors you can represent.
- 0:41Let's take an 8-bit RGB image as an example.
- 0:44It uses 8 bits for each of the red, green, and blue channels.
- 0:49This means we can have 256 values per channel. When we combine these channels,
- 0:54we get about 16.8 million possible colors per pixel.
- 0:58Sounds like a lot of colors, but it actually provides very little room for editing.
- 1:02When you try to color grade, adjust colors,
- 1:05contrast, or exposure of your footage, you can easily get banding artifacts.
- 1:10That's why images used in professional workflows typically involve at least 10 bits.
- 1:15The bit depth determines how many colors can be represented but it
- 1:18doesn’t tell what colors and in what range of brightness can be represented.
- 1:22The range of brightness is determined by the dynamic range,
- 1:25which determines how dark and how bright a pixel can get.
- 1:28A high dynamic range is great, even if you're not using an HDR display.
- 1:32Because it lets you adjust the exposure after
- 1:35the fact without losing detail in the shadows or highlights.
- 1:38When the lightness of a pixel is out of boundaries of the dynamic range,
- 1:41it gets clipped and loses detail as a result.
- 1:44For example, I have a standard dynamic range image
- 1:47on the left and a high dynamic range (HDR) image on the right.
- 1:51At first glance, they might look the same, because this video itself is not high dynamic range.
- 1:56But if we lower the exposure in post, we'd see a big difference.
- 2:00The HDR image still retains the highlights. It had more dynamic
- 2:03range than a display can show. It had more room for editing.
- 2:07This was not the case for the SDR image. Look at all those highlights that were lost.
- 2:12HDR images use more bits to represent the higher dynamic range,
- 2:15but even with the same number of bits the dynamic range can be different.
- 2:19A logarithmic curve, for example, is often used
- 2:22to compress a wide range of luminance values into a smaller bit-depth range.
- 2:26This allows for more efficient storage while preserving detail
- 2:30in both the shadows and highlights. Which gives us flexibility in color grading and correction.
- 2:35This is also known as log profile on digital video cameras.
- 2:39Videos shot in log profile look washed out before any color grading is applied. This is because
- 2:44displays don't naturally interpret log profiles correctly. Why? We’ll get back to that later.
- 2:50To put this into context, let’s first talk about color spaces.
- 2:54The dynamic range determines the range of brightness. The range of colors is determined by
- 2:59the color gamut. Color gamut refers to the range of colors which a device can capture or display.
- 3:04And color spaces define how those colors are represented.
- 3:08In 1931, the International Commission on Illumination introduced a three-dimensional
- 3:12space representing all perceivable colors, known as the CIE XYZ color space.
- 3:19This color space provides a standard reference against which color spaces can be defined,
- 3:24measured, and converted to each other.
- 3:27This CIE 1931 chromaticity diagram is a two-dimensional
- 3:30projection of that. It visualizes only the chromaticity, independent of luminance.
- 3:35It shows all colors visible to the human visual
- 3:38system in this horseshoe shape known as the spectral locus.
- 3:42Along this curved edge, you see the wavelengths of light. The straight line in the bottom, known
- 3:47as the line of purples, on the other hand has no wavelength. Because purple is not a “real” color!
- 3:53Purple is not a real color in the sense that it doesn't have a single wavelength of light. It’s
- 3:58the way our brain perceives a mixture of red and blue to make sense of what's being seen.
- 4:03Obviously, the colors on this chart are not the actual colors but are just an
- 4:07approximation. Because our displays can't show the full range of colors our eyes can see.
- 4:11A monitor using the standard RGB (sRGB) color space, for example,
- 4:15can show the colors within this triangle on the chart.
- 4:18An RGB colorspace is defined by 3 components: primaries, whitepoint, and transfer functions.
- 4:24The primaries are the corners of the triangle in this diagram. They set
- 4:28the boundaries for the colors that can be represented using a specific color space.
- 4:32The whitepoint is a reference point that defines what is considered "white" within
- 4:37that color space. Typically, it’s based on a standard illuminant, such as D65, which
- 4:42approximates average daylight. The whitepoint provides a common baseline for color balance.
- 4:48Finally, transfer functions define the relationship between the actual
- 4:51light intensity and its digital representation.
- 4:54Here’s what I mean by that.
- 4:56Camera sensors perceive light linearly. Twice the
- 4:59amount of light results in twice the sensor response.
- 5:03To a camera sensor, the difference between no light and one light bulb is
- 5:07perceived as more or less the same as the difference between 49 and 50 light bulbs.
- 5:12That's obviously not the case for human vision.
- 5:15Switching the first bulb clearly makes a bigger difference. Going from no light to some light is
- 5:21a lot more noticeable than switching the 50th light on, which barely makes any difference.
- 5:26The just noticeable difference in brightness follows a logarithmic scale,
- 5:30meaning that our perception of changes is based on relative rather than absolute differences.
- 5:36This phenomenon is described by Weber's Law and applies to many other senses.
- 5:40A transfer function takes that into account.
- 5:43It takes linear sensor data and compresses it in a way that more bits are used to represent
- 5:48lower light levels, where humans are more sensitive to differences,
- 5:52and fewer bits are used for higher light levels, where the eye is less sensitive.
- 5:56This type of transfer function is called an Opto-Electronic Transfer Function (OETF).
- 6:02Displays do the opposite of that. They take in that compressed signal and map that back
- 6:07to linear light output. This is called the Electro-Optical Transfer Function (EOTF),
- 6:12because we go from electrical input signals to optical output light.
- 6:17Transfer functions are typically expressed by a
- 6:19power function with a gamma value of around 2, commonly 2.2 or 2.4.
- 6:25Gamma curves are similar to, but not the same as,
- 6:28log curves. Log curves encode a higher dynamic range.
- 6:31You might wonder why gamma encoding was adopted instead of simply using
- 6:35monitors that invert a log profile. It’s because of historical reasons!
- 6:40CRT displays naturally follow a nonlinear power-law curve,
- 6:44which made gamma a more practical choice for display technology at the time.
- 6:48Unlike gamma encoding, logarithmic encoding wasn’t designed to be tied
- 6:51to a display technology. Instead, it was designed to *represent* a high dynamic range efficiently.
- 6:57Before we move on I think it's worth mentioning some color spaces that are commonly used.
- 7:01sRGB and Rec. 709 both share the same color primaries, with different transfer functions.
- 7:08sRGB is commonly used for still images, Rec. 709 is used for videos. Another common color
- 7:14space is Rec. 2020, which has a wider color gamut and is used for HDR content.
- 7:19The color spaces we talked about so far are considered RGB color spaces because they
- 7:24define specific sets of RGB primaries. There are other color spaces as well.
- 7:29For example, CIELAB represents color as three values: one for lightness,
- 7:34one for green and red, and one for blue and yellow.
- 7:37Those color pairs are opponent colors.
- 7:40Have you ever tried to imagine a greenish red, or bluish yellow?
- 7:44I don’t mean colors you get when you mix them. I mean a single color that
- 7:48looks red and green or blue and yellow at the same time.
- 7:52Quite hard, isn't it? That's because our visual
- 7:55system perceives those colors as directly opposite to each other.
- 7:59CIELAB uses those color dimensions to represent color rather than a mixture
- 8:03of RGB to have a more perceptually uniform space. Meaning that a change
- 8:08in the values would correspond to a similar perceived change in color.
- 8:12There are also other color spaces that separate
- 8:14brightness and color for different purposes, such as video encoding.
- 8:18YCbCr, for example, consists of a luma component Y and chroma components Cb and Cr.
- 8:25Since human vision is more sensitive to luminance than color, chroma channels can be
- 8:29subsampled and given less bandwidth than the luma component without much loss in perceived quality.
- 8:35This process is called chroma subsampling. That's
- 8:38what the ratios you see in digital media formats like ProRes 422 mean.
- 8:42A 4:2:2 ratio indicates horizontal chroma subsampling:
- 8:46half the resolution in the horizontal axis.
- 8:494:2:0 means half the resolution in both axes, and 4:4:4 means no chroma subsampling.
- 8:55Anyway, I digress, this falls more in the domain
- 8:58of video processing and compression than color science but it’s good to know.
- 9:02Cameras typically capture more data than displays can reproduce.
- 9:06This is especially true for high-end cameras used
- 9:08in production. Their color gamuts are wider than any display can show.
- 9:13So, the colors they capture are adjusted, compressed,
- 9:16or clipped to fit within what a target display allows.
- 9:19This brings us to the concepts of scene-referred and display-referred data.
- 9:24Scene referred data represents the real world, rather than the light leaving the screen.
- 9:28It is not meant to be viewed directly. Instead, it aims to represent the physical properties of
- 9:34the scene, such as the intensity and color of the light in the real world.
- 9:37Display-referred data, on the other hand, represents what will be shown on a display.
- 9:42So, how do we go from scene-referred data to display-referred data?
- 9:46That’s where color management comes into play.
- 9:48Color management involves a series of steps, including color space transformations,
- 9:52tone mapping, gamut mapping, and Look-Up Tables (LUTs), which map input colors to output colors.
- 9:58The goal of this whole process is to ensure that the final image is visually pleasing,
- 10:03true to the creative intent, and respects the constraints of the target display.
- 10:07There is an industry-standard framework that facilitates this process.
- 10:11It is called the Academy Color Encoding System, or ACES for short.
- 10:15Having standard formats makes it easier to work with different brand cameras and
- 10:19even virtual cameras and CGI elements. It allows them all to exist in the same space.
- 10:25ACES has a scene-referred color space, called ACES2065-1.
- 10:30It has a linear representation, meaning that it represents light just like the
- 10:35camera sensors capture it. If you double the amount of light, the values also double.
- 10:39So, multiplying all the values by two increases the exposure by one stop.
- 10:44It has no log curves, but it still captures a wide
- 10:46dynamic range because it has a high bit depth, typically 16 or 32 bits.
- 10:51ACES2065-1 uses primaries that contain every visible color! They are called AP0 primaries.
- 10:58On this diagram, AP0 primaries form the smallest triangle that contains
- 11:03the entire spectral locus. It even covers some colors that we can’t see.
- 11:07Camera manufacturers have their own secret sauce to
- 11:10whatever color science they use to capture and process images.
- 11:13ACES expects them to provide Input Device Transforms (IDTs) to convert their camera's
- 11:19raw data into this standardized, scene-referred, linear color space.
- 11:24Regardless of the input source—be it different cameras, CG renders, or anything else—IDTs
- 11:30transform it into ACES.
- 11:32Once in this color space, you can do all your work,
- 11:34including color grading, compositing, VFX, and CGI.
- 11:39Finally, you use an Output Device Transform (ODT) to convert your
- 11:42work into the target format, such as Rec 709 or Rec 2020.
- 11:47Lastly, it’s worth mentioning some derivative working spaces. ACEScc, ACEScct, and ACEScg, for
- 11:54example, use AP1 primaries, which have a smaller gamut than AP0, but avoid most non-visible colors.
- 12:02Unlike ACES2065-1, ACEScc and ACEScct are logarithmic color spaces,
- 12:08which many professionals in color grading are familiar with.
- 12:12ACEScc provides a pure log encoding,
- 12:15whereas ACEScct has a "toe" in the shadows, which emulates the behavior of film.
- 12:20ACEScg, on the other hand, is a linear color space similar to ACES2065-1
- 12:26but uses AP1 primaries. It is mainly designed for CGI and compositing work.
- 12:32Alright, that was pretty much it! I hope you found
- 12:34it interesting and useful. Thanks for watching, and see you next time.
About this transcript
This page contains the full transcript of Color Science Explained by Leo Isikdogan, generated from the public captions YouTube serves with the video. The transcript has 2,126 words across 180 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.