• 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 / Gamma, resampling, and sharpening

Gamma, resampling, and sharpening

June 11, 2014 JimK Leave a Comment

I was on a panel on raw processing about a year ago, and so was Eric Chan. At the break, I congratulated him on the big improvements in resizing in Lightroom 4. He said that the algorithms were similar; the big change was that, rather than doing the calcs in the standard Lr working space, which has a gamma of one, they were doing the resizing in a gamma encoded space which is more perceptually uniform. We didn’t discuss the gamma, but it’s probably either the ProPhotoRGB gamma of 1.8, or 2.2.

That’s what I was going to report here. But, me being me, I had to do some testing first. I wrote a little Matlab script to upres a test image by 80% at gammas from 1.0 to 3.8 using bicubic interpolation:

scalegammatest

When I ran it, I did see some differences. But they were very subtle; nothing like the differences between Lr 3 resampling and Lr 4 resampling.

I scratched my head. Then I thought that there’s usually sharpening associated with up-resing. So I modified my script to do unsharp masking at the same gamma set:

sharpengammacode

Now there was a big difference, with the images that were sharpened at higher gammas being crisper. This could be a good thing or a bad thing, depending on what effects you’re trying to achieve.

Lessons:

  • Although it’s a weak effect, people comparing resizing algorithms should probably take pains to make sure they do all their resizings at the same gamma, and should report that gamma when they report the results.
  • People comparing sharpening algorithms should definitely take pains to make sure they do all their sharpening at the same gamma, and should report that gamma when they report the results.

Here’s a link to a Photoshop stack with the original, and the results of sharpening at various gammas.

To download the file, right-click on the link, and select “Save As…” from the pop-up menu.

The Last Word

← How far we’ve come Back to Timescapes →

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

  • bob lozano on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • 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

Archives

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

Unless otherwise noted, all images copyright Jim Kasson.