Why Camera Calibration Using Variance Doesn`t Work for ... · REFERENCES Photoresponse CONCLUSIONS...

1
A scientific camera should: accurately detect the number of input photons, faithfully represent the number of input photons in the digital output signal, and provide predictable noise statistics sCMOS camera architecture fundamentally differs from CCD and EMCCD cameras. In scientific digital CCD and EMCCD cameras, conversion from charge to the digital output is generally through a single electronic chain, and the read noise and the conversion factor from photoelectrons to digital outputs is highly uniform for all pixels, although quantum efficiency may spatially vary. By contrast, in CMOS cameras, the charge to voltage conversion is separate for each pixel, each column has independent amplifiers and analog-to-digital converters, and microlenses introduce pixel-to-pixel variation in quantum efficiency. The “raw” output from the CMOS image sensor includes pixel -to- pixel variability in the read noise, gain, offset and dark current. Therefore, scientific camera manufacturers digitally compensate the raw signal from the CMOS image sensors 1, 2 . Inaccuracies and noise in images can introduce artifacts in computational imaging such as localization microscopy, especially in the case of maximum likelihood estimation methods 3, 4 . The Hamamatsu ORCA-Flash4.0 V3 has well-calibrated pixel response and predictable individual pixel statistics. We show that for this camera (peak QE, 82%): individual pixels are accurately factory-calibrated for dark offset and photo-response, Output is highly linear to input photons across the entire signal range, and individual pixel variance can be accurately modeled as a sum of two pixel- specific terms: read noise and a variance coefficient multiplied by the signal in the pixel (shot noise), however pixel variance is not an accurate method for calibration of pixel or camera gain. Why Camera Calibration Using Variance Doesn`t Work for Photoresponse Calibration of Scientific CMOS (sCMOS) Cameras (and Other Photodetectors) Shigeo Watanabe, Teruo Takahashi, Keith Bennett System Division, Hamamatsu Photonics K.K., Japan, [email protected] INTRODUCTION TEMPORAL READOUT NOISE & VARIANCE MODEL [1] Fullerton, S., et al., “Camera simulation engine enables efficient system optimization for super - resolution imaging,” Proc. SPIE 8228, Single Molecule Spectroscopy and Superresolution Imaging V, 822811 (2012) [2] Fullerton, S., et al., “Optimization of Precision Localization Microscopy using CMOS Camera Technology,” Proc. SPIE 8228, Single Molecule Spectroscopy and Superresolution Imaging V, 82280T (2012) [3] Huang, Z. L et al., “Localization-based super-resolution microscopy with an sCMOS camera,” Optics Express 19(20), 19156-19168 (2011). [4] Huang, F., et al., “Video-rate nanoscopy using sCMOS camera-specific single-molecule localization algorithms,” Nat Methods 10(7), 653-658 (2013). [5] Janesick, J. R., Photon Transfer, SPIE Press Book, (2007). [6] Pertsinidis, et al., “Subnanometre single-molecule localization, registration and distance measurements,” Nature 466(7306), 647-651 (2010). REFERENCES CONCLUSIONS Production ORCA-Flash4.0 V3 sCMOS cameras with on-board correction have low dark offset non-uniformity. Photoresponse uniformity is comparable to front-illuminated CCDs (0.25%) and better than back-illuminated image sensors (e.g. EMCCDs, ~1%) for narrowband illumination. The digital output accurately represents the input intensity (photons) for each pixel. Uniform response (DN / photon) requires compensation for both QE and electronic gain variation. Using variance to estimate the gain does not correct for PRNU because of QE variations and other factors Variance is not a reliable method for accurate photodetector gain calibration as measurements without verification of the photodetectors statistics. Although the PTC provides an estimate of the electronic “gain,” the “photon transfer curve” method theory is based upon the statistical independence of each measurement, absence of excess noise, and no other noise sources., which is not generally correct. ORCA-Flash4.0 V3 specification Dark Signal Non-Uniformity (DSNU) 1 0.3 e - rms Photoresponse Non-Uniformity (PRNU) at half level of full light range (15,000 e - ) 1 0.06 % rms. Photoresponse Non-Uniformity (PRNU) at low light level (700 e - ) 1 0.3 % rms. Linearity error, full light range (EMVA 1288 standard) 1 0.5 % Linearity error, low light range (< 500 e - signal) 1 0.2 % / Less than approx. 1 e- absolute error Dark Current (electrons/pixel/s) – Air Cooled to -10° C 0.06 Readout Noise (N r ) median in electrons at slow scan 1 0.8 Readout Noise (N r ) rms in electrons at slow scan 1 1.4 Readout Noise (N r ) median in electrons at standard scan 1 1.0 Readout Noise (N r ) rms in electrons at standard scan 1 1.6 1 Typical value CAN VARIANCE BE USED FOR ACCURATE GAIN CALIBRATION? While the photon transfer curve 5 technique is a good method to validate camera (and pixel) performance, it is not a reliable method for camera photo-response or gain calibration. The relationship between the variance and the mean for a photoelectron signal, s 2 = G <N>, where, G= camera gain and <N> = mean number of photoelectrons / measurement assumes i) perfect counting statistics and ii) all measurements are statistically independent of any other measurements. In practice, (analog) coupling between individual pixel measurements may be >10%. Many other noises contribute to the variance, including i) instability in the illumination, ii) excess noise (from electron multiplication processes in EMCCD and iCCD cameras), iii) read noise, and iv) electrical pickup, such as clock- induced charge. The conversion from photons to electrons (QE), and hence photoresponse, may vary from pixel to pixel (or camera to camera). Careful validation of the statistical model (including all noises) is required to extrapolate quantitative parameters from noise. STOP Using s 2 = G<N> for gain calibration Figure 1. DSNU a) map, b) offset histogram and c) threshold map of pixels > 2 DN (0.92 e - ) from the mean. DARK OFFSET & UNIFORMITY DSNU, Dark Offset Averaged dark image from 20,000 frames, 2000 x 2000 pixels 10 msec exposure Standard scan 50 x 50 pixels [DN] [e - ] mean [DN] Frequency Log-linear histogram of averaged dark image Mean = 99.6 DN = 45.8 e - SD = 0.61 DN = 0.28 e - [e - ] 50 x 50 pixels SD within mean ± 0.92 e - (2 DN) = 0.52 DN = 0.24 e - Fraction within mean ± 0.92 e - (2 DN) = 98.6 % [DN] [e - ] DSNU, mean ± 0.92 e - (2 DN) a b c Figure 2. a) PRNU and b) log-linear histograms of pixel response uniformity in both low and high light ranges. PHOTORESPONSE NON- UNIFORMITY Relative pixel response Frequency Log-linear histogram of pixel response under uniform illumination 1508 DN mean Photoelectron = 694 e - PRNU = 0.27% Relative pixel response Frequency Log-linear histogram of pixel response under uniform illumination 9914 DN mean Photoelectron = 4561 e - PRNU = 0.11% 50050 DN mean Photoelectron = 23023 e - PRNU = 0.083% 32686 DN mean Photoelectron = 15036 e - PRNU = 0.062% 128x128 1500x1500 1508 DN = 694 e - mean illumination (1500x1500) 128x128 1500 x 1500 area used for statistics Normalized averaged image from 20000 frames 1500x1500 32686 DN = 15036 e - mean illumination (1500x1500) Normalized averaged image from 1000 frames Low light range (High gain amplifier) High light range (Low gain amplifier) 2000x2000 2000x2000 a b Figure 4. Distribution of absolute response error at various light levels LINEARITY Linearity, low light range, 3 different cameras Exposure time (msec) Intensity (DN) Exposure time (msec) Fractional error (%) Camera_1 Linearity error = 0.14 Linearity = 99.86% Camera_2 Linearity error = 0.17 Linearity = 99.83% Camera_3 Linearity error = 0.16 Linearity = 99.84% Fractional error (%): based on modified EMVA1288 standard. 100% is light range (100 – 1000 DN). Linearity, full light range, 3 different cameras Camera_2 Linearity error = 0.39% Linearity = 99.61% Camera_3 Linearity error = 0.38% Linearity = 99.62% Camera_4 Linearity error = 0.33% Linearity = 99.67% Fractional error (%): based on EMVA1288 standard Exposure time (msec) Intensity (DN) Exposure time (msec) Fractional error (%) Figure 3. Linearity of 3 different cameras in both a) low and b) high light ranges. a b Absolute error (Pixel signal - mean signal) [Photons] 50.8 102.4 157.1 205.6 303.7 404.4 606.5 901.9 1369.9 All pixel average of (signal - offset) [DN] Histogram of Error for all pixels at each light level Frequency Offset 2000 x 2000 pixels Standard scan mode e - Read noise map Temporal Dark (Read) Noise e - Frequency Mean = 1.31 RMS = 1.62 Median = 0.99 Standard scan mode e - Frequency Mean = 1.13 RMS = 1.48 Median = 0.82 Slow scan mode Figure 5. Pixel-specific temporal dark read noise of ORCA-Flash4.0 V3 sCMOS camera. Figure 5. a) Variance coefficient map, b) histogram of variance coefficient K xy and residual K xy error as a function of light level. The curve labeled “Statistical measurement precision limit” shows the statistical uncertainty in measurement of the variance of a single pixel using 20,000 measurements arising solely from statistical considerations. Variance xy = K xy *(Signal xy -Offset xy ) + readnoise 2 xy K xy estimation fit using weighted least square at 9 light level 20000 frames at each light level 2048 x 2048 Variance coefficient (K xy ) map Histogram of Variance coefficient (K xy ) DN 2 /DN Frequency 50.8 102.4 157.1 205.6 303.7 404.4 606.5 901.9 1369.9 All pixel average of (signal - offset) [DN] Histogram of K xy Error for all pixels at each light level Frequency K xy Error (measured variance – fitted variance) [rate] Statistical measurement precision limit a b DN 2 /DN

