원시데이터 수집 시스템
선정목록으로

Color‐Accurate Camera Capture with Multispectral Illumination and Multiple Exposures

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Hongyun Gao — University of Cambridge UK|||University of Cambridge, UK
  2. Rafał Mantiuk — University of Cambridge UK|||University of Cambridge, UK
  3. Graham D. Finlayson — University of East Anglia UK|||University of East Anglia, UK
DOI
10.1111/cgf.15252
저널
Computer Graphics Forum
발행년도
2024
발행기관
Wiley
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1111/cgf.15252
토픽
Color Science and Applications
OpenAlex ID
W4404195702

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Cameras cannot capture the same colors as those seen by the human eye because the eye and the cameras' sensors differ in their spectral sensitivity. To obtain a plausible approximation of perceived colors, the camera's Image Signal Processor (ISP) employs a color correction step. However, even advanced color correction methods cannot solve this underdetermined problem, and visible color inaccuracies are always present. Here, we explore an approach in which we can capture accurate colors with a regular camera by optimizing the spectral composition of the illuminant and capturing one or more exposures. We jointly optimize for the signal‐to‐noise ratio and for the color accuracy irrespective of the spectral composition of the scene. One or more images captured under controlled multispectral illuminants are then converted into a color‐accurate image as seen under the standard illuminant of D65. Our optimization allows us to reduce the color error by 20–60% (in terms of CIEDE 2000), depending on the number of exposures and camera type. The method can be used in applications in which illumination can be controlled, and high colour accuracy is required, such as product photography or with a multispectral camera flash. The code is available at https://github.com/gfxdisp/multispectral_color_correction .

본문 39,250자

