• 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 / Simulating Sony raw compression with photon noise

Simulating Sony raw compression with photon noise

February 15, 2014 JimK 3 Comments

I added ideal photon noise to the test of the previous post, assuming that the camera’s ISO dial is set to 100.

Here’s the simulated uncompressed raw file demosaiced by bilinear interpolation:

sony tough test photon noise

And here’s the file companded by the Sony compression algorithm and demosaiced in same way, subtracted in a linear color space with Adobe RGB primaries, scaled into the range [0,1], and converted to regular gamma=2.2 Adobe RGB. The scale factor in linear space is 0.0626, meaning that the error artifacts span a range of about 6% of the range of tones in the image.

sony w delta photon ISO 100 gray0626

The noise breaks up some of the error pattern.

 

The Last Word

← A tough test of Sony raw compression Removing the delta modulation component from Sony raw compression →

Comments

  1. Ilya Zakharevich says

    March 15, 2014 at 12:53 am

    Sorry, Jim,
    but what you wrote in the first paragraph does not make a lot a sense: “what your program models” cannot depend on what I think about the bit-count of the sensor. I do not think one can handle this problem with an “ideal photon noise”; all the data I saw (like Alexei did [unscientifically] on his blog or you did on your post) hints at the data hitting the compressor having a significant level-dependent noise-reduction.

    Since we know that the sensor cooks the data in mid-greys, I’m afraid one must bite the bullet, and
    • measure the noise at ISO100 at different gray levels, ;
    • hardwire these data into the model;
    • do the similations at this particular ISO value.

    I suspect that this (and a correction of the systematic error I mentioned in comment to your previous post) would completely change the results of your modelling.

    Reply
    • Jim says

      March 17, 2014 at 9:31 am

      “…all the data I saw (like Alexei did [unscientifically] on his blog or you did on your post) hints at the data hitting the compressor having a significant level-dependent noise-reduction.”

      I can’t read Alex’s post because the Google translator is on the blink at the moment. But I take your point; we should look harder at the Sony noise reduction “secret sauce”. Among other things, I’m going to have to go back and look at the raw data with the black point in Rawdigger set to zero, so there is no truncation in the raw conversion.

      Reply
  2. Jim says

    March 17, 2014 at 9:22 am

    “but what you wrote in the first paragraph does not make a lot a sense: “what your program models” cannot depend on what I think about the bit-count of the sensor. ”

    Ilya, you are right about that. Perhaps I phrased it infelicitously. I assumed that the camera’s ISO dial was set to the point where a one -electron change on the sensor causes a one-count difference in the 13-bit value of the image prior to compression.

    Jim

    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.