Transcript of Why Camera Calibration Using Variance Doesn`t Work for ... · REFERENCES Photoresponse CONCLUSIONS...

Page 1: Why Camera Calibration Using Variance Doesn`t Work for ... · REFERENCES Photoresponse CONCLUSIONS Production ORCA-Flash4.0 V3 sCMOS cameras with on-board correction have low dark

A scientific camera should:

• accurately detect the number of input photons,

• faithfully represent the number of input photons in the digital output

signal, and

• provide predictable noise statistics

sCMOS camera architecture fundamentally differs from CCD and EMCCD

cameras. In scientific digital CCD and EMCCD cameras, conversion from

charge to the digital output is generally through a single electronic chain,

and the read noise and the conversion factor from photoelectrons to digital

outputs is highly uniform for all pixels, although quantum efficiency may

spatially vary.

By contrast, in CMOS cameras, the charge to voltage conversion is separate

for each pixel, each column has independent amplifiers and analog-to-digital

converters, and microlenses introduce pixel-to-pixel variation in quantum

efficiency. The “raw” output from the CMOS image sensor includes pixel-to-

pixel variability in the read noise, gain, offset and dark current. Therefore,

scientific camera manufacturers digitally compensate the raw signal from the

CMOS image sensors1, 2. Inaccuracies and noise in images can introduce