본문 펼치기
Cameras cannot capture the same colors as those seen by the human eye because the eye and the cameras' sensors differ in their spectral sensitivity.To obtain a plausible approximation of perceived colors, the camera's Image Signal Processor (ISP) employs a color correction step.However, even advanced color correction methods cannot solve this underdetermined problem, and visible color inaccuracies are always present.Here, we explore an approach in which we can capture accurate colors with a regular camera by optimizing the spectral composition of the illuminant and capturing one or more exposures.We jointly optimize for the signal-to-noise ratio and for the color accuracy irrespective of the spectral composition of the scene.One or more images captured under controlled multispectral illuminants are then converted into a color-accurate image as seen under the standard illuminant of D65.Our optimization allows us to reduce the color error by 20-60% (in terms of CIEDE 2000), depending on the number of exposures and camera type.The method can be used in applications in which illumination can be controlled, and high colour accuracy is required, such as product photography or with a multispectral camera flash.The code is available at https://github.com/gfxdisp/multispectral_color_correction. Figure 1: To improve the color accuracy of a camera, we capture an object in multiple exposures (between 1 and 3), each time illuminating the object with a different light spectrum.The spectra are optimized in such a way that a linear combination of captured RGB values can be transformed into the CIE XYZ tristimulus values.In this example, the color differences are subtle but noticeable.When the Rubik's cube is captured under a D65 illuminant and transformed to the standard color space (BT.709), orange is mapped to a bright reddish color.Our optimized illuminants can correctly reproduce the original colors of the Rubik's cube.All colors in the paper are reproduced for the sRGB color space. Introduction Even professional photographic cameras are inherently colorinaccurate.This is because the camera's color filter design must balance two opposite requirements -color accuracy, which benefits from spectral transmission akin to the eye's cone sensitivities, and camera sensitivity, which benefits from wide spectral transmission resulting in color that can be transformed into a standard color space without amplifying noise.Because of that, the design of color filters in cameras is often a compromise between these two opposing goals.This poses a serious problem in applications that require accurate colors, such as material (BRDF/BTF) acquisition or product photography. Introduction The requirements for accurate color capture are well understood and known as the Luther condition [Ive15, VL27] -camera spectral sensitivity functions (SSFs) must be linear combinations of color matching functions (CMFs) of the human eye, such as CIE XYZ 1931 or CIE XYZ/LMS 2006.If this condition is met, there exists a unique 3 × 3 matrix that can transform sensor triplets to cone responses (XYZ or LMS tristimulus values) for any light spectra.However, the Luther condition does not hold for typical cameras, and therefore, color errors are unavoidable for any 3 × 3 color-correction matrix.Color accuracy can be improved either by the better spectral design of camera color filters [IQRB01,Har04,NA06,XX16,FZ20] or by finding more robust functions that map camera RGB responses to XYZ tristimulus color values [Hun93,HLR01,CW02,FMH15].The former approach requires custom filters that could be difficult to produce and will reduce camera sensitivity.The latter approach can optimize colors only for a limited range of spectral reflectance samples (e.g.24 patches of the Color Checker) and can never generalize to arbitrary spectral reflectances. Introduction In this work, we follow the third approach, pioneered by Zhu and Finlayson [ZF22], where instead of modifying a camera spectral sensitivity, we optimize the spectral composition of a multispectral light source illuminating the scene, so that accurate colors can be captured irrespectively of the material spectral reflectances.This work is distinct from the previous work in that (a) we explicitly optimize for both camera sensitivity (signal-to-noise ratio) and color accuracy; and (b) we further improve the color accuracy by capturing multiple exposures, each using a different illuminant for each exposure.We demonstrate that such an approach can drastically reduce color errors and improve camera sensitivity.The method is applicable to reflective materials that do not emit or re-emit light (fluorescence), as emission breaks the assumptions of our approach. Related Work In this section, we review the previous works that improve color correction transformation and those that design or optimize better filters or illumination. Color Correction Transformation Cameras record device-dependent sensor triplets that need to be transformed to a device-independent color space such as CIE XYZ (before mapping to one of the standard color spaces).Wandell [Wan87] has shown that image sensor values can be synthesized using linear models of the surface reflectance and light spectral power distribution.If the Luther condition is met, a 3 × 3 linear colorcorrection (LCC) matrix could accurately map the sensor triplets to XYZ tristimulus values.In addition, Drew and Funt [DF92] demonstrated that if the surface reflectance spectra can be represented by a 3-dimensional linear model, then a unique 3 × 3 matrix exists that could perfectly transform RGB values to XYZ values under any illumination. Color Correction Transformation Unfortunately, neither the Luther condition nor the 3dimensional reflectance model is satisfied in real situations, so color error between the ground truth and predicted color values cannot be entirely removed.However, LCC is still favorable in cameras' Image Signal Processing (ISP) modules due to its simplicity and exposure-invariance [KFMA23]. Color Correction Transformation Despite the above advantages, LCC may produce large color errors for some reflectance spectra.To reduce the color error of LCC, some extensions have been proposed, most notably the polynomial [HLR01] and root-polynomial [FMH15] color correction.Polynomial color correction (PCC) incorporates a multi-variate polynomial (typically 2nd degree) without constant terms to map sensor values to the tristimulus XYZ values.Although PCC can significantly reduce the mapping error, it does not adhere to the exposureinvariance property and may produce a large error when the exposure is changed.As an alternative that is exposure-invariant, Finlayson et al. [FMH15] proposed the root-polynomial color correction (RPCC).For the 2 nd degree case, the basis are R, G, B, √ RG, √ GB, √ BR.Importantly, the root-polynomial expansion was also shown to generate an independent basis, i.e., given enough terms, it can always be used to approximate data to within any desired accuracy (being mindful, of course, that a high order fit is unlikely to generalize to unseen data). Color Correction Transformation Other color correction methods include 3D Look-Up-Tables [Hun93], hue-plane preserving color correction [AH05, AC16] and neural networks [CW02, Xin11, MM21, KFMA22].Hung [Hun93] divided the color gamut into many tetrahedrons and performed nonlinear tetrahedral interpolation.A 33 × 33 × 33 look-up table was proposed to predict an output color triplet.Anderson and Hardeberg [AH05] splitted the device color gamut into multiple hueangle delimited subregions defined by the white point and two adjacent chromatic training set colors and applied the same number of white-point-preserving 3 × 3 matrices to the individual subregions to perform the color correction.Anderson and Connah [AC16] further improved this method by imposing continuous transitions between the subregions and optimizing for a better white-pointpreserving matrices.Cheung and Westland [CW02] compared a 2-layer multi-layer perceptron (MLP) and 2 nd degree PCC and claimed that they achieve approximately the same performance.MacDonald and Mayer [MM21] demonstrated that 3-layer MLP could reduce the error below 1∆E, which is a just noticeable difference [HP11], on approximately 50% of the real materials dataset over a wide range of daylight illuminations. Designing Color Filters and Special Illumination To find the optimal mapping from the sensor triplets to the XYZ tristimulus values, researchers have been trying to find optimal color filters to gather more color information so that higher accuracy transformation from sensor triplets to tristimulus values could be obtained.Vrhel and Trussell [VT94] built a mathematical framework of selecting P color filters under K viewing illuminants using priori information about the spectral reflectances.Vora and Trussell [VT97] incorporated constraints of physical realizability into the filter optimization and designed a set of filters, which may be fabricated in practice.Over the years, many works [IQRB01, Har04, NA06, XX16, FZ20, Vrh20] continued to make progress in this direction by producing filters with higher color accuracy.Instead of designing new spectral sensitivities from scratch, Finlayson and Zhu [FZ20] formulated a filter optimization framework to find a single color filter that is placed in front of the camera.The filter is optimized so that the product of the filter and camera spectral sensitivity functions (SSFs) is more linearly related to the XYZ color matching functions (CMFs) or the filtered sensor triplets are more linearly related to the target tristimulus values from a data-driven approach.To further improve the drawbacks of the optimized filter, such as filter smoothness and limited transmission, constraints were incorporated in the framework [FZ20].Although the numerical solution presented in their work indeed achieves a much smaller color error, the filter was not actually manufactured, and whether the filter could be physically reproduced accurately still remains unclear. Designing Color Filters and Special Illumination However, optimizing for color filters is not the only way to achieve smaller color errors.Zhu and Finlayson [ZF22] tackled the problem from the illumination perspective by creating the color filtering effect with a spectrally tunable lighting system that consists of 10 LED channels with adjustable intensities.Their goal was to find the illumination that made the camera more colorimetric in terms of the Luther condition.Like their work on filter design, the theoretical reduction in measurement error was significant, resulting in half the measurement error.Experiments on real results yielded an error reduction of about 1/3 across viewing conditions.Our method builds on their approach and adds two distinct advancements: a regularization term that minimizes noise in the resulting images and an extension to multiple exposures, which further improve color accuracy. Method We first outline the illumination optimization technique of [ZF22] (Section 3.1), which we extend to use multiple exposures, each with a distinct optimized illuminant (Section 3.2).To ensure that the solution is unique, we introduce a regularization on the color correction matrix (Section 3.3).Then, we formulate the cost function that maximizes the signal-to-noise ratio of captured images (Section 3.4). Color-Optimal Illuminant If we had a camera with RGB spectral sensitivity q(λ) that meets the Luther condition, we would be able to optimize for a 3×3 colorcorrection matrix M M M L such that the linear combination of camera sensitivities closely resembles color matching functions p(λ): 1. Color-Optimal Illuminant The problem is that most cameras do not meet the Luther condition, and the linear combination of camera spectral sensitivities does not match the CIE XYZ color matching functions.We cannot easily modify camera spectral sensitivity q(λ).However, Zhu and Finlayson [ZF22] noted that we can find the spectrum of an illuminant e(λ) for the scene that modulates q(λ) in such a way that its linear combination can reproduce color matching functions under a target illuminant t(λ) (e.g., D65): Color-Optimal Illuminant (2) Color-Optimal Illuminant The crux of the method is to illuminate a scene with an artificial (optimized) illuminant e(λ) so that the captured RGB values can be later transformed to color-accurate XYZ tristimulus values, as seen under the target illuminant t(λ) (e.g., D65). Color-Optimal Illuminant It is easy to show that when we find suitable e(λ), our camera will capture accurate colors regardless of the reflectance spectrum in the scene.If we have a surface with the spectral reflectance r(λ), illuminated by D65 light t(λ), its CIE XYZ tristimulus responses are: Color-Optimal Illuminant If a camera captures the same surface but under the optimized illuminant e(λ), the captured RGB values are: Color-Optimal Illuminant If the optimization from Eq. ( 2) is successful, then: Color-Optimal Illuminant and, from Eq. (3) and Eq.(4), we get: Because we cannot generate an arbitrary illuminant e(λ) with our spectrally tunable lights, we are restricted to a space of spectra that is formed by the linear combination of the spectral channels b l (λ) of our multispectral light: Color-Optimal Illuminant where w l are weights of the LED channels.Therefore, in practice, in Eq. ( 2) we optimize for weights w l rather than for e(λ). Multiple Illuminants The optimization from Eq. ( 2) was originally proposed for a single illuminant.Here, we show that the color accuracy and signal-tonoise ratio can be significantly improved by taking multiple exposures, each under a different illuminant.In that case, our optimization problem becomes: Multiple Illuminants where K is the number of exposures/illuminants, e (k) (λ) is k-th illuminant given by Eq. ( 8), w w w (k) are LED channel weights for k-th illuminant, and M M M (k) is the color-correction matrix for k-th exposure. Color-Correction Matrix Regularizer The optimization from Eq. ( 9) is still under-constrained.Assuming the LED weights w l do not reach the maximum intensity for all the elements, if we multiply w w w by a factor, we could get the same objective function value if we divide M M M by the same factor.A small w w w is not ideal because a dim light requires either a longer exposure time or a higher gain (ISO).At the same time, a M M M with large elements is also undesirable as they amplify sensor values and thus noise.To address this problem, we introduce a regularization term: Color-Correction Matrix Regularizer which biases color-correction matrices towards smaller magnitudes.Although this regularizer improves the color correction numerical stability, it constrains the capacity of the color-correction matrix towards a more accurate color correction.β is the importance of this term, and we explore the effect of β in Section 4.2.The regularization term ϵ R is then added to the objective function in Eq. (2) or Eq.(9). Signal-to-Noise Ratio An illuminant that is optimized for higher color accuracy may result in lower signal-to-noise ratio.Here, we want to find the best balance between the two -the aspect that has not be addressed in the previous works. Signal-to-Noise Ratio We want to maximize the SNR of the resulting image in the target color space (XYZ, after transformation via color-correction matrix).Let U d be random variables explaining pixel values in that target space, separately for each channel d.Then, the signal-to-noise ratio for each channel is given by: Signal-to-Noise Ratio where E is the expected value and V is the variance operator.v v v is the sensor RAW RGB triplet, explained below. Signal-to-Noise Ratio A camera's noise can be well modeled in the camera's native color space (linear RGB, or RAW values) as the sum of the Poisson distribution, explaining the photon shot noise, and the normal distribution, explaining the readout and ADC noise [FTKE08,HZM20]: Signal-to-Noise Ratio where per-color channel parameter ac and variance σ 2 c vary between cameras and across the camera's gain settings.In our experiments, we use the noise parameters measured by Hanji et al. [HZM20].ψc is the effective number of photons reaching the sensor.Since E(Vc) = ac ψc = vc, we get ψc = vc /ac, where vc is the RAW sensor value (RGB).When the camera's native RGB color values are transformed to the target XYZ color space via a colorcorrection matrix M M M, the noise distribution will be similarly transformed: Signal-to-Noise Ratio where m c,d are the individual components of the color-correction matrix M M M. Eq. (13) brings a few interesting observations.First, the noise in the target color space becomes correlated across color channels; all color channels in the input color space contribute to the noise in the target color space.Second, the elements of the color-correction matrix m c,d can be both positive and negative.When m c,d is negative, it will reduce signal (E(U d )), but it will increase the noise V(U d ) because of the squares in the equation.Therefore, the optimization will bias the solution towards positive coefficients in the color-correction matrix. Signal-to-Noise Ratio With the noise properly modeled, we can introduce the signalto-noise regularization term into our optimization: Signal-to-Noise Ratio where γ is the importance of this term (explored in Section 4.2).Note that the amount of noise depends on the sensor RAW values.Therefore, v v v i represents the triplet of RAW RGB sensor values, drawn from the unit RGB color cube sampled in the range [0.0001, 1] with the logarithmic spacing.N is the number of color samples.The regularization term ϵ SNR is then added together with ϵ SNR from Eq. (10) to the objective function in Eq. (2) or Eq.(9). Optimization We use MATLAB's interior-point non-linear constrained optimization method (fmincon function) to solve for the optimal LED channel weights and color-correction matrix.We initialize all the parameters with random values between 0 to 1.To avoid local minima, we ran the optimization using 10 different seeds and picked the one that resulted in the smallest values of the objective function. Optimization The optimization for three illuminants takes around 48 seconds on Intel Core i7-7700 CPU.Note that this optimization needs to be done only once per camera. Fine-tuning of color correction matrix The optimization problem in Eq. ( 9) jointly solves for the illuminants e (k) (λ) and color correction matrices M M M (k) , assuming that the measured camera spectral sensitivities and the optimized illuminants are accurate.However, small inaccuracies in camera sensitivity measurements or deviations in light emitted from the spectrally tunable LEDs may result in degraded color accuracy.To compensate for such inaccuracies, we introduce an optional fine-tuning step in which we refit the color correction matrices M M M (k) .For each patch in a color checker, we capture RGB pixel values under the optimized illuminants e (k) (λ) and then measure the corresponding XYZ under the target illuminant t(λ) (D65).Then, we optimize: Fine-tuning of color correction matrix Such optimization can compensate for the inaccuracies in measurements, but it can also overfit to the color checker spectra.Therefore, we compare results with and without this additional step in the results section below.The spectrally tunable light module iQ-LED (Image Engineering) consists of 41 high-power LEDs separated into 20 channels on a 10 × 10 cm board.Each LED channel peaks at different wavelength and its intensity is tunable.By adjusting the intensity of individual LED channels, we could generate our desired light spectrum such as D65 or other specially designed light spectra. Fine-tuning of color correction matrix In order to mix the light produced by individual LEDs located at different positions on the circuit, we made an elbow-shaped wooden case with iQ-LED lights directed towards the elbow (see Figure 2).The interior of the elbow was lined with white paper.We put the light source on top of a small desk so that objects under the desk are illuminated properly, as shown in Figure 2b.To measure the light spectrum, we put a patch of white diffuse reflectance standard (Labsphere's Spectralon has uniform spectral reflectance of about 91%) under the desk and position our spectroradiometer (JETI Specbos 1211) approximately 60 cm away from the Spectralon.Since the reflectance spectrum of the Spectralon is approximated flat within the visible spectrum, we can obtain the illuminant spectral power distribution (SPD) by measuring the reflected spectrum on the Spectralon.To measure and record the LED channel response, we illuminate one channel at a time and record the individual channel response at full intensity.As plotted in Figure 3, the peak wavelength of all 20 LED channels ranges from 405 nm to 810 nm.In this paper, we work on the wavelength range between 390 nm to 780 nm, which covers the human visible spectrum, so we only use the first 18 LED channels to generate our desired light spectrum. Fine-tuning of color correction matrix The channel responses of iQ-LED, shown in Figure 3, are unfortunately not perfectly linear, and therefore, a linear combination of (16) where t(λ) is given in Eq. (8), and ∆E 00 is CIEDE2000 color difference [LCR01]. Fine-tuning of color correction matrix Despite our best attempt to mix individual channels of iQ-LED using the elbow construction, the resulting light could be still spatially non-uniform (have slightly different spectra on the illuminated surface).To improve the accuracy, all our measurements are performed at a single spatial location (see the red laser point in Figure 2a).That is, to measure different patches of a color checker, we manually shifted the color checker. Color Chart To validate the effectiveness of our method, we need a reflectance dataset where we can associate the numerical integration values to pixel values in the real image.We use the 30-color Preferred Memory Colour Chart-PMCC (THOUSLITE), which consists of 18 "memory" colors, 6 unitary hue colors and 6 neutral scale colors.With the spectrally tunable light illumination on top of the PMCC, the reflected spectrum of each color patch is the product of the illuminant SPD shining on the patch and its surface reflectance spectrum, so the surface reflectance spectrum of each color patch could be calculated by dividing the reflected spectrum by the illuminant SPD.We first put the Spectralon at the position of the red laser point and illuminate the scene using our approximated D65.After the spectroradiometer measurement, we replace the Spectralon with the PMCC and measure the color patch reflected spectrum one by one.By dividing the D65 spectroradiometer measurement from the spectroradiometer measurement of individual color patch, we can easily obtain the reflectance of each color patch. Cameras Our technique requires the knowledge of camera spectral sensitivity functions (SSFs), and we will discuss our approach to estimating the SSFs qc(λ) in the following part. Cameras As we use vector-matrix representations in the optimization, the 1 × 3 vector of sensor value triplet vc defined in Eq. (3) can be calculated as the element-wise vector product Cameras where qc is the camera SSF vector with red, green and blue; s is the vector of the surface reflectance spectrum; e is the vector of illuminant SPD.According to Eq. 17, we could construct a matrix equation for solving qc by iterating a 3-step procedure for n known illuminants onto one color patch: shining one illuminant onto the color patch, capturing the scene with the target camera, and taking the image mean value of the central area on the color patch as vc.By placing each of the 30 color patches under the fixed position, we can accumulate 30n equations for solving the SSFs.Let D denote the matrix where we put the element-wise product of each illuminant SPD e i and color patch reflectance spectrum s j in each column, so Cameras For channel c (c ∈ {r, g, b}), the sensor value vector ν can be constructed from the mean value of each cropped color patch arranged in the same order as Cameras where ν i, j corresponds to the image value of color patch s j under illuminant SPD e i .The optimization equation for single channel SSF µ can be formulated as the summation of a data term ∥D T µ − ν c ∥ 2 2 and a smoothness term ∥∇µ∥ 2 2 weighted by α Cameras where the SSF vector µ should be greater than or equal to 0 as the sensor does not produce any negative response.When we plug ν for red, green and blue values into the equation, we could obtain the SSFs for all three channels. Cameras To construct matrix D in Eq. ( 20), we generated 24 illuminants, namely 18 single channel LED responses and 6 typical illuminants such as D65.Sequential quadratic programming is employed to solve our objective equation and we set α to 0.001.In our experiments, we used two cameras: Sony A7R3 photographic camera with a Sony 35 mm/F1.8lens and IDS U3-3800CP-C-HQ computer vision camera with Kowa 25 mm/F1.8lens (LM25FC24M).The estimated SSFs between 390 nm to 780 nm of the two cameras are shown in Figure 4. Regularization of Hyper-Parameters To find the optimal illuminants, we need to select the right values for our regularization hyper-parameters γ (Eq.( 14), SNR regularizer) and β (Eq.(10), color-correction matrix regularizer).We explore the range of hyper-parameters by finding the optimum solution for a range of their values.To find suitable γ, we set β = 0 and plot SNR and ∆E for the two cameras in Figure 5.The plots show a trade-off between SNR and ∆E, with different γ needed for a different number of illuminants.The plots also show that the SNR regularization is essential when taking multiple exposures, as the lack of such regularization results in very low SNR (see the leftmost point in Figure 5-c).We select γ = 0.1 for both cameras as a compromise. Regularization of Hyper-Parameters To find suitable β, we plot SNR and ∆E of the optimal solution for the two cameras similarly and put the figure in Figure 6.The plots show that when β is too large, ∆E increases rapidly.But when it is too small, we do not gain the benefit of increased SNR with multiple exposures.We choose β = 1.0 for Sony A7R3 and β = 0.2 for the IDS camera. Optimal Illuminants and Transformed Camera SSFs The optimized illuminants for Sony A7R3 and the IDS camera are shown in the top row of Figure 8 and Figure 9.The bottom row of the corresponding figures shows how well the camera SSFs, modulated by the illuminants and transformed by the color-correction matrix, align with the CIE 1931 color matching functions.The match becomes better as we increase the number of illuminants. Validation on Color Chart We test the color accuracy and SNR on the PMCC in four different configurations: in simulation, to eliminate all potential sources of inaccuracy and estimate the lower limit of the color accuracy, and based on actual images captured with our cameras.Then, each of those is tested with and without the optional color correction finetuning step (Section 3.6).Our simulation assumes that camera SSFs from Figure 4, measured spectral reflectances of the color patches, and the optimized illuminants are accurate.The simulated camera values are computed according to Eq. (3).The real-image results are based on RGB pixel values read from the camera's RAW files.We used the Python rawpy library for decoding the RAW files (before demosaicing) for the A7R3 camera and used the APIs to obtain RAW images from the IDS camera.The black level was subtracted from the RAW values in the A7R3 images.The results for both cameras are listed in Table 2, and the comparison of captured colors is shown in Figure 12. Validation on Color Chart First, we can observe that the real-image and simulated color error values are very close to each other, confirming the accuracy of our measurements.The only exception here is the 1-illuminant real-image case without the color correction fine-tuning step for the IDS camera (2.38 average ∆E 00 error).This error was likely caused by the inaccuracy in the estimated IDS SSFs and it was corrected by the fine-tuning step. Validation on Color Chart Second, we can observe that the fine-tuning step improved the color accuracy in almost all cases and, therefore, we recommend it for the pipeline.Our further analysis focuses on the results with the fine-tuning step.Note that this step was not part of the method proposed in [ZF22]. Validation on Color Chart Third, we can observe an improvement in color accuracy as we switch from the standard D65 illuminant, to 1, 2 or 3 optimized illuminants.The average errors are very small, often much below one CIEDE2000 unit.However, in practical applications, we are even more interested in the worst-case scenario, here represented as the maximum error and listed in parenthesis.We can reduce the maximum error for Sony camera (with the fine-tuning step) from 2.46 to 0.67 ∆E 00 units, and from 3.17 to 1.91 ∆E 00 units for the IDS camera.This is a very substantial reduction of error that is rarely achieved with RGB cameras.We can also notice diminishing gains as we switch from 2 to 3 illuminants, suggesting that further improvements are difficult to achieve.The average errors are comparable across both cameras, however, the maximum errors for real images are smaller for Sony A7R3. Validation on Color Chart To demonstrate that the technique generalizes to other illuminants (different from D65), we show in Table 4 simulation results for illuminants D50, A and LED-RGB1 whose SPDs are plotted in Figure 7.The results indicate that both illuminant A and LED-RGB1 pose a challenge for accurate color reproduction, especially for Sony A7R3 camera.The large color errors for these illuminants can be reduced by a factor of 2 or 3 when taking multiple exposures under optimized illuminants. Validation on the SFU dataset The validation performed on the PMCC let us conveniently analyze all aspects of the method, but it introduces two problems.First, the PMCC is not representative of the range of reflectance spectra found in the real world.Second, we train and test on the same data, risking overfitting.To overcome these problems, we test the method on the widely-used SFU dataset [BMFC02], consisting of 1995 relectance spectra.The validation on the SFU dataset is straightforward to perform in simulation, however, as we do not have physical samples of the materials to capture camera images.Therefore, instead, we employ the approach proposed in [ZF22] and use a linear combination of reflectance (and RGB) values of the PMCC as a proxy for that dataset.Zhu and Finlayson [ZF22] observed that the majority of spectra found in the SFU dataset can be well approximated by a linear combination of four reflectances of their color chart: Validation on the SFU dataset where r SFU (λ) is a reflectance spectrum from the SFU dataset, α is a 25-dimensional weight vector and r i (λ) is one of the 25 source spectra from the PMCC.From the 30 source patches in PMCC, we remove 5 gray-scale patches (but keep white) so in total we have 25 linearly independent source spectra to build our approximation for the SFU dataset.Once we know the linear combination of the reflectance spectra, we can predict the linear RGB values captured by the camera for this reflectance as Validation on the SFU dataset where v v v i is the linear RGB pixel value captured for the PMCC patch i.According to our spectrum reconstruction results of Eq. ( 21), the mean error is 1.53% and the maximum error is 2.74%.From all the SFU linear approximations, we select those with reflectance strictly in the range [0, 1] and CIEDE2000 smaller than 1 to guarantee that the linear approximation is physically possible and accurate.In total, 1079 out of 1995 spectra are selected as our SFU validation dataset.Two examples of well-approximated reflectance spectra are plotted in the top row of Figure 10.By contrast, two spectra that cannot be well approximated are shown in the bottom row of Figure 10 -the linear combination either drops below 0 or differs from the original spectra by a large margin.We test the selected 1079 validation spectra using the linear combination of the PMCC linear RGB values and summarize the results as the "Approximated camera" part in Table 3.For completeness, we also report the results for the entire SFU dataset in the "Simulation" part of Table 3, following the simulation approach from Section 4.4. Validation on the SFU dataset The results in Table 3 confirm the trends observed in Table 2.We can observe substantial improvement up to 2 optimized illuminants for the Sony camera, and further reduction of error for 3 illuminants for the IDS camera.The mean errors are comparable to those observed for the PMCC.The additional fine-tuning step ("with CC" columns) shows significant improvement, indicating that the optimization does not overfit to the color chart.It should be noted that the table reports the 95th percentile in the parenthesis rather than the maximum error as this dataset is much larger.Those results confirm that the method can generalized to any spectra achieve very high color accuracy with ∆E 00 below 1, even for a computer vision camera.In the top row of Figure 11, we plot examples of two SFU spectra resulting in large color errors when captured under D65.The bottom row of that figure shows that the color cor- rection for our optimized three illuminants results in imperceptible color differences. Real-Camera Captures We also captured a Rubik's cube with Sony A7R3 using the optimized illuminants and D65 as shown in Figure 1.Although we do not have reference colors for those objects, the figures demonstrate that the images produced with optimized illuminants give colors that are close to reality. Conclusions Capturing multiple exposures is widely used to reduce noise (improve camera sensitivity) or expand dynamic range.Here, we show that capturing multiple exposures can also be used to improve the camera's color accuracy.We optimize a spectral composition of light so that when one or more images are captured under the optimized light spectra, the linear combination of captured RGB values can be transformed into CIE XYZ tristimulus color values.This let us radically improve color accuracy (∆E 00 below 1) while maintaining or improving the signal-to-noise ratio and without any modification to the camera.In this project, we employ a spectrally tuneable LED light module (iQ-LED), which offers a practical solution for studio photography or scanning (e.g., material acquisition).However, we foresee that the technique can be adapted to a multi-spectral flash in the future. Conclusions Table 2: Simulation and real image results of PMCC on both cameras.The "without CC" columns correspond to matching spectral responses alone, and "with CC" corresponds to fine-tuning the color correction matrix M M M on the PMCC patches (Section 3.6).The numbers in brackets represent the maximum ∆E 00 (CIEDE2000). Conclusions , T. Ritschel, and E. Whiting (Guest Editors) COMPUTER GRAPHICS forum Volume 43 (2024), Number 7 Color-Accurate Camera Capture with Multispectral Illumination and Multiple Exposures H. Gao 1 R. K. Mantiuk 1 G. D. Finlayson 2 1 University of Cambridge, UK 2 University of East Anglia, UK Conclusions et al. / Color-Accurate Camera Capture regardless of the surface reflectance spectrum r(λ). Figure 2 : Figure 2: A photograph (a) and a diagram (b) of our image capture setup with the multispectral light, color checker, two cameras, and a spectroradiometer.To avoid inconsistency in illumination, the color checker was manually shifted to capture the color at the same spatial location (indicated by the red laser pointer of the spectroradiometer). Figure 3 : Figure 3: 20 channel responses of iQ-LED spectrally tunable light. Figure 4 : Figure 4: Calculated camera spectral sensitivity functions for Sony A7R3 (left) and IDS U3-3800CP-C-HQ (right). Figure 5 : Figure5: SNR and CIEDE2000 values of Sony A7R3 (first row) and IDS U3-3800CP-C-HQ (second row) across the range of the regularization term γ.The higher γ, the larger the influence of the SNR term is.The plots correspond to the cases with 1, 2, and 3 illuminants. Figure 6 : Figure6: SNR and ∆E values of Sony A7R3 (first row) and IDS U3-3800CP-C-HQ (second row) across the value of the regularization term β.The higher β, the smaller is the norm of the color-correction matrix.The plots correspond to the cases with 1, 2 and 3 illuminants. Figure 7 : Figure 7: Spectral power distributions (SPDs) of D50, A and LED-RGB1. Figure 8 : Figure8: Top: Optimized illuminant(s) of Sony A7R3 for 1, 2 and 3 exposures.Bottom: The product of the optimized illuminant(s) and camera sensitivity transformed via color-correction matrix vs. the product of D65 and CIE 1931 color matching functions.The closer the solid line to the dashed lines of color matching functions is, the more accurate the color is. Figure 9 : Figure 9: Top: Optimized illuminant(s) of IDS U3-3800CP-C-HQ for 1, 2 and 3 exposures.Bottom: The product of the optimized illuminant(s) and camera sensitivity transformed via the color-correction matrix vs. the product of D65 and CIE 1931 color matching functions.The closer the solid line to the dashed lines of color matching functions is, the more accurate the color is. Figure 9 : ∆E 00 15.65 Figure 10 : Figure10: Reflectance in the SFU dataset and their linear reconstruction.The ∆E 00 (CIEDE2000) between the original spectra and its reconstruction is listed in the caption. Figure 11 : Figure 11: Top: SFU reflectance spectra that result in large color errors when captured with Sony A7R3 under D65.Bottom: The reconstructed colours for D65 illuminant and our optimized triplet of illuminates.The values show ∆E 00 (CIEDE2000) error. Figure 12 : Figure 12: The visualization of 30 patches of the PMCC, captured with both cameras.For each color patch, the bottom part is the reference color as measured with the spectroradiometer.The top half is horizontally split into 3 regions -left: the color captured under the approximated D65; center: color captured under 1 optimized illuminant; right: color obtained after merging information from 3 exposures, each captured under a different illuminant.The results are reported for real-image captures and with the color-correction fine-tuning step.Note that the cyan color (row 4 and column 6) is clipped in the figure because it is outside the sRGB (BT.709) color gamut. Table 1 : Notation and symbols used in the text. Table 3 : The ∆E 00 (CIEDE2000) results for the SFU dataset for both cameras.The 95th percentile ∆E 00 of the dataset is also listed in the brackets.The results for the 1079 spectra approximated by a linear combination of PMCC patches (see the text) are listed in the left half of the table.The right half shows the simulation results for all spectra in the SFU dataset. Table 4 : Simulation results of PMCC on more illuminants.The numbers in brackets represent the maximum ∆E 00 (CIEDE2000).

