ClarkVision.com

To Clarkvision.com Galleries
Home Galleries Articles Reviews Best Gear Science New About Contact

FFT Tests to Search for Filtering in Camera Raw Data

Can you tell which images are filtered (some should be obvious), and for the filtered images, what would be the impact on derived QE, full well capacity, gain and read noise?

Below are two image sets, all 2D FFTs of images. Some of the FFTs are of Gaussian noise images, some filtered, some not and some are from actual camera raw data. All are of light frames of a flat field (actual camera data or simulated).

If raw data are filtered, what are the impacts on deriving:


Set 1. 16-bit tif image of 2D FFT.

FFT analysis. Examining the center to edge and corner levels in the FFT images can indicate if filtering is present in the image from which the FFT was made. Except for the spike in the center, and possible horizontal and vertical lines (illustrated in Figure 2C), the structure in the 2D FFT images would be uniform from near center to edges and corners. To analyze the center to edge and corners, I examine 12x12 to 15x15 pixel blocks from near center to edges and corners. Corners usually give the largest lever arm. The ratio of the block average from near center (low frequencies) to the corners (high frequencies) I call the FFT ratio: the block average of the corners divided by the block average near the center, then average for all 4 corners. If no filtering, the FFT ratio will be essentially 1.0.

The images in set 1 are:

One can plot the FFT ratio as a function of signal-to-noise ratio improvement to derive a curve of FFT ratio versus filtering level. Then use this curve to estimate the amount camera raw data filtering. The filtering algorithm in set 1 was designed to maintain a close to Gaussian result and so might fool some sensor analyses.

The impact of using filtered data to derive sensor parameters means that quantum efficiency, full well capacity, gain are overestimated. For the above filtered images, the impacts are:

Image 1B impacts QE, full well capacity, and gain would be overestimated by 10%

Image 1C impacts QE, full well capacity, and gain would be overestimated by 59%

Image 1D impacts QE, full well capacity, and gain would be overestimated by 23%

Here are the images used to make the 2D FFT in set 1 above:
16-bit tif image used in Set 1A
16-bit tif image used in Set 1B
16-bit tif image used in Set 1C
16-bit tif image used in Set 1D

Now lets look at a mix of more synthetic data and real camera data.


Set 2. 16-bit tif image of 2D FFT.

Raw data for the camera data in set 2:
Canon 7D Mark 2 raw data for the green channel (10.1 MBytes)
Nikon D800e raw data for the green channel (18.2 MBytes)
Nikon D810a raw data for the green channel (18.2 MBytes)

Procedure for FFT Analysis of Camera Raw Data

Conclusions

Say a camera manufacturer was filtering the raw data. Say the filtering produced excellent images, which is the goal of the camera manufacturers. They do not give quantum efficiency, full well capacity, etc., so there is no cheating here. Reviewers are the ones deriving such sensor parameters and making camera scores. If the reviewers do not detect the filtering, then derived sensor parameters will be off. If, for example, you were looking for cameras with high full well capacity, if the filtering was not detected, the derived parameters are off and your would be comparing differing filtering levels (which you can also do in post processing), and not true sensor performance.

First Published updated January 20, 2017.
Last updated January 21, 2017