the last word

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

  • site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge
You are here: Home / The Last Word / Res-ing down in one dimension

Res-ing down in one dimension

May 31, 2012 JimK 1 Comment

I posted earlier about my need to res down 60000 x 6000 images to 6000 x 6000. I was thinking about using Pixel Bender, but I came up with a workaround that does most of what I’d do in Pixel Bender, needs no programming, and works in all versions of Photoshop. They key idea is to use the bilinear interpolation capabilities of the Photoshop resize tool to do averaging, and to use repeated applications of that tool.

Rather than perform a one-dimensional averaging function explicitly as I was planning to do in Pixel Bender, I do a set of resizes, all with bilinear interpolation: first to 45562 x 6000, then to 30375 x 6000, then to 20250 x 6000, then to 13500 x 6000, then to 9000 x 6000, then to 6000 x 6000. I recorded a Photoshop action to speed things up and minimize mistakes.

Where do those weird numbers come from? Resizing down to 2/3 of the previous horizontal dimension gives me an image populated in equal parts with values from the original image and averages (thanks to the linear interpolation) of adjacent pixels. Repeating the operation spreads out the averaging.

Maybe the best way to visualize it is to look at an example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 2.5 4 5.5 8 9.5 11 12.5 14
1 3.25 5.5 8.75 11 13.25
1 4.375 8.75 12.125
1 6.5625 12.125

 

 


Using linear interpolation also means that there is no averaging in the vertical direction.

Now, with the averaging done better, I’m seeing signal to noise ratios improve by more than a factor of three. Theory says the improvement should be the square root of ten.

 

 

The Last Word

← Structure and creativity, revisited Slit scans of plants →

Trackbacks

  1. Writing your own image processing tools | The Last Word says:
    October 11, 2012 at 5:16 pm

    […] looking into ways to implement nonstandard image processing algorithms in Photoshop. I found a workaround for the May’s problem, but that didn’t stop me from looking for ways to make write my own […]

    Reply

Leave a Reply Cancel reply

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

September 2023
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
« Jul    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • Good 35-70 MF lens
  • How to…
    • Backing up photographic images
    • How to change email providers
  • 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 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

  • UA on More on GFX 100 II electronic shutter speeds
  • Matthias on More on GFX 100 II electronic shutter speeds
  • Erik on How fast is the GFX 100 II electronic shutter?
  • Edwin Shih on Fujifilm GFX 100 II: more on EDR vs shutter speed
  • UA on How fast is the GFX 100 II electronic shutter?
  • UA on Fujifilm GFX 100 II: more on EDR vs shutter speed
  • Matthias on How fast is the GFX 100 II electronic shutter?
  • Bek on Hasselblad X2D, GFX 100S shadow noise, visuals
  • Steven on FF equivalent focal lengths of Hasselblad XCD, Fuji GF lenses
  • JimK on Backing up photographic images

Archives

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

Unless otherwise noted, all images copyright Jim Kasson.