섹션 본문 81문단 · 37,477자

(제목 없음)

1Cameras cannot capture the same colors as those seen by the human eye because the eye and the cameras' sensors differ in their spectral sensitivity.To obtain a plausible approximation of perceived colors, the camera's Image Signal Processor (ISP) employs a color correction step.However, even advanced color correction methods cannot solve this underdetermined problem, and visible color inaccuracies are always present.Here, we explore an approach in which we can capture accurate colors with a regular camera by optimizing the spectral composition of the illuminant and capturing one or more exposures.We jointly optimize for the signal-to-noise ratio and for the color accuracy irrespective of the spectral composition of the scene.One or more images captured under controlled multispectral illuminants are then converted into a color-accurate image as seen under the standard illuminant of D65.Our optimization allows us to reduce the color error by 20-60% (in terms of CIEDE 2000), depending on the number of exposures and camera type.The method can be used in applications in which illumination can be controlled, and high colour accuracy is required, such as product photography or with a multispectral camera flash.The code is available at https://github.com/gfxdisp/multispectral_color_correction.

2Figure 1: To improve the color accuracy of a camera, we capture an object in multiple exposures (between 1 and 3), each time illuminating the object with a different light spectrum.The spectra are optimized in such a way that a linear combination of captured RGB values can be transformed into the CIE XYZ tristimulus values.In this example, the color differences are subtle but noticeable.When the Rubik's cube is captured under a D65 illuminant and transformed to the standard color space (BT.709), orange is mapped to a bright reddish color.Our optimized illuminants can correctly reproduce the original colors of the Rubik's cube.All colors in the paper are reproduced for the sRGB color space.

