• site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge

the last word

Photography meets digital computer technology. Photography wins -- most of the time.

You are here: Home / The Last Word / A book report: more on gamut mapping

A book report: more on gamut mapping

July 2, 2015 JimK 1 Comment

This is post fourteen in a series about my experiences in publishing a book. The series starts here.

Earlier in this series, I’ve reported on mapping the images for the book into the rather small GRACoL 2006 Coated color space used by the printer. Today, Brooks Jensen taught me a new-to-me tool for gamut mapping. It’s far from perfect, but it certainly has its place in the process. I’ll explain it to you.

Let’s start with this image of this morning’s sunrise, which has been tweaked so that parts of it are way out of the GRACoL 2006 Coated gamut:

test gamut

If you turn on the gamut alarm, you see in gray the parts of the image that are out of gamut (OOG):

gamut warning

Newer versions of Photoshop (Ps) — I’m sorry, but I can’t tell you which versions — have a tool for selecting the OOG colors. You click through Selection>Color Range>Out of Gamut:

select oog

If you say OK, you get a selection like this:

oog channel

The good news is that we’ve selected all the OOG colors with a pretty simple set of actions. The bad news is that it’s a binary selection. If a color is a little bit OOG, it’s selected 100%. If a color is waaay OOG, it’s selected 100%.

You can see this clearly if I zoom in:

OOG channel closeup

 

What I’d really like is to have a selection that is grayscale, with slightly OOG colors being barely selected, and far OOG colors being strongly selected. I’ll show you why. If we create a vibrance adjustment layer and desaturate through the selection just enough to silence teh gamut warning, like this:

vibrance layer

We get parts of the image that were slightly OOG and next to parts of the image that were barely within gamut less saturated than them:

barely within gamut

Admittedly, what I did was fairly ham-fisted, but, in order to prevent these kinds of chroma reversals, we’d need to make the edge of the OOG selection fuzzy. That would work pretty well if the relationship between how far OOG of in gamut a color is varies linearly with position in the image, but how often does that happen?

It get’s worse if I notice that the saturation change I made lightened the affected colors and compensate for it with a curves adjustment layer:

adding curves layer

Now we get this:

with curves layer

Ugh. Fuzzing up the mask would probably have helped if I’d planned to do this in the first place.

I shouldn’t look a gift horse, or even a subscription-rented horse, in the mouth. This will be a useful took, just not as useful as it could be.

Unless you’re a color geek, you should stop reading right here.

OK, the civilians are gone, right? I’m gonna get to the issue that you probably noticed above. I said I wanted a grayscale mask that got “whiter” the further OOG a color is, but I didn’t define a scalar measure for describing how far OOG a color is.

Turns out, there are choices. Let’s assume the color distance metric that we’re going to work with is CIEL*a*b*, which is one of the Ps native color spaces. One measure might be the Euclidean distance to the nearest point on the gamut envelope. Another might be the distance to the envelope if the hue angle is held invariant.  Or we could have two measures: one the two-dimensional distance to the gamut envelope if hue angle and luminance are held constant, and the other the one-dimensional luminance distance to the envelope if chromaticity is held constant.

Depending on your gamut mapping strategy, each would have its uses.

The Last Word

← Working on photography 24/7 How to get to Carnegie Hall →

Comments

  1. Igor says

    August 14, 2015 at 4:21 am

    My thoughts might be incorrect but nevetheless. Obviously you do not want to “mechanically” reduce the vibrance of the whole image in order that it fits the given gamut. From the other side, any work with the above selection is not adequate because inside it you can not exceed the levels on its borders while the realistic reproduction assumes that. So, we need some algorithm that would:
    i) do some kind of chroma compression in the required areas;
    ii) ensure smooth transition from the altered areas to the unaltered without chroma reversal.
    Last reqirement can be obeyed only if you compress chroma also in some areas outside the selection. Which way exactly is the subject of the art.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

May 2025
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • How to…
    • Backing up photographic images
    • How to change email providers
    • How to shoot slanted edge images for me
  • Lens screening testing
    • Equipment and Software
    • Examples
      • Bad and OK 200-600 at 600
      • Excellent 180-400 zoom
      • Fair 14-30mm zoom
      • Good 100-200 mm MF zoom
      • Good 100-400 zoom
      • Good 100mm lens on P1 P45+
      • Good 120mm MF lens
      • Good 18mm FF lens
      • Good 24-105 mm FF lens
      • Good 24-70 FF zoom
      • Good 35 mm FF lens
      • Good 35-70 MF lens
      • Good 60 mm lens on IQ3-100
      • Good 63 mm MF lens
      • Good 65 mm FF lens
      • Good 85 mm FF lens
      • Good and bad 25mm FF lenses
      • Good zoom at 24 mm
      • Marginal 18mm lens
      • Marginal 35mm FF lens
      • Mildly problematic 55 mm FF lens
      • OK 16-35mm zoom
      • OK 60mm lens on P1 P45+
      • OK Sony 600mm f/4
      • Pretty good 16-35 FF zoom
      • Pretty good 90mm FF lens
      • Problematic 400 mm FF lens
      • Tilted 20 mm f/1.8 FF lens
      • Tilted 30 mm MF lens
      • Tilted 50 mm FF lens
      • Two 15mm FF lenses
    • Found a problem – now what?
    • Goals for this test
    • Minimum target distances
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Printable Siemens Star targets
    • Target size on sensor
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Test instructions — postproduction
    • Test instructions — reading the images
    • Test instructions – capture
    • Theory of the test
    • What’s wrong with conventional lens screening?
  • Previsualization heresy
  • Privacy Policy
  • Recommended photographic web sites
  • Using in-camera histograms for ETTR
    • Acknowledgments
    • Why ETTR?
    • Normal in-camera histograms
    • Image processing for in-camera histograms
    • Making the in-camera histogram closely represent the raw histogram
    • Shortcuts to UniWB
    • Preparing for monitor-based UniWB
    • A one-step UniWB procedure
    • The math behind the one-step method
    • Iteration using Newton’s Method

Category List

Recent Comments

  • JimK on Goldilocks and the three flashes
  • DC Wedding Photographer on Goldilocks and the three flashes
  • Wedding Photographer in DC on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Fujifilm GFX 100S II precision
  • Renjie Zhu on Fujifilm GFX 100S II precision
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF

Archives

Copyright © 2025 · Daily Dish Pro On Genesis Framework · WordPress · Log in

Unless otherwise noted, all images copyright Jim Kasson.