• 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 / Reverse engineering the Sony a7RII long exposure spatial filtering

Reverse engineering the Sony a7RII long exposure spatial filtering

December 1, 2016 JimK 3 Comments

We have seen here and here that the Sony a7RII running firmware 3.30 spatially filters raw images prior to writing them to the flash card at shutter speeds slower than 3.2 seconds. The camera did similar filtering for bulb exposures in earlier releases.

A DPR poster earlier proposed that the algorithm Sony used was the one described here.

He has since amended his algorithm to read as follows (if you look at the post above, the pseudo-code below will make sense):

If (V0 > Max(V1, V2, ... , V8))  
   V0 = Max(V1, V2, ... , V8)
Else If (V0 < Min(V1, V2, ... , V8))
   V0 = Min(V1, V2, ... , V8) )
Endif

Another DPR poster, the same one who brought the FW 3.30 behavior to my attention, kindly prepared for me two images. The first was 1000×1000 pixels in size, and filled with Gaussian noise with mean 128 and standard deviation 8. The second was the first image as processed by the algorithm above.

I ran both images through my spectral analysis program.

The first image
The first image
The filtered image
The filtered image

This precisely replicates the behavior that I’m seeing on the actual camera.

To refresh your memory:

iso-6400-3p2-sec

iso-6400-4-sec

It is certainly possible that it is just a coincidence that the proposed “star-eater” algorithm produces the same spectra as whatever Sony is doing in-camera, but I don’t think so. This is probably the real deal, or close enough not to matter.

You could certainly see why Sony would want to tame the hot pixels that often crop up in long exposures, but IMHO they should have provided a way to turn it off. The camera is too good for astro work to do this to it.

And, of, course, they should have told us what they were doing, but that would be un-Sony-like.

The Last Word

← LENR and Sony a7RII FW 3.30 lowpass filteering Sony a7RII FW 3.3 raw dark-field histograms, ISO 100-1600 →

Trackbacks

  1. Sony and the star-eater algorithm – or, ‘how Sony crippled the world’s (possibly) best cameras for astrophotography’ | John Leathwick says:
    April 28, 2017 at 9:27 pm

    […] has been analysed and described in a great detail elsewhere, with Jim Kasson’s website (here) containing probably the most detailed examination of what it does. Otherwise, try a web […]

    Reply
  2. Star Eater – Why I No Longer Recommend Sony Cameras for Astrophotography: An Open Letter to Sony – Lonely Speck says:
    May 3, 2017 at 10:12 pm

    […] http://blog.kasson.com/the-last-word/spacial-filtering-of-raw-images-by-sony-a7s-a7ii/ http://blog.kasson.com/the-last-word/sony-a7rii-long-exposure-spatial-filtering-with-fw-3-30/ http://blog.kasson.com/the-last-word/16486/ http://blog.kasson.com/the-last-word/lenr-and-sony-a7rii-fw-3-30-lowpass-filteering/ http://blog.kasson.com/the-last-word/reverse-engineering-the-sony-a7rii-long-exposure-spatial-filter…http://blog.kasson.com/the-last-word/sony-a7rii-bulb-spatial-filtering/ […]

    Reply
  3. The Sony a7RIII eats stars says:
    November 21, 2017 at 9:21 am

    […] Here is an explanation of what is probably the algorithm that Sony is using; fair warning, that material is fairly technical. […]

    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.