Introduction

3Even professional photographic cameras are inherently colorinaccurate.This is because the camera's color filter design must balance two opposite requirements -color accuracy, which benefits from spectral transmission akin to the eye's cone sensitivities, and camera sensitivity, which benefits from wide spectral transmission resulting in color that can be transformed into a standard color space without amplifying noise.Because of that, the design of color filters in cameras is often a compromise between these two opposing goals.This poses a serious problem in applications that require accurate colors, such as material (BRDF/BTF) acquisition or product photography.

4The requirements for accurate color capture are well understood and known as the Luther condition [Ive15, VL27] -camera spectral sensitivity functions (SSFs) must be linear combinations of color matching functions (CMFs) of the human eye, such as CIE XYZ 1931 or CIE XYZ/LMS 2006.If this condition is met, there exists a unique 3 × 3 matrix that can transform sensor triplets to cone responses (XYZ or LMS tristimulus values) for any light spectra.However, the Luther condition does not hold for typical cameras, and therefore, color errors are unavoidable for any 3 × 3 color-correction matrix.Color accuracy can be improved either by the better spectral design of camera color filters [IQRB01,Har04,NA06,XX16,FZ20] or by finding more robust functions that map camera RGB responses to XYZ tristimulus color values [Hun93,HLR01,CW02,FMH15].The former approach requires custom filters that could be difficult to produce and will reduce camera sensitivity.The latter approach can optimize colors only for a limited range of spectral reflectance samples (e.g.24 patches of the Color Checker) and can never generalize to arbitrary spectral reflectances.

