Beruflich Dokumente
Kultur Dokumente
Nathan Hagen
Shuhei Shibata
Yukitoshi Otani
Nathan Hagen, Shuhei Shibata, Yukitoshi Otani, “Calibration and performance assessment of microgrid
polarization cameras,” Opt. Eng. 58(8), 082408 (2019), doi: 10.1117/1.OE.58.8.082408.
Abstract. We provide a method for calibrating microgrid polarization cameras that is simpler and easier to set
up than existing methods. Applying this method to three different commercially available cameras, we compare
the mean values and variances in their diattenuation and orientation properties. We derive formulas giving the
accuracy with which the pixel polarization properties can be calibrated in both the Gaussian and Poisson noise
regimes and demonstrate the statistical instability of the extinction ratio as a parameter. In a series of calibration
measurements, we estimate the pixel-to-pixel variation of polarization properties and show how to separate the
effects of temporal noise from manufacturing variation. © 2019 Society of Photo-Optical Instrumentation Engineers (SPIE) [DOI: 10
.1117/1.OE.58.8.082408]
Keywords: polarization; imaging polarimetry; noise.
Paper 181690SS received Nov. 28, 2018; accepted for publication Feb. 1, 2019; published online Feb. 23, 2019.
*Address all correspondence to Nathan Hagen, E-mail: nh@hagenlab.org 0091-3286/2019/$25.00 © 2019 SPIE
(a) (b)
Fig. 1 The detection layer of a polarization camera, with micropolarizers (a) attached above the sensor
layer and (b) integrated into the sensor layer. Optical rays shown in blue are cross talk rays from one pixel
to its neighbor.
EQ-TARGET;temp:intralink-;e001;63;506
0 1
qþr ðq − rÞ cosð2αÞ ðq − rÞ sinð2αÞ 0
B pffiffiffiffiffi 2 pffiffiffiffiffi C
1BB ðq − rÞ cosð2αÞ ðq þ rÞcos ð2αÞ þ 2 qr sin ð2αÞ 2 ðq þ r − 2 qrÞ sinð4αÞ
C
2 1
0 C
Mld ðq; r; αÞ ¼ B pffiffiffiffiffi pffiffiffiffiffi C
2 B ðq − rÞ sinð2αÞ 2 ðq þ r − 2 qrÞ sinð4αÞ
1
2 qr cos2 ð2αÞ þ ðq þ rÞsin2 ð2αÞ 0 C
@ A
pffiffiffiffiffi
0 0 0 2 qr
0 1
1 D cosð2αÞ D sinð2αÞ 0
B C
B D cosð2αÞ 1 − D sin2 ð2αÞ C
4A D sinð4αÞ
1
B 0 C
¼ AB C: (1)
B D sinð2αÞ C
4A D sinð4αÞ 1 − D cos2 ð2αÞ
1
@ 0 A
0 0 0 1−D
To measure the diattenuation properties of a polarization by detection vector d ¼ ðη; 0;0; 0Þ with quantum efficiency
camera, we generate linearly polarized light sequentially η. Thus, the above generated state will be detected as
oriented at four different θ angles and measure the detected
intensity at each of the four positions (see Fig. 2). Thus, g ¼ d · Mld ðq; r; αÞ · Mlp ðθÞ · sin :
EQ-TARGET;temp:intralink-;e002;326;330 (2)
the source light Stokes vector is ssrc ¼ ðI p ; 0;0; 0ÞT , and
the Mueller matrix of the generating polarizer Mlp ðθÞ, Setting the generating polarizer to orientations
which together generate a fully polarized state, sin ¼ I p · θ ¼ 0 deg, 45 deg, 90 deg, and 135 deg, we obtain four
ð1; cos θ; sin θ; 0ÞT for use in calibrating the camera pixels. measurements:
The quantity I p is the light flux in photons/sec incident on
the given pixel of interest. g0 ¼ I e ½1 þ D cosð2αÞ þ n0 ;
EQ-TARGET;temp:intralink-;e003;326;265 (3)
The behavior of a single pixel in the polarization camera
can be modeled as a linear diattenuator Mld ðq; r; αÞ followed
g45 ¼ I e ½1 þ D sinð2αÞ þ n45 ;
EQ-TARGET;temp:intralink-;e004;326;233 (4)
1
EQ-TARGET;temp:intralink-;e012;326;752
1
Ip ¼ I; (7) hI^ 2e i ¼ ðg0 þ g45 þ g90 þ g135 Þ2
ηA e 42
EQ-TARGET;temp:intralink-;e007;63;752
1
intensity I e can be considered as the idealized photoelectron ¼ hðI ½1 þ D cosð2αÞ þ n0
number that would be detected if the polarizer were removed 16 e
(i.e., A ¼ 1). Since the detector element’s quantum effi- þ I e ½1 þ D sinð2αÞ þ n45
ciency η and the polarizing element efficiency A appear þ I e ½1 − D cosð2αÞ þ n90
as a product, we can define ηext ¼ Aη as the external quan-
tum efficiency of the pixel. If the illumination is known to be þ I e ½1 − D sinð2αÞ þ n135 Þ2 i
uniform a priori, then it is possible to estimate ηext at each 1
pixel to within an arbitrary constant. To measure the missing ¼ I 2e þ ½hn2 i þ hn245 i þ hn290 i þ hn2135 i; (12)
16 0
constant, however, it is necessary to obtain an independent
measurement of I p , such as with a radiometer.
where we have used the assumption that the noise terms are
Whereas previous calibration methods fitted pixel diatten- zero mean: hnθ i ¼ 0. This causes no difficulties for Poisson-
uation parameters using images taken at a large number of distributed noise, since our definition of the measurement
different input polarization angles,4,5,10 the choice of the four and noise (g and n) result in the mean value of the
angles (0 deg, 45 deg, 90 deg, and 135 deg) produces simple Poisson-distributed variable to be incorporated into g while
formulas for estimating the incident intensity I e and the n retains the zero-mean stochastic portion.
polarization properties at each pixel α, D, and X:
Since hI^ e i ¼ I e , we can write that varðI^ e Þ ¼ hI^ 2e i − I 2e .
1 For uniformly distributed independent Gaussian (IG) noise,
I^ e ¼ ðg0 þ g45 þ g90 þ g135 Þ;
EQ-TARGET;temp:intralink-;e008;63;541 (8) this gives
4
1
1 varIG ðI^ e Þ ¼ vg ; (13)
α^ ¼ arctan½ðg0 − g90 Þ∕ðg45 − g135 Þ; (9)
EQ-TARGET;temp:intralink-;e013;326;514
EQ-TARGET;temp:intralink-;e009;63;499
4
2
where vg is the Gaussian noise variance at each pixel.
^ ¼ 2½ðg0 − g90 Þ þ ðg45 − g135 Þ ;
2 2 1∕2
D (10) The 14 factor comes from the process of averaging over
g0 þ g45 þ g90 þ g135
EQ-TARGET;temp:intralink-;e010;63;462
EQ-TARGET;temp:intralink-;sec3;326;424
From these equations, we can see that the estimates for the
pixel polarization properties do not depend explicitly on the for each of the noise terms in Eq. (12), producing
incident light intensity I e. As a result, as long as the light
intensity does not vary significantly from one pixel to its 1
neighboring pixels, calibrating the camera does not require varPP ðI^ e Þ ¼ I e :
EQ-TARGET;temp:intralink-;e014;326;381 (14)
4
spatially uniform illumination. While differences in light
level at the camera will produce differences in noise at Next, we can calculate the variance of α^ by inserting
each pixel, this can be made small in comparison to the Eq. (9) into the variance formula. While the result is a non-
differences produced by manufacturing variations. linear equation, we can obtain a second-order power series
representation by taking the Maclaurin series expansion
in the noise variables nθ and extract the second-order
3 Estimating Parameter Variances terms.11,12 This produces a lengthy polynomial expression
From Eqs. (8)–(11), we can estimate the polarization proper- in the four noise variables, but if we assume that the
ties of a pixel from the calibration measurements gθ . It is noise terms are independent of one another, then the ensem-
also useful to assess how much individual pixels vary from ble average of all mixed-noise terms (i.e., terms having n0 n45
the overall mean—the parameter nonuniformity. Differences as factors) becomes zero. This greatly simplifies the expres-
in manufacturing process between, say, the center of the sion. Finally, we substitute the IG noise model into the result,
detector array and its edges, may result in the pixel diatten- giving
uation and orientation at the edge being different than at the
center. If the manufacturing differences are small in compari- vg
varIG ðαÞ
^ ¼ ðradians2 Þ; (15)
son to the error induced by measurement noise, then we 8D2 I 2e
EQ-TARGET;temp:intralink-;e015;326;208
Table 1 Formulas for the mean and variance of detector array polari- Table 2 The four polarization cameras measured.
zation properties.
ð3D2 þ 4Þvg source. With the diffuser in place, the estimated degree of
varIG ðDÞ
^ ¼ ; (17)
16I 2e
EQ-TARGET;temp:intralink-;e017;63;600
Fig. 3 Spatial histogram results for the three cameras, calculated after summing 2000 frames for camera
A, 100 frames for cameras B and C. Note that all of the orientation angles are adjusted so that the mean of
α0 is exactly zero. The calculated mean at the top left of each subfigure is given for each of the four pixel
types, followed by the measured standard deviation and the estimated noise-only standard deviation
values [obtained from Eq. (16)] in parentheses, i.e., mean (meas_std) (est_std). Gaussian curves for
the fitted histogram mean and standard deviations are shown as solid curves overlying the histograms.
ð1 − DÞ−1 . If we write the signal-to-noise ratio for the esti- problems for cameras B and C, camera A’s diattenuation
mate of the extinction coefficient, we obtain is sufficiently close to 1 that after background subtraction
a small fraction of pixels are left with zero or negative values
when in the crossed-polarization condition. As a result,
meanðXÞ
^ ¼q
^
EQ-TARGET;temp:intralink-;sec4;63;237 SNRðXÞ ffiffiffiffiffiffiffiffiffiffiffiffiffiffi ≈ ð1 − DÞI 1∕2
e : the tail of the distribution for D^ extends past 1, so that for
varðXÞ ^ these pixels the extinction coefficient becomes infinite
(for D ¼ 1), then wraps around to negative infinity and
approaches zero from the negative number side (for D > 1).
Thus, for a fixed number of measurement photoelectrons, These values are unphysical, of course, so that in Fig. 4 we
the SNR declines as D approaches 1, and this behavior is the have truncated the distribution for D at 1, and the distribution
property we see exhibited most clearly in the histogram for for X at 1250. Only a small portion of the distribution tail lies
camera A—the camera where the diattenuation is the highest. above these extreme values, so that without truncation the
The tail on the right hand side of the extinction ratio dis- data distribution mean will be dominated by these rare values
tribution prðXÞ
^ moves rapidly to higher values as D comes and will produce mean and variance values that are highly
closer to 1. This is a well-known property for “Gaussian ratio unstable, just as theory predicts.
distributions”—in this case the ratio of ðD þ 1Þ to ðD − 1Þ, As a result of the non-Gaussian shape for prðXÞ, ^ the
for which the mean becomes undefined and the variance median and mode of the distribution are more useful sum-
becomes infinite.13,14 While this behavior poses no serious mary metrics of the distribution than the mean, and
Fig. 4 Spatial histogram results for the three cameras, calculated after summing 2000 frames for camera
A, 100 frames for cameras B and C. Gaussian curves for the histogram mean and standard deviations
are shown as solid curves overlying the histograms. In camera A’s data, the histograms for D^ have been
truncated to 1, and those X have been truncated at 2000 to prevent unphysical values. The four colors
are coded to the four pixel orientation types: 0 deg, 45 deg, 90 deg, and 135 deg.
Table 3 Measured pixel properties for the four polarization cameras is biased toward high values by the long one-sided tail of the
obtained from the 2000-frame-sum images (camera A) or 100-frame- distribution. In this situation, the median is probably the
sum images (cameras B and C). Each entry shows the mean value of
most useful single metric for camera users to use in evalu-
each parameter taken across the entire array, together with the tem-
poral-noise-removed estimate of the spatial standard deviation (the ating camera pixel properties. For example, if we take the
variation due to differences in manufacture) in square brackets. mean of the diattenuation distribution prior to applying
the equation for the extinction coefficient, X ¼ ð1 þ DÞ∕
ð1 − DÞ, we obtain a result (column 4 in Table 4) that closely
Parameter Camera A Camera B Camera C approximates the median value.
α0 (deg) 0 [0.11] 0 [0.65] 0 [0.36]
α45 (deg) 44.96 [0.11] 45.20 [0.52] 41.75 [0.42] 4.1 Using Temporal Noise Estimates to Validate the
Variance Estimates
α90 (deg) 89.81 [0.13] 89.50 [0.20] 86.34 [0.34]
To validate the variance formulas, we capture a long
α135 (deg) 135.10 [0.12] 134.88 [0.23] 125.70 [0.43] sequence of frames and analyze the behavior of the polari-
zation parameters for individual pixels over time. This
D0 0.9927 [0.0025] 0.8495 [0.0152] 0.6621 [0.0082] removes the effect of spatial variability so that only temporal
D 45 0.9928 [0.0029] 0.8495 [0.0152] 0.6545 [0.0092]
noise is present. For cameras A and B, we collected a
sequence of 2000 frames, while for camera C, we were
D 90 0.9894 [0.0031] 0.8945 [0.0117] 0.6984 [0.0067] only able to capture 750 frames during a single calibration
period. At each individual frame, we calculate the pixel prop-
D 135 0.9913 [0.0025] 0.8853 [0.0108] 0.6010 [0.0123] erties I e , α, D, and X, and from the resulting set of 2000 (or
750) estimates, we calculate the parameter variance. This is
shown as the first point at the upper left of the plots in Fig. 5,
distribution quantiles can be used in place of the variance in corresponding to N ¼ 1, where N is the number of frames
order to describe the width. In Table 4, we compare the summed before calculating the parameters.
extinction ratio mean, median, and mode for camera A. Next, we take the same dataset and sum every pair of
Whereas for cameras B and C these three metrics are almost frames (i.e., N ¼ 2) before calculating the parameters. For
the same, we can see that for the case of camera A the mean a shot-noise-limited measurement, this is equivalent to
Table 4 Extinction coefficient summary statistics for camera A, using variance of all the pixels in the image (Figs. 3 and 4) are
the data shown in Fig. 4. much larger than the values predicted from the variance for-
mulas. This is an indication that pixel-to-pixel (deterministic)
Pixel orientation ^
1þhDi variability is dominating the measured variation, not tempo-
(deg) Mean (X^ ) Median (X^ ) Mode (X^ ) ^
1−hDi ral (stochastic) noise. To confirm this conclusion, we show
0 327 275 236 275 a single row of pixels from each of the calibration images
(Fig. 6), selecting every other pixel in order to avoid issues
45 342 289 246 278 of differences between micropolarizer orientations. Here, we
90 208 190 172 187
see that the α,
^ D,
^ and X^ variances are dominated by a broad
systematic variation across the row rather than by uncorre-
135 254 232 216 230 lated noise.
With the effects of stochastic and deterministic variation
now clear, we can use our variance formulas to remove the
doubling the integration time and thus collecting twice the stochastic portion from a measured variance value, leaving
number of photoelectrons. Calculating the variance for only the spatial pixel-to-pixel differences. If we assume
this new set of 1000 (or 375) parameter estimates, we obtain that the two sources of variation are Gaussian-distributed
the second point shown in the plots of Fig. 5. and uncorrelated, then their combined effect is given by a
Following this procedure for increasing values of N, we convolution of the two distributions: for stochastic variables
simulate the effect of measuring with steadily improving x and y, the variance of the sum z ¼ x þ y is given as
SNR. Using hI^ e i in place of I e in each of the variance
Eqs. (14)–(20), we plot the corresponding noise-only varian- EQ-TARGET;temp:intralink-;sec4.2;326;542 varðzÞ ¼ varðxÞ þ varðyÞ:
ces predicted from theory as a solid curve. Therefore, if we know varðzÞ and varðyÞ and want to
solve for the standard deviation of x, then
4.2 Separating Spatial Variability from Temporal pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
Noise stdðxÞ ¼ varðzÞ − varðyÞ:
EQ-TARGET;temp:intralink-;sec4.2;326;495
Although the temporal noise measurements of Fig. 5 show a If we take the data for the estimated extinction coefficient
close fit to predictions, we can also see that the measured α^ 0 from camera C in Fig. 3, then varðzÞ ¼ ½0.3652 and
Fig. 5 Temporal standard deviation of each parameter for a single pixel in each camera. The horizontal
axis indicates the number N of frames summed prior to calculating the parameter standard deviation. The
dots indicate measurements, whereas the curve indicates the theoretical standard deviation value cal-
culated from the measured light level. Note that the camera A subfigure for X^ uses a semilogarithmic plot,
while all of the other subfigures use a linear plot.
Fig. 6 Parameter estimates for a row through the camera images, calculated after summing 2000 frames
for camera A, 100 frames for cameras B and C. The inset numbers give the measured mean and stan-
dard deviation, and the theoretical noise-only standard deviation, of the row data.
varðyÞ ¼ ½0.0652 , so that stdðxÞ ¼ 0.359. In this case, we so that the mean becomes biased and highly unstable.
see that the observed spatial variation is almost entirely Unless the mean of the diattenuation distribution is many
due to pixel-to-pixel manufacturing differences rather than standard deviations below 1, i.e.,
to random noise. This and the corresponding results for α^
and D^ for each of the four cameras is given in square brackets
Q ¼ ð1 − hDiÞ∕stdð
^ DÞ
^ ≫ 1;
as the “manufacturing variation” in Table 3. By removing
EQ-TARGET;temp:intralink-;sec5;326;363
The four cameras examined in Sec. 4 above show a wide 2. V. Gruev, R. Perkins, and T. York, “CCD polarization imaging sensor
with aluminum nanowire optical filters,” Opt. Express 18, 19087–19094
spread in estimated performance, and it is natural to ask just (2010).
how important it is to work with a camera that has pixels of 3. M. Kulkarni and V. Gruev, “Integrated spectral-polarization imaging
sensor with aluminum nanowire polarization filters,” Opt. Express
extinction ratio 300 versus one with, say, an extinction ratio 20, 22997–23012 (2012).
of 10. Tyo and Wei16 and Roussel et al.17 have shown that 4. T. York and V. Gruev, “Characterization of a visible spectrum division-
even for an extinction ratio as low as X ¼ 5, the SNR in the of-focal-plane polarimeter,” Appl. Opt. 51, 5392–5400 (2012).
5. S. B. Powell and V. Gruev, “Calibration methods for division-of-focal-
Stokes vector elements increases by a factor of only ∼2.7 plane polarimeters,” Opt. Express 21, 21039–21055 (2013).
relative to an ideal diattenuator (X ¼ ∞). This would 6. Z. Chen, X. Wang, and R. Liang, “Calibration method of microgrid
seem to argue that there is little benefit to be had once polarimeters with image interpolation,” Appl. Opt. 54, 995–1001
(2015).
the extinction ratio exceeds 10 or 20, but most researchers 7. J. Zhang et al., “Non-uniformity correction for division of focal plane
and engineers persist in pushing hard to get the highest X polarimeters with a calibration method,” Appl. Opt. 55, 7236–7240
values. It seems likely that the reason for this gap between (2016).
8. Y. Maruyama et al., “3.2-MP back-illuminated polarization image sen-
the theoretical value of high X and the practical value placed sor with four-directional air-gap wire grid and 2.5-μm pixels,” IEEE
on it by users lies with the ease of calibration. For a polar- Trans. Electron. Dev. 65, 2544–2551 (2018).
9. D. V. Vorobiev, Z. Ninkov, and N. Brock, “Astronomical polarimetry
imeter employing high extinction ratio elements, one can with the RIT polarization imaging camera,” Publ. Astron. Soc. Pac.
approximate the polarizers as ideal diattenuators without 130, 64501–64523 (2018).
a heavy cost in error. A polarimeter with low extinction 10. H. Fei et al., “Calibration method for division of focal plane polarim-
eters,” Appl. Opt. 57, 4992–4996 (2018).
ratio elements, on the other hand, requires a high accuracy 11. G. W. Forbes, “Truncation and manipulation of multivariate power
calibration, and the polarimetric estimation equations will series,” J. Comput. Appl. Math. 15, 27–36 (1986).
need to be more complex in order to accommodate the non- 12. N. Zheng, N. Hagen, and D. J. Brady, “Analytic-domain lens design
with proximate ray tracing,” J. Opt. Soc. Am. A 27, 1791–1802 (2010).
ideal diattenuation values. 13. G. Marsaglia, “Ratios of normal variables,” J. Stat. Software 16, 4–13
Another place where the higher extinction ratio provides (2006).
14. N. Hagen, “Statistics of normalized Stokes polarization parameters,”
tangible benefits is for imaging polarimetry of natural out- Appl. Opt. 57, 5356–5363 (2018).
door scenes. In this situation, many pixels will be seeing 15. N. Hagen, “Flatfield correction errors due to spectral mismatching,”
light with a degree of polarization close to zero, so that Opt. Eng. 53(12), 123107 (2014).
16. J. S. Tyo and H. Wei, “Optimizing imaging polarimeters constructed
the polarimetric SNR will be poor for measuring the spatially with imperfect optics,” Appl. Opt. 45, 5497–5503 (2006).
resolved angle of polarization.17 Using a higher extinction 17. S. Roussel, M. Boffety, and F. Goudail, “Polarimetric precision of
ratio will allow for seeing smaller polarization features a micropolarizer grid-based camera in the presence of additive and
Poisson shot noise,” Opt. Express 26, 29968–29982 (2018).
above the noise level.
Biographies of the authors are not available.
References
1. J. S. Tyo, C. F. LaCasse, and B. M. Ratliff, “Total elimination of sam-
pling errors in polarization imagery obtained with integrated microgrid
polarimeters,” Opt. Lett. 34, 3187–3189 (2009).