artifacts in computational imaging such as localization microscopy,

especially in the case of maximum likelihood estimation methods3, 4.

The Hamamatsu ORCA-Flash4.0 V3 has well-calibrated pixel response and

predictable individual pixel statistics. We show that for this camera (peak

QE, 82%):

• individual pixels are accurately factory-calibrated for dark offset and

photo-response,

• Output is highly linear to input photons across the entire signal range, and

• individual pixel variance can be accurately modeled as a sum of two pixel-

specific terms: read noise and a variance coefficient multiplied by the

signal in the pixel (shot noise), however pixel variance is not an

accurate method for calibration of pixel or camera gain.

Why Camera Calibration Using Variance Doesn`t Work for Photoresponse Calibration of Scientific CMOS (sCMOS) Cameras (and Other Photodetectors)

Shigeo Watanabe, Teruo Takahashi, Keith Bennett System Division, Hamamatsu Photonics K.K., Japan, [email protected]

INTRODUCTION TEMPORAL READOUT NOISE &

VARIANCE MODEL

[1] Fullerton, S., et al., “Camera simulation engine enables efficient system optimization for super-

resolution imaging,” Proc. SPIE 8228, Single Molecule Spectroscopy and Superresolution Imaging V,

822811 (2012)

[2] Fullerton, S., et al., “Optimization of Precision Localization Microscopy using CMOS Camera

Technology,” Proc. SPIE 8228, Single Molecule Spectroscopy and Superresolution Imaging V, 82280T

(2012)

[3] Huang, Z. L et al., “Localization-based super-resolution microscopy with an sCMOS camera,”

Optics Express 19(20), 19156-19168 (2011).

[4] Huang, F., et al., “Video-rate nanoscopy using sCMOS camera-specific single-molecule localization

algorithms,” Nat Methods 10(7), 653-658 (2013).

[5] Janesick, J. R., Photon Transfer, SPIE Press Book, (2007).

[6] Pertsinidis, et al., “Subnanometre single-molecule localization, registration and distance

measurements,” Nature 466(7306), 647-651 (2010).

REFERENCES

CONCLUSIONS

Production ORCA-Flash4.0 V3 sCMOS cameras with on-board correction

have low dark offset non-uniformity.

Photoresponse uniformity is comparable to front-illuminated CCDs

(0.25%) and better than back-illuminated image sensors (e.g. EMCCDs,

~1%) for narrowband illumination.

The digital output accurately represents the input intensity (photons) for

each pixel.

Uniform response (DN / photon) requires compensation for both QE and

electronic gain variation.

Using variance to estimate the gain does not correct for PRNU because

of QE variations and other factors

Variance is not a reliable method for accurate photodetector gain

calibration as measurements without verification of the photodetectors

statistics. Although the PTC provides an estimate of the electronic

“gain,” the “photon transfer curve” method theory is based upon the

statistical independence of each measurement, absence of excess noise,

and no other noise sources., which is not generally correct.

ORCA-Flash4.0 V3 specification

Dark Signal Non-Uniformity (DSNU) 1 0.3 e- rms

Photoresponse Non-Uniformity (PRNU) at half level of full light range (15,000 e-) 1

0.06 % rms.

Photoresponse Non-Uniformity (PRNU) at low light level (700 e-) 1

0.3 % rms.

Linearity error, full light range (EMVA 1288 standard) 1 0.5 % Linearity error, low light range (< 500 e- signal) 1 0.2 % / Less than

approx. 1 e- absolute error

Dark Current (electrons/pixel/s) – Air Cooled to -10° C 0.06

Readout Noise (Nr) median in electrons at slow scan 1 0.8

Readout Noise (Nr) rms in electrons at slow scan 1 1.4

Readout Noise (Nr) median in electrons at standard scan 1

1.0

Readout Noise (Nr) rms in electrons at standard scan 1 1.6

1Typical value

CAN VARIANCE BE USED FOR

ACCURATE GAIN

CALIBRATION?

While the photon transfer curve5 technique is a good method to validate camera (and pixel) performance, it is not a reliable method for camera photo-response or gain calibration.

• The relationship between the variance and the mean for a photoelectron signal,s2 = G <N>, where, G= camera gain and <N> = mean number of photoelectrons /measurement assumes i) perfect counting statistics and ii) all measurements arestatistically independent of any other measurements. In practice, (analog)coupling between individual pixel measurements may be >10%.

• Many other noises contribute to the variance, including i) instability in theillumination, ii) excess noise (from electron multiplication processes in EMCCDand iCCD cameras), iii) read noise, and iv) electrical pickup, such as clock-induced charge.

• The conversion from photons to electrons (QE), and hence photoresponse, mayvary from pixel to pixel (or camera to camera).

• Careful validation of the statistical model (including all noises) is required toextrapolate quantitative parameters from noise.

STOP Using s2 = G<N>

for gain calibration

Figure 1. DSNU a) map, b) offset histogram and c) threshold map of pixels > 2

DN (0.92 e-) from the mean.

DARK OFFSET & UNIFORMITY

DSNU, Dark Offset

Averaged dark image from 20,000 frames, 2000 x 2000 pixels 10 msec exposure Standard scan

50 x 50 pixels

[DN

]

[e-]

mean

[DN]

Fre

qu

en

cy

Log-linear histogram of averaged dark image

Mean = 99.6 DN = 45.8 e- SD = 0.61 DN = 0.28 e-

[e-]

50 x 50 pixels

SD within mean ± 0.92 e- (2 DN) = 0.52 DN = 0.24 e- Fraction within mean ± 0.92 e-(2 DN) = 98.6 %

[DN

]

[e-]

DSNU, mean ± 0.92 e-(2 DN)

a b

c

Figure 2. a) PRNU and b) log-linear histograms of pixel response uniformity in

both low and high light ranges.

PHOTORESPONSE NON-

UNIFORMITY

Relative pixel response

Fre

qu

en

cy

Log-linear histogram of pixel response under uniform illumination

1508 DN mean Photoelectron = 694 e- PRNU = 0.27%

Relative pixel response

Fre

qu

en

cy

Log-linear histogram of pixel response under uniform illumination

9914 DN mean Photoelectron = 4561 e- PRNU = 0.11%

50050 DN mean Photoelectron = 23023 e- PRNU = 0.083%

32686 DN mean Photoelectron = 15036 e- PRNU = 0.062%

128x128

1500x1500

1508 DN = 694 e- mean illumination (1500x1500)

128x128

1500 x 1500 area used for statistics

Normalized averaged image from 20000 frames

1500x1500

32686 DN = 15036 e- mean illumination (1500x1500)

Normalized averaged image from 1000 frames

Low light range (High gain amplifier) High light range (Low gain amplifier)

2000x2000 2000x2000

a

b

Figure 4. Distribution of absolute response error at various light levels

LINEARITY

Linearity, low light range, 3 different cameras

Exposure time (msec)

Inte

nsi

ty (

DN

)

Exposure time (msec)

Frac

tio

nal

err

or

(%)

Camera_1 Linearity error = 0.14 Linearity = 99.86%

Camera_2 Linearity error = 0.17 Linearity = 99.83%

Camera_3 Linearity error = 0.16 Linearity = 99.84%

Fractional error (%): based on modified EMVA1288 standard. 100% is light range (100 – 1000 DN).

Linearity, full light range, 3 different cameras

Camera_2 Linearity error = 0.39% Linearity = 99.61%

Camera_3 Linearity error = 0.38% Linearity = 99.62%

Camera_4 Linearity error = 0.33% Linearity = 99.67%

Fractional error (%): based on EMVA1288 standard

Exposure time (msec)

Inte

nsi

ty (

DN

)

Exposure time (msec) Fr

acti

on

al e

rro

r (%

)

Figure 3. Linearity of 3 different cameras in both a) low and b) high light

ranges.

a

b

Absolute error (Pixel signal - mean signal) [Photons]

50.8

102.4 157.1 205.6 303.7 404.4 606.5 901.9

1369.9

All pixel average of (signal - offset) [DN]

Histogram of Error for all pixels at each light level

Fre

qu

en

cy

Offset

2000 x 2000 pixels Standard scan mode

e-

Read noise map

Temporal Dark (Read) Noise

e-

Fre

qu

en

cy Mean = 1.31

RMS = 1.62 Median = 0.99

Standard scan mode

e-

Fre

qu

en

cy Mean = 1.13

RMS = 1.48 Median = 0.82

Slow scan mode

Figure 5. Pixel-specific temporal dark read noise of ORCA-Flash4.0 V3

sCMOS camera.

Figure 5. a) Variance coefficient map, b) histogram of variance coefficient

Kxy and residual Kxy error as a function of light level. The curve labeled

“Statistical measurement precision limit” shows the statistical uncertainty in

measurement of the variance of a single pixel using 20,000 measurements

arising solely from statistical considerations.

Variancexy = Kxy*(Signalxy-Offsetxy) + readnoise2xy

Kxy estimation fit using weighted least square at 9 light level 20000 frames at each light level 2048 x 2048

Variance coefficient (Kxy) map Histogram of Variance coefficient (Kxy)

DN2/DN

Fre

qu

en

cy

50.8 102.4

157.1

205.6 303.7 404.4 606.5

901.9 1369.9

All pixel average of (signal - offset) [DN]

Histogram of Kxy Error for all pixels at each light level

Fre

qu

en

cy

Kxy Error (measured variance – fitted variance) [rate]

Statistical measurement precision limit

a

b

DN

2/DN