5In this work, we follow the third approach, pioneered by Zhu and Finlayson [ZF22], where instead of modifying a camera spectral sensitivity, we optimize the spectral composition of a multispectral light source illuminating the scene, so that accurate colors can be captured irrespectively of the material spectral reflectances.This work is distinct from the previous work in that (a) we explicitly optimize for both camera sensitivity (signal-to-noise ratio) and color accuracy; and (b) we further improve the color accuracy by capturing multiple exposures, each using a different illuminant for each exposure.We demonstrate that such an approach can drastically reduce color errors and improve camera sensitivity.The method is applicable to reflective materials that do not emit or re-emit light (fluorescence), as emission breaks the assumptions of our approach.

Related Work

6In this section, we review the previous works that improve color correction transformation and those that design or optimize better filters or illumination.

Color Correction Transformation

7Cameras record device-dependent sensor triplets that need to be transformed to a device-independent color space such as CIE XYZ (before mapping to one of the standard color spaces).Wandell [Wan87] has shown that image sensor values can be synthesized using linear models of the surface reflectance and light spectral power distribution.If the Luther condition is met, a 3 × 3 linear colorcorrection (LCC) matrix could accurately map the sensor triplets to XYZ tristimulus values.In addition, Drew and Funt [DF92] demonstrated that if the surface reflectance spectra can be represented by a 3-dimensional linear model, then a unique 3 × 3 matrix exists that could perfectly transform RGB values to XYZ values under any illumination.

8Unfortunately, neither the Luther condition nor the 3dimensional reflectance model is satisfied in real situations, so color error between the ground truth and predicted color values cannot be entirely removed.However, LCC is still favorable in cameras' Image Signal Processing (ISP) modules due to its simplicity and exposure-invariance [KFMA23].

9Despite the above advantages, LCC may produce large color errors for some reflectance spectra.To reduce the color error of LCC, some extensions have been proposed, most notably the polynomial [HLR01] and root-polynomial [FMH15] color correction.Polynomial color correction (PCC) incorporates a multi-variate polynomial (typically 2nd degree) without constant terms to map sensor values to the tristimulus XYZ values.Although PCC can significantly reduce the mapping error, it does not adhere to the exposureinvariance property and may produce a large error when the exposure is changed.As an alternative that is exposure-invariant, Finlayson et al. [FMH15] proposed the root-polynomial color correction (RPCC).For the 2 nd degree case, the basis are R, G, B, √ RG, √ GB, √ BR.Importantly, the root-polynomial expansion was also shown to generate an independent basis, i.e., given enough terms, it can always be used to approximate data to within any desired accuracy (being mindful, of course, that a high order fit is unlikely to generalize to unseen data).

10Other color correction methods include 3D Look-Up-Tables [Hun93], hue-plane preserving color correction [AH05, AC16] and neural networks [CW02, Xin11, MM21, KFMA22].Hung [Hun93] divided the color gamut into many tetrahedrons and performed nonlinear tetrahedral interpolation.A 33 × 33 × 33 look-up table was proposed to predict an output color triplet.Anderson and Hardeberg [AH05] splitted the device color gamut into multiple hueangle delimited subregions defined by the white point and two adjacent chromatic training set colors and applied the same number of white-point-preserving 3 × 3 matrices to the individual subregions to perform the color correction.Anderson and Connah [AC16] further improved this method by imposing continuous transitions between the subregions and optimizing for a better white-pointpreserving matrices.Cheung and Westland [CW02] compared a 2-layer multi-layer perceptron (MLP) and 2 nd degree PCC and claimed that they achieve approximately the same performance.MacDonald and Mayer [MM21] demonstrated that 3-layer MLP could reduce the error below 1∆E, which is a just noticeable difference [HP11], on approximately 50% of the real materials dataset over a wide range of daylight illuminations.

Designing Color Filters and Special Illumination

11To find the optimal mapping from the sensor triplets to the XYZ tristimulus values, researchers have been trying to find optimal color filters to gather more color information so that higher accuracy transformation from sensor triplets to tristimulus values could be obtained.Vrhel and Trussell [VT94] built a mathematical framework of selecting P color filters under K viewing illuminants using priori information about the spectral reflectances.Vora and Trussell [VT97] incorporated constraints of physical realizability into the filter optimization and designed a set of filters, which may be fabricated in practice.Over the years, many works [IQRB01, Har04, NA06, XX16, FZ20, Vrh20] continued to make progress in this direction by producing filters with higher color accuracy.Instead of designing new spectral sensitivities from scratch, Finlayson and Zhu [FZ20] formulated a filter optimization framework to find a single color filter that is placed in front of the camera.The filter is optimized so that the product of the filter and camera spectral sensitivity functions (SSFs) is more linearly related to the XYZ color matching functions (CMFs) or the filtered sensor triplets are more linearly related to the target tristimulus values from a data-driven approach.To further improve the drawbacks of the optimized filter, such as filter smoothness and limited transmission, constraints were incorporated in the framework [FZ20].Although the numerical solution presented in their work indeed achieves a much smaller color error, the filter was not actually manufactured, and whether the filter could be physically reproduced accurately still remains unclear.

12However, optimizing for color filters is not the only way to achieve smaller color errors.Zhu and Finlayson [ZF22] tackled the problem from the illumination perspective by creating the color filtering effect with a spectrally tunable lighting system that consists of 10 LED channels with adjustable intensities.Their goal was to find the illumination that made the camera more colorimetric in terms of the Luther condition.Like their work on filter design, the theoretical reduction in measurement error was significant, resulting in half the measurement error.Experiments on real results yielded an error reduction of about 1/3 across viewing conditions.Our method builds on their approach and adds two distinct advancements: a regularization term that minimizes noise in the resulting images and an extension to multiple exposures, which further improve color accuracy.

Method

13We first outline the illumination optimization technique of [ZF22] (Section 3.1), which we extend to use multiple exposures, each with a distinct optimized illuminant (Section 3.2).To ensure that the solution is unique, we introduce a regularization on the color correction matrix (Section 3.3).Then, we formulate the cost function that maximizes the signal-to-noise ratio of captured images (Section 3.4).

Color-Optimal Illuminant

14If we had a camera with RGB spectral sensitivity q(λ) that meets the Luther condition, we would be able to optimize for a 3×3 colorcorrection matrix M M M L such that the linear combination of camera sensitivities closely resembles color matching functions p(λ): 1.

15The problem is that most cameras do not meet the Luther condition, and the linear combination of camera spectral sensitivities does not match the CIE XYZ color matching functions.We cannot easily modify camera spectral sensitivity q(λ).However, Zhu and Finlayson [ZF22] noted that we can find the spectrum of an illuminant e(λ) for the scene that modulates q(λ) in such a way that its linear combination can reproduce color matching functions under a target illuminant t(λ) (e.g., D65):

16(2)

17The crux of the method is to illuminate a scene with an artificial (optimized) illuminant e(λ) so that the captured RGB values can be later transformed to color-accurate XYZ tristimulus values, as seen under the target illuminant t(λ) (e.g., D65).

18It is easy to show that when we find suitable e(λ), our camera will capture accurate colors regardless of the reflectance spectrum in the scene.If we have a surface with the spectral reflectance r(λ), illuminated by D65 light t(λ), its CIE XYZ tristimulus responses are:

19If a camera captures the same surface but under the optimized illuminant e(λ), the captured RGB values are:

20If the optimization from Eq. ( 2) is successful, then:

21and, from Eq. (3) and Eq.(4), we get: Because we cannot generate an arbitrary illuminant e(λ) with our spectrally tunable lights, we are restricted to a space of spectra that is formed by the linear combination of the spectral channels b l (λ) of our multispectral light:

22where w l are weights of the LED channels.Therefore, in practice, in Eq. ( 2) we optimize for weights w l rather than for e(λ).

Multiple Illuminants

23The optimization from Eq. ( 2) was originally proposed for a single illuminant.Here, we show that the color accuracy and signal-tonoise ratio can be significantly improved by taking multiple exposures, each under a different illuminant.In that case, our optimization problem becomes:

24where K is the number of exposures/illuminants, e (k) (λ) is k-th illuminant given by Eq. ( 8), w w w (k) are LED channel weights for k-th illuminant, and M M M (k) is the color-correction matrix for k-th exposure.

Color-Correction Matrix Regularizer

25The optimization from Eq. ( 9) is still under-constrained.Assuming the LED weights w l do not reach the maximum intensity for all the elements, if we multiply w w w by a factor, we could get the same objective function value if we divide M M M by the same factor.A small w w w is not ideal because a dim light requires either a longer exposure time or a higher gain (ISO).At the same time, a M M M with large elements is also undesirable as they amplify sensor values and thus noise.To address this problem, we introduce a regularization term:

26which biases color-correction matrices towards smaller magnitudes.Although this regularizer improves the color correction numerical stability, it constrains the capacity of the color-correction matrix towards a more accurate color correction.β is the importance of this term, and we explore the effect of β in Section 4.2.The regularization term ϵ R is then added to the objective function in Eq. (2) or Eq.(9).

Signal-to-Noise Ratio

27An illuminant that is optimized for higher color accuracy may result in lower signal-to-noise ratio.Here, we want to find the best balance between the two -the aspect that has not be addressed in the previous works.

28We want to maximize the SNR of the resulting image in the target color space (XYZ, after transformation via color-correction matrix).Let U d be random variables explaining pixel values in that target space, separately for each channel d.Then, the signal-to-noise ratio for each channel is given by:

29where E is the expected value and V is the variance operator.v v v is the sensor RAW RGB triplet, explained below.

30A camera's noise can be well modeled in the camera's native color space (linear RGB, or RAW values) as the sum of the Poisson distribution, explaining the photon shot noise, and the normal distribution, explaining the readout and ADC noise [FTKE08,HZM20]:

31where per-color channel parameter ac and variance σ 2 c vary between cameras and across the camera's gain settings.In our experiments, we use the noise parameters measured by Hanji et al. [HZM20].ψc is the effective number of photons reaching the sensor.Since E(Vc) = ac ψc = vc, we get ψc = vc /ac, where vc is the RAW sensor value (RGB).When the camera's native RGB color values are transformed to the target XYZ color space via a colorcorrection matrix M M M, the noise distribution will be similarly transformed:

32where m c,d are the individual components of the color-correction matrix M M M. Eq. (13) brings a few interesting observations.First, the noise in the target color space becomes correlated across color channels; all color channels in the input color space contribute to the noise in the target color space.Second, the elements of the color-correction matrix m c,d can be both positive and negative.When m c,d is negative, it will reduce signal (E(U d )), but it will increase the noise V(U d ) because of the squares in the equation.Therefore, the optimization will bias the solution towards positive coefficients in the color-correction matrix.

33With the noise properly modeled, we can introduce the signalto-noise regularization term into our optimization:

34where γ is the importance of this term (explored in Section 4.2).Note that the amount of noise depends on the sensor RAW values.Therefore, v v v i represents the triplet of RAW RGB sensor values, drawn from the unit RGB color cube sampled in the range [0.0001, 1] with the logarithmic spacing.N is the number of color samples.The regularization term ϵ SNR is then added together with ϵ SNR from Eq. (10) to the objective function in Eq. (2) or Eq.(9).

Optimization

35We use MATLAB's interior-point non-linear constrained optimization method (fmincon function) to solve for the optimal LED channel weights and color-correction matrix.We initialize all the parameters with random values between 0 to 1.To avoid local minima, we ran the optimization using 10 different seeds and picked the one that resulted in the smallest values of the objective function.

36The optimization for three illuminants takes around 48 seconds on Intel Core i7-7700 CPU.Note that this optimization needs to be done only once per camera.

Fine-tuning of color correction matrix

37The optimization problem in Eq. ( 9) jointly solves for the illuminants e (k) (λ) and color correction matrices M M M (k) , assuming that the measured camera spectral sensitivities and the optimized illuminants are accurate.However, small inaccuracies in camera sensitivity measurements or deviations in light emitted from the spectrally tunable LEDs may result in degraded color accuracy.To compensate for such inaccuracies, we introduce an optional fine-tuning step in which we refit the color correction matrices M M M (k) .For each patch in a color checker, we capture RGB pixel values under the optimized illuminants e (k) (λ) and then measure the corresponding XYZ under the target illuminant t(λ) (D65).Then, we optimize:

38Such optimization can compensate for the inaccuracies in measurements, but it can also overfit to the color checker spectra.Therefore, we compare results with and without this additional step in the results section below.The spectrally tunable light module iQ-LED (Image Engineering) consists of 41 high-power LEDs separated into 20 channels on a 10 × 10 cm board.Each LED channel peaks at different wavelength and its intensity is tunable.By adjusting the intensity of individual LED channels, we could generate our desired light spectrum such as D65 or other specially designed light spectra.

39In order to mix the light produced by individual LEDs located at different positions on the circuit, we made an elbow-shaped wooden case with iQ-LED lights directed towards the elbow (see Figure 2).The interior of the elbow was lined with white paper.We put the light source on top of a small desk so that objects under the desk are illuminated properly, as shown in Figure 2b.To measure the light spectrum, we put a patch of white diffuse reflectance standard (Labsphere's Spectralon has uniform spectral reflectance of about 91%) under the desk and position our spectroradiometer (JETI Specbos 1211) approximately 60 cm away from the Spectralon.Since the reflectance spectrum of the Spectralon is approximated flat within the visible spectrum, we can obtain the illuminant spectral power distribution (SPD) by measuring the reflected spectrum on the Spectralon.To measure and record the LED channel response, we illuminate one channel at a time and record the individual channel response at full intensity.As plotted in Figure 3, the peak wavelength of all 20 LED channels ranges from 405 nm to 810 nm.In this paper, we work on the wavelength range between 390 nm to 780 nm, which covers the human visible spectrum, so we only use the first 18 LED channels to generate our desired light spectrum.

40The channel responses of iQ-LED, shown in Figure 3, are unfortunately not perfectly linear, and therefore, a linear combination of (16) where t(λ) is given in Eq. (8), and ∆E 00 is CIEDE2000 color difference [LCR01].

41Despite our best attempt to mix individual channels of iQ-LED using the elbow construction, the resulting light could be still spatially non-uniform (have slightly different spectra on the illuminated surface).To improve the accuracy, all our measurements are performed at a single spatial location (see the red laser point in Figure 2a).That is, to measure different patches of a color checker, we manually shifted the color checker.

Color Chart

42To validate the effectiveness of our method, we need a reflectance dataset where we can associate the numerical integration values to pixel values in the real image.We use the 30-color Preferred Memory Colour Chart-PMCC (THOUSLITE), which consists of 18 "memory" colors, 6 unitary hue colors and 6 neutral scale colors.With the spectrally tunable light illumination on top of the PMCC, the reflected spectrum of each color patch is the product of the illuminant SPD shining on the patch and its surface reflectance spectrum, so the surface reflectance spectrum of each color patch could be calculated by dividing the reflected spectrum by the illuminant SPD.We first put the Spectralon at the position of the red laser point and illuminate the scene using our approximated D65.After the spectroradiometer measurement, we replace the Spectralon with the PMCC and measure the color patch reflected spectrum one by one.By dividing the D65 spectroradiometer measurement from the spectroradiometer measurement of individual color patch, we can easily obtain the reflectance of each color patch.

Cameras

43Our technique requires the knowledge of camera spectral sensitivity functions (SSFs), and we will discuss our approach to estimating the SSFs qc(λ) in the following part.

44As we use vector-matrix representations in the optimization, the 1 × 3 vector of sensor value triplet vc defined in Eq. (3) can be calculated as the element-wise vector product

45where qc is the camera SSF vector with red, green and blue; s is the vector of the surface reflectance spectrum; e is the vector of illuminant SPD.According to Eq. 17, we could construct a matrix equation for solving qc by iterating a 3-step procedure for n known illuminants onto one color patch: shining one illuminant onto the color patch, capturing the scene with the target camera, and taking the image mean value of the central area on the color patch as vc.By placing each of the 30 color patches under the fixed position, we can accumulate 30n equations for solving the SSFs.Let D denote the matrix where we put the element-wise product of each illuminant SPD e i and color patch reflectance spectrum s j in each column, so

46For channel c (c ∈ {r, g, b}), the sensor value vector ν can be constructed from the mean value of each cropped color patch arranged in the same order as

47where ν i, j corresponds to the image value of color patch s j under illuminant SPD e i .The optimization equation for single channel SSF µ can be formulated as the summation of a data term ∥D T µ − ν c ∥ 2 2 and a smoothness term ∥∇µ∥ 2 2 weighted by α

48where the SSF vector µ should be greater than or equal to 0 as the sensor does not produce any negative response.When we plug ν for red, green and blue values into the equation, we could obtain the SSFs for all three channels.

49To construct matrix D in Eq. ( 20), we generated 24 illuminants, namely 18 single channel LED responses and 6 typical illuminants such as D65.Sequential quadratic programming is employed to solve our objective equation and we set α to 0.001.In our experiments, we used two cameras: Sony A7R3 photographic camera with a Sony 35 mm/F1.8lens and IDS U3-3800CP-C-HQ computer vision camera with Kowa 25 mm/F1.8lens (LM25FC24M).The estimated SSFs between 390 nm to 780 nm of the two cameras are shown in Figure 4.

Regularization of Hyper-Parameters

50To find the optimal illuminants, we need to select the right values for our regularization hyper-parameters γ (Eq.( 14), SNR regularizer) and β (Eq.(10), color-correction matrix regularizer).We explore the range of hyper-parameters by finding the optimum solution for a range of their values.To find suitable γ, we set β = 0 and plot SNR and ∆E for the two cameras in Figure 5.The plots show a trade-off between SNR and ∆E, with different γ needed for a different number of illuminants.The plots also show that the SNR regularization is essential when taking multiple exposures, as the lack of such regularization results in very low SNR (see the leftmost point in Figure 5-c).We select γ = 0.1 for both cameras as a compromise.

51To find suitable β, we plot SNR and ∆E of the optimal solution for the two cameras similarly and put the figure in Figure 6.The plots show that when β is too large, ∆E increases rapidly.But when it is too small, we do not gain the benefit of increased SNR with multiple exposures.We choose β = 1.0 for Sony A7R3 and β = 0.2 for the IDS camera.

Optimal Illuminants and Transformed Camera SSFs

52The optimized illuminants for Sony A7R3 and the IDS camera are shown in the top row of Figure 8 and Figure 9.The bottom row of the corresponding figures shows how well the camera SSFs, modulated by the illuminants and transformed by the color-correction matrix, align with the CIE 1931 color matching functions.The match becomes better as we increase the number of illuminants.

Validation on Color Chart

53We test the color accuracy and SNR on the PMCC in four different configurations: in simulation, to eliminate all potential sources of inaccuracy and estimate the lower limit of the color accuracy, and based on actual images captured with our cameras.Then, each of those is tested with and without the optional color correction finetuning step (Section 3.6).Our simulation assumes that camera SSFs from Figure 4, measured spectral reflectances of the color patches, and the optimized illuminants are accurate.The simulated camera values are computed according to Eq. (3).The real-image results are based on RGB pixel values read from the camera's RAW files.We used the Python rawpy library for decoding the RAW files (before demosaicing) for the A7R3 camera and used the APIs to obtain RAW images from the IDS camera.The black level was subtracted from the RAW values in the A7R3 images.The results for both cameras are listed in Table 2, and the comparison of captured colors is shown in Figure 12.

54First, we can observe that the real-image and simulated color error values are very close to each other, confirming the accuracy of our measurements.The only exception here is the 1-illuminant real-image case without the color correction fine-tuning step for the IDS camera (2.38 average ∆E 00 error).This error was likely caused by the inaccuracy in the estimated IDS SSFs and it was corrected by the fine-tuning step.

55Second, we can observe that the fine-tuning step improved the color accuracy in almost all cases and, therefore, we recommend it for the pipeline.Our further analysis focuses on the results with the fine-tuning step.Note that this step was not part of the method proposed in [ZF22].

56Third, we can observe an improvement in color accuracy as we switch from the standard D65 illuminant, to 1, 2 or 3 optimized illuminants.The average errors are very small, often much below one CIEDE2000 unit.However, in practical applications, we are even more interested in the worst-case scenario, here represented as the maximum error and listed in parenthesis.We can reduce the maximum error for Sony camera (with the fine-tuning step) from 2.46 to 0.67 ∆E 00 units, and from 3.17 to 1.91 ∆E 00 units for the IDS camera.This is a very substantial reduction of error that is rarely achieved with RGB cameras.We can also notice diminishing gains as we switch from 2 to 3 illuminants, suggesting that further improvements are difficult to achieve.The average errors are comparable across both cameras, however, the maximum errors for real images are smaller for Sony A7R3.

57To demonstrate that the technique generalizes to other illuminants (different from D65), we show in Table 4 simulation results for illuminants D50, A and LED-RGB1 whose SPDs are plotted in Figure 7.The results indicate that both illuminant A and LED-RGB1 pose a challenge for accurate color reproduction, especially for Sony A7R3 camera.The large color errors for these illuminants can be reduced by a factor of 2 or 3 when taking multiple exposures under optimized illuminants.

Validation on the SFU dataset

58The validation performed on the PMCC let us conveniently analyze all aspects of the method, but it introduces two problems.First, the PMCC is not representative of the range of reflectance spectra found in the real world.Second, we train and test on the same data, risking overfitting.To overcome these problems, we test the method on the widely-used SFU dataset [BMFC02], consisting of 1995 relectance spectra.The validation on the SFU dataset is straightforward to perform in simulation, however, as we do not have physical samples of the materials to capture camera images.Therefore, instead, we employ the approach proposed in [ZF22] and use a linear combination of reflectance (and RGB) values of the PMCC as a proxy for that dataset.Zhu and Finlayson [ZF22] observed that the majority of spectra found in the SFU dataset can be well approximated by a linear combination of four reflectances of their color chart:

59where r SFU (λ) is a reflectance spectrum from the SFU dataset, α is a 25-dimensional weight vector and r i (λ) is one of the 25 source spectra from the PMCC.From the 30 source patches in PMCC, we remove 5 gray-scale patches (but keep white) so in total we have 25 linearly independent source spectra to build our approximation for the SFU dataset.Once we know the linear combination of the reflectance spectra, we can predict the linear RGB values captured by the camera for this reflectance as

60where v v v i is the linear RGB pixel value captured for the PMCC patch i.According to our spectrum reconstruction results of Eq. ( 21), the mean error is 1.53% and the maximum error is 2.74%.From all the SFU linear approximations, we select those with reflectance strictly in the range [0, 1] and CIEDE2000 smaller than 1 to guarantee that the linear approximation is physically possible and accurate.In total, 1079 out of 1995 spectra are selected as our SFU validation dataset.Two examples of well-approximated reflectance spectra are plotted in the top row of Figure 10.By contrast, two spectra that cannot be well approximated are shown in the bottom row of Figure 10 -the linear combination either drops below 0 or differs from the original spectra by a large margin.We test the selected 1079 validation spectra using the linear combination of the PMCC linear RGB values and summarize the results as the "Approximated camera" part in Table 3.For completeness, we also report the results for the entire SFU dataset in the "Simulation" part of Table 3, following the simulation approach from Section 4.4.

61The results in Table 3 confirm the trends observed in Table 2.We can observe substantial improvement up to 2 optimized illuminants for the Sony camera, and further reduction of error for 3 illuminants for the IDS camera.The mean errors are comparable to those observed for the PMCC.The additional fine-tuning step ("with CC" columns) shows significant improvement, indicating that the optimization does not overfit to the color chart.It should be noted that the table reports the 95th percentile in the parenthesis rather than the maximum error as this dataset is much larger.Those results confirm that the method can generalized to any spectra achieve very high color accuracy with ∆E 00 below 1, even for a computer vision camera.In the top row of Figure 11, we plot examples of two SFU spectra resulting in large color errors when captured under D65.The bottom row of that figure shows that the color cor- rection for our optimized three illuminants results in imperceptible color differences.

Real-Camera Captures

62We also captured a Rubik's cube with Sony A7R3 using the optimized illuminants and D65 as shown in Figure 1.Although we do not have reference colors for those objects, the figures demonstrate that the images produced with optimized illuminants give colors that are close to reality.

Conclusions

63Capturing multiple exposures is widely used to reduce noise (improve camera sensitivity) or expand dynamic range.Here, we show that capturing multiple exposures can also be used to improve the camera's color accuracy.We optimize a spectral composition of light so that when one or more images are captured under the optimized light spectra, the linear combination of captured RGB values can be transformed into CIE XYZ tristimulus color values.This let us radically improve color accuracy (∆E 00 below 1) while maintaining or improving the signal-to-noise ratio and without any modification to the camera.In this project, we employ a spectrally tuneable LED light module (iQ-LED), which offers a practical solution for studio photography or scanning (e.g., material acquisition).However, we foresee that the technique can be adapted to a multi-spectral flash in the future.

64Table 2: Simulation and real image results of PMCC on both cameras.The "without CC" columns correspond to matching spectral responses alone, and "with CC" corresponds to fine-tuning the color correction matrix M M M on the PMCC patches (Section 3.6).The numbers in brackets represent the maximum ∆E 00 (CIEDE2000).

65, T. Ritschel, and E. Whiting (Guest Editors) COMPUTER GRAPHICS forum Volume 43 (2024), Number 7 Color-Accurate Camera Capture with Multispectral Illumination and Multiple Exposures H. Gao 1 R. K. Mantiuk 1 G. D. Finlayson 2 1 University of Cambridge, UK 2 University of East Anglia, UK

66et al. / Color-Accurate Camera Capture regardless of the surface reflectance spectrum r(λ).

Figure 2 :

67Figure 2: A photograph (a) and a diagram (b) of our image capture setup with the multispectral light, color checker, two cameras, and a spectroradiometer.To avoid inconsistency in illumination, the color checker was manually shifted to capture the color at the same spatial location (indicated by the red laser pointer of the spectroradiometer).

Figure 3 :

68Figure 3: 20 channel responses of iQ-LED spectrally tunable light.

Figure 4 :

69Figure 4: Calculated camera spectral sensitivity functions for Sony A7R3 (left) and IDS U3-3800CP-C-HQ (right).

Figure 5 :

70Figure5: SNR and CIEDE2000 values of Sony A7R3 (first row) and IDS U3-3800CP-C-HQ (second row) across the range of the regularization term γ.The higher γ, the larger the influence of the SNR term is.The plots correspond to the cases with 1, 2, and 3 illuminants.

Figure 6 :

71Figure6: SNR and ∆E values of Sony A7R3 (first row) and IDS U3-3800CP-C-HQ (second row) across the value of the regularization term β.The higher β, the smaller is the norm of the color-correction matrix.The plots correspond to the cases with 1, 2 and 3 illuminants.

Figure 7 :

72Figure 7: Spectral power distributions (SPDs) of D50, A and LED-RGB1.

Figure 8 :

73Figure8: Top: Optimized illuminant(s) of Sony A7R3 for 1, 2 and 3 exposures.Bottom: The product of the optimized illuminant(s) and camera sensitivity transformed via color-correction matrix vs. the product of D65 and CIE 1931 color matching functions.The closer the solid line to the dashed lines of color matching functions is, the more accurate the color is.

Figure 9 :

74Figure 9: Top: Optimized illuminant(s) of IDS U3-3800CP-C-HQ for 1, 2 and 3 exposures.Bottom: The product of the optimized illuminant(s) and camera sensitivity transformed via the color-correction matrix vs. the product of D65 and CIE 1931 color matching functions.The closer the solid line to the dashed lines of color matching functions is, the more accurate the color is.

75∆E 00 15.65

Figure 10 :

76Figure10: Reflectance in the SFU dataset and their linear reconstruction.The ∆E 00 (CIEDE2000) between the original spectra and its reconstruction is listed in the caption.

Figure 11 :

77Figure 11: Top: SFU reflectance spectra that result in large color errors when captured with Sony A7R3 under D65.Bottom: The reconstructed colours for D65 illuminant and our optimized triplet of illuminates.The values show ∆E 00 (CIEDE2000) error.

Figure 12 :

78Figure 12: The visualization of 30 patches of the PMCC, captured with both cameras.For each color patch, the bottom part is the reference color as measured with the spectroradiometer.The top half is horizontally split into 3 regions -left: the color captured under the approximated D65; center: color captured under 1 optimized illuminant; right: color obtained after merging information from 3 exposures, each captured under a different illuminant.The results are reported for real-image captures and with the color-correction fine-tuning step.Note that the cyan color (row 4 and column 6) is clipped in the figure because it is outside the sRGB (BT.709) color gamut.

Table 1 :

79Notation and symbols used in the text.

Table 3 :

80The ∆E 00 (CIEDE2000) results for the SFU dataset for both cameras.The 95th percentile ∆E 00 of the dataset is also listed in the brackets.The results for the 1079 spectra approximated by a linear combination of PMCC patches (see the text) are listed in the left half of the table.The right half shows the simulation results for all spectra in the SFU dataset.

Table 4 :

81Simulation results of PMCC on more illuminants.The numbers in brackets represent the maximum ∆E 00 (CIEDE2000).

참고문헌 27건

  1. Filter Selection for Multispectral Color Image Acquisition Journal of Imaging Science and Technology · Society for Imaging Science and Technology · 2004 10.2352/j.imagingsci.technol.2004.48.2.art00005
  2. Colorimetric calibration in electronic imaging devices using a look-up-table model and interpolations Journal of Electronic Imaging · SPIE · 1993 10.1117/12.132391
  3. A study of digital camera colorimetric characterization based on polynomial modeling Color Research & Application · Wiley · 2000 10.1002/1520-6378(200102)26:1<76::aid-col8>3.0.co;2-3
  4. A data set for color research Color Research & Application · Wiley · 2002 10.1002/col.10049
  5. The transformation of color-mixture equations from one system to another Journal of the Franklin Institute · Elsevier BV · 1915 10.1016/s0016-0032(15)90396-4
  6. Mathematical methods for the design of color scanning filters IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1997 10.1109/83.551700
  7. A subspace matching color filter design methodology for a multispectral imaging system IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2006 10.1109/tip.2006.877384
  8. Practical Poissonian-Gaussian Noise Modeling and Fitting for Single-Image Raw-Data IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2008 10.1109/tip.2008.2001399
  9. Color Correction Using Root-Polynomial Regression IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2405336
  10. The Synthesis and Analysis of Color Images IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1987 10.1109/tpami.1987.4767868
  11. The development of the CIE 2000 colour‐difference formula: CIEDE2000 Color Research & Application · Wiley · 2001 10.1002/col.1049
  12. Filter considerations in color correction IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1994 10.1109/83.277897
  13. A New Color Correction Model for based on BP Neural Network INTERNATIONAL JOURNAL ON Advances in Information Sciences and Service Sciences · AICIT · 2011 10.4156/aiss.vol3.issue5.9
  14. Colorimetric Characterization of Digital Cameras Preserving Hue Planes Color and Imaging Conference · 2005 10.2352/cic.2005.13.1.art00028
  15. Filter selection based on light source for multispectral imaging Optical Engineering · SPIE · 2016 10.1117/1.oe.55.7.074102
  16. Weighted Constrained Hue-Plane Preserving Camera Characterization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2590303
  17. Measuring Colour 2011 10.1002/9781119975595
  18. Natural metamers CVGIP Image Understanding · Elsevier BV · 1992 10.1016/1049-9660(92)90036-3
  19. Designing Color Filters That Make Cameras More Colorimetric IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2020 10.1109/tip.2020.3038523
  20. Designing Color Filters That Make Cameras More Colorimetric IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2020 10.1109/tip.2020.3038523
  21. Noise-Aware Merging of High Dynamic Range Image Stacks Without Camera Calibration Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-67070-2_23
  22. Improved camera color accuracy in the presence of noise with a color prefilter Color and Imaging Conference · Society for Imaging Science & Technology · 2020 10.2352/issn.2169-2629.2020.28.29
  23. Camera Colour Correction using Neural Networks London Imaging Meeting · Society for Imaging Science & Technology · 2021 10.2352/issn.2694-118x.2021.lim-54
  24. Matched illumination: using light modulation as a proxy for a color filter that makes a camera more colorimetric Optics Express · Optica Publishing Group · 2022 10.1364/oe.451839
  25. An Exposure Invariant Neural Network for Colour Correction Color and Imaging Conference · 2022 10.2352/cic.2022.30.1.31
  26. Color Camera Characterisation Using Artificial Neural Networks Color and Imaging Conference · 2002 10.2352/cic.2002.10.1.art00023
  27. Performance Comparison of Classical Methods and Neural Networks for Colour Correction Journal of Imaging · Multidisciplinary Digital Publishing Institute · 2023 10.3390/jimaging9100214