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

Convolutional Neural Network Training for RGBN Camera Color Restoration Using Generated Image Pairs

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

기본 정보

저자
  1. Zhenghao Han — Key Laboratory of Photo-Electronic Imaging Technology and Systems, School of Optics and Photonics, Ministry of Education of China, Beijing Institute of Technology, Beijing, China
  2. Li Li — Key Laboratory of Photo-Electronic Imaging Technology and Systems, School of Optics and Photonics, Ministry of Education of China, Beijing Institute of Technology, Beijing, China
  3. Weiqi Jin — Key Laboratory of Photo-Electronic Imaging Technology and Systems, School of Optics and Photonics, Ministry of Education of China, Beijing Institute of Technology, Beijing, China
  4. Xia Wang — Key Laboratory of Photo-Electronic Imaging Technology and Systems, School of Optics and Photonics, Ministry of Education of China, Beijing Institute of Technology, Beijing, China
  5. Gangcheng Jiao — Science and Technology of Low-Light-Level Night Vision Laboratory, Xi'an, China
  6. Hailin Wang — Key Laboratory of Photo-Electronic Imaging Technology and Systems, School of Optics and Photonics, Ministry of Education of China, Beijing Institute of Technology, Beijing, China
DOI
10.1109/jphot.2020.3025088
저널
IEEE photonics journal
발행년도
2020
발행기관
Institute of Electrical and Electronics Engineers
피인용수
15
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/jphot.2020.3025088
토픽
Color Science and Applications
OpenAlex ID
W3088107854

평가 내용

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

초록

RGBN cameras that can capture visible light and near-infrared (NIR) light simultaneously produce better color image quality in low-light-level conditions. However, these RGBN cameras introduce additional color bias caused by the mixing of visible information and NIR information. The color correction matrix model widely used in current commercial color digital cameras cannot handle the complicated mapping function between biased color and ground truth color. Convolutional neural networks (CNNs) are good at fitting such complicated relationships, but they require a large quantity of training image pairs of different scenes. In order to achieve satisfactory training results, large amounts of data must be captured manually, even when data augmentation techniques are applied, requiring significant time and effort. Hence, a data generation method for training pairs that are consistent with target RGBN camera parameters, based on an open access RGB-NIR dataset, is proposed. The proposed method is verified by training an RGBN camera color restoration CNN model with generated data. The results show that the CNN model trained with the generated data can achieve satisfactory RGBN color restoration performance with different RGBN sensors.

본문 38,419자

본문 펼치기
Open Access # Convolutional Neural Network Training for RGBN Camera Color Restoration Using Generated Image Pairs ### Volume 12, Number 5, October 2020 Zhenghao Han Li Li Weiqi Jin Xia Wang Gangcheng Jiao Hailin Wang DOI: 10.1109/JPHOT.2020.3025088 ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ ## Convolutional Neural Network Training for RGBN Camera Color Restoration Using Generated Image Pairs Zhenghao Han , <sup>1</sup> Li Li , <sup>1</sup> Weiqi Jin , <sup>1</sup> Xia Wang , <sup>1</sup> Gangcheng Jiao, <sup>2</sup> and Hailin Wang 1 1Key Laboratory of Photo-Electronic Imaging Technology and Systems, School of Optics and Photonics, Ministry of Education of China, Beijing Institute of Technology, Beijing 100081, China 2Science and Technology of Low-Light-Level Night Vision Laboratory, Xi’an 710065, China _DOI:10.1109/JPHOT.2020.3025088_ _This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see_ _https://creativecommons.org/licenses/by/4.0/_ Manuscript received May 29, 2020; revised September 11, 2020; accepted September 13, 2020. Date of publication September 18, 2020; date of current version October 2, 2020. This work was supported in part by Pre-study Foundation of the Army Armament Department of China under Grant 6140414050327, and in part by the Foundation of Science and Technology at the L3 Night Vision Laboratory under Grant J20170101. Corresponding author: Li Li (e-mail: lili@bit.edu.cn). Abstract: RGBN cameras that can capture visible light and near-infrared (NIR) light simultaneously produce better color image quality in low-light-level conditions. However, these RGBN cameras introduce additional color bias caused by the mixing of visible information and NIR information. The color correction matrix model widely used in current commercial color digital cameras cannot handle the complicated mapping function between biased color and ground truth color. Convolutional neural networks (CNNs) are good at fitting such complicated relationships, but they require a large quantity of training image pairs of different scenes. In order to achieve satisfactory training results, large amounts of data must be captured manually, even when data augmentation techniques are applied, requiring significant time and effort. Hence, a data generation method for training pairs that are consistent with target RGBN camera parameters, based on an open access RGB-NIR dataset, is proposed. The proposed method is verified by training an RGBN camera color restoration CNN model with generated data. The results show that the CNN model trained with the generated data can achieve satisfactory RGBN color restoration performance with different RGBN sensors. Index Terms: Color restoration, near-infrared, RGB-NIR camera, convolutional neural networks, image generation, color bias model. 1. Introduction Most commercial color digital cameras capture color spectral information through a Bayer 25% red, 50% green, 25% blue (RGGB) color filter array (CFA) coating in front of the sensor. The responses are limited to visible light. A single camera sensor can capture different spectral information at different pixel positions with a CFA at the cost of lower spatial resolution. Full-band color information for each pixel is calculated through demosaicing methods. In order to prevent the mixing of visible light and near-infrared (NIR) light, an infrared cut-off filter (IRCF) is placed in front of the sensor. A red, green, blue, near-infrared (RGBN) CFA has recently been introduced that replaces a green ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 1. CFA arrangement. (a) Traditional Bayer CFA. (b) Traditional RGBN CFA. (c) New type of RGBN CFA. Fig. 2. Color bias caused by NIR light. (a) Image captured with IRCF. (b) Image captured with IRCF removal. (c) NIR image. channel in the Bayer CFA with an NIR channel and IRCF removal. Several new types of RGBN CFAs have also been proposed [1], as shown in Fig. 1. RGBN cameras have wider spectral response than ordinary color visible cameras because of IRCF removal. They have a higher signal-to-noise ratio (SNR) but introduce extra color bias [2]. Hence, color restoration methods for RGBN cameras are necessary. Most RGBN camera color restoration methods calibrate a color correction matrix (CCM) through ordinary linear square regression (OLSR) by utilizing the chromatic values of the color checker. CCM methods that achieve satisfactory color correction results are widely used in Bayer CFA cameras, digital single lens reflex (DSLR) cameras, and mobile phone cameras. However, they do not work well on the RGBN camera color restoration task because of the more complicated color bias model and the arbitrary function form of reflection in scenes [2].The color bias is more severe for outdoor scenes with plants, as shown in Fig. 2. RGBN camera color restoration methods can be divided into CCM-based methods, spectral decomposition–based methods, sensor spectral response curve optimization methods, and learning-based methods. Park _et_ _al._ [3] improved the traditional 3 × 4 CCM by introducing three cross-channel nonlinear constrains, specifically, RN, GN, and BN. Chen _et_ _al._ [4] introduced cubic polynomial constraints whose higher-order coefficients of the NIR channel are zero. After quasi-linearization, a 3 × 19 CCM is calculated through OLSR. Monno _et_ _al._ [5] applied a quadratic polynomial CCM method proposed by Hong _et_ _al._ [6] and a root polynomial CCM method proposed by Finlayson _et_ _al._ [7] to the RGBN camera color restoration task and calibrated CCMs utilizing the chromatic values of color checker patches. Han _et_ _al._ [2] combined four kinds of regression methods and nine kinds of nonlinear methods and comprehensively studied CCM-based RGBN color restoration methods. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Park _et_ _al._ [8]–[10] proposed spectral decomposition–based methods that decompose the NIR channel into a color-relevant band and a color-irrelevant band and optimized CCM with statistical properties of different channels. Hertel _et_ _al._ [11] optimized a CCM by calculating the transfer matrix of the sensor response curve and target response curve. The method is limited by the measurement accuracy of the sensor response. Yamashita [12]–[14] measured the response curve of each channel and calculated the ratio of the integral of the NIR channel curve to the integrals of each of the color channel curves, then directly subtracted the NIR channel from the color channels with fixed ratios that assumed these ratios would not change as the scene changed. Aguilera _et_ _al._ [15] proposed a learning-based RGBN camera color restoration method with a simple network structure composed of two fully connected layers. Soria _et_ _al._ [16] proposed the single sensor multispectral images dataset SSMID, which contains three kinds of scenes: scenes with vegetation, scenes without vegetation, and multi-period scenes. They also proposed an RGBN camera color restoration method using the same simple network structure with a different optimizer and activation function. Soria _et_ _al._ [17] proposed ENDENet and CDNet for the color restoration task. Gharbi _et_ _al._ [18] proposed HDR-Net, which combines a bilateral grid and local affine color transforms. It can fit arbitrary image augmentation strategy and color transform of training pairs and dozen times improved the calculation efficiency. Brooks _et al._ [19] proposed an “unprocessing” method generating noisy and noise-free training pairs by using open access datasets for the image denoising task. Jaroensri _et_ _al._ [20] proposed a noisy and noise-free training pairs generation method utilizing a proposed image signal processing simulation pipeline and trained a denoising neural network using the generated training pairs. The core of the RGBN camera color restoration problem is to find an appropriate mapping function between the color bias image and the ground truth image. Deep learning methods have shown great ability for finding such complicated mapping functions of training data. However, a large number of color bias image and ground truth image training pairs are needed in order to train a deep neural network model. Setting up a training dataset containing different scenes is time-consuming. For the RGBN color restoration task, images captured with an IRCF are regarded as ground truth images. If only one RGBN camera is available, the ground truth images and color bias images are not captured simultaneously. Hence, elaborate image registration post-processing is needed to match moving objects in the scene. If two RGBN cameras are used for capturing the training pairs, carefully designed post-processing is still needed, such as eliminating camera shake, dealing with shifting illumination across the cameras, etc. Moreover, when the sensor parameters change significantly, one should setup a new dataset in order to get the best color restoration results. Hence, a method for generating training pairs for RGBN camera color restoration learning in a CNN is proposed. It aims at utilizing an RGB-NIR open access dataset to generate color bias image and ground truth image training pairs based on the target RGBN camera’s parameters. A CNN is trained with the generated data to accomplish the RGBN camera color restoration task. The color restoration network can be rapidly retrained for new sensors or sensor parameters by modifying the data generation parameters. The remainder of this article is arranged as follows: In Section 2 we detail each step of the data generation method and training of the network using the generated data. In Section 3 we set up the experimental environment and describe the evaluation metrics used. In Section 4 we present, validate, and assess the results of the proposed color restoration method. In Section 5 we conclude this article and discuss future work. 2. RGBN Camera Color Restoration Method _2.1_ _Data Generation Method_ The open access RGB-NIR dataset used for data generation and training in this article was proposed by Brown and Susstrunk [21]. The dataset contains 477 RGB-NIR image pairs and 9 kinds of scenes. The standard RGB (sRGB) and NIR image pairs in the dataset have been processed by ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 3. RGBN camera color restoration method pipeline and network training procedure. elaborate image registration and post-processing, such as gain control, white balance, NIR channel balance, gamma correction, etc. The proposed data generation method for RGBN camera color bias image and ground truth image pairs processes the RGB-NIR dataset images with inverse gamma correction, inverse white balance, inverse NIR channel balance, and inverse global gain based on the target RGBN camera parameters to transfer the RGB-NIR dataset images to target RGBN camera ground truth images. Then color bias is added to the ground truth images based on the color bias model, which results in color bias images. Then the generated color bias images and ground truth images are made training pairs and fed to the CNN. Finally, the output predicted images are processed by white balance and gamma correction as the final result. The pipeline of the proposed method is shown in Fig. 3. _2.1.1_ _Inverse_ _Gamma_ _Correction:_ To make images captured from different devices have the similar color appearance, gamma correction is applied to the image and the image in transferred to sRGB color space. We adopt the same gamma correction curve as reference [21] when we apply inverse gamma correction. Also, a numerical truncation process is adopted with threshold _ε_ = 10 <sup>−8</sup> in order to prevent numerical instability while training. GammaCorrection( _x_ ) = _x_ The proposed inverse gamma correction is 21 _._ 2 _._ (1) GammaCorrection <sup>−1</sup> ( _y_ ) = max ( _y, ε_ ) <sup>2</sup> <sup>_._</sup> <sup>2</sup> _._ (2) The histograms of sRGB images before and after applying inverse gamma correction are shown in Fig. 4. _2.1.2_ _Inverse Global Gain:_ The built-in auto gain control (AGC) algorithm of a camera calculates a global gain to amplify the original signal based on specific rules. Different imaging devices may adopt different AGC strategies, and the device manufacturer would not detail their AGC algorithm. Hence it is difficult to inverse global gain from the AGC algorithm point of view. However, for data generation, the question is simply to find a reasonable constant number to calculate inverse global gain. Assume the intensities of the target RGBN camera image X1 and the sRGB image X2 in the open access dataset are sampled from different exponential distributions, i.e., X1∼E( _λ_ 1), X2∼E( _λ_ 2). The probability density function of exponential distribution is _f_ ( _x_ ) = _λe_ <sup>−</sup> <sup>_λx_</sup> _._ (3) ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 4. Histograms of each channel. (a) Histogram of sRGB data. (b) Histogram after inverse gamma correction. (c) Histogram of image captured by target RGBN camera. For x ≥ 0, the maximum likelihood estimation of _λ_ is the inverse of the sample mean. Let _f_ 1( _x_ )and _f_ 2( _x_ ) be the probability density function of X1 and X2. We could transfer X2’s distribution to X1’s distribution through equation (4). ⎧ ⎨ ⎩ (4) _f_ 1( _x_ ) = _λ_ 1 _e_ <sup>−</sup> <sup>_λ_</sup> <sup>1</sup> <sup>_x_</sup> _f_ 2( _x_ ) = _λ_ 2 _e_ <sup>−</sup> <sup>_λ_</sup> <sup>2</sup> <sup>_x_</sup> ⎩ _f_ 1( _x_ ) = _f_ 2(globalGain <sup>−1</sup> ( _x_ )) ⇒ _λ_ 1 _e_ <sup>−</sup> <sup>_λ_</sup> <sup>1</sup> <sup>_x_</sup> = _λ_ 2 _e_ <sup>−</sup> <sup>_λ_</sup> <sup>2globalGain−1(</sup> <sup>_x_</sup> <sup>)</sup> ⇒ globalGain <sup>−1</sup> ( _x_ ) = <sup>_<u>λ</u>_</sup> _λ_ <sup><u>1</u></sup> 2 _λ_ <sup><u>1</u></sup> 2 <sup>ln</sup> _λ_ <sup>_<u>λ</u>_</sup> 1 <sup><u>2</u></sup> _λ_ <sup>_<u>λ</u>_</sup> 1 <sup><u>2</u></sup> <sup>_._</sup> <sup>_<u>λ</u>_</sup> _λ_ <sup><u>1</u></sup> 2 <sup>_x_</sup> <sup>+</sup> _λ_ <sup><u>1</u></sup> 2 For our test set images, the coefficient _λ_ 1 _/λ_ 2 = 0 _._ 74. The global gain is sampled from a normal distribution with _μ_ = 0.74 and _σ_ = 0.1., i.e., N(0.74, 0.1). The sampling procedure would generate images with different intensity distribution for data augmentation. The bias term _λ_ <u>12</u> <sup>ln</sup> <sup>_<u>λ</u>_</sup> _λ_ <sup><u>2</u></sup> 1 <sup>would</sup> reversely compensate the generated intensity so the generated data would lack of very bright data and very dark data and reduce robustness. Hence, the bias term is abandoned during training. _2.1.3_ _Inverse_ _White_ _Balance_ _and_ _Inverse_ _NIR_ _Channel_ _Balance:_ To make images have similar color appearance under different illumination, the output images are processed by white balance. A typical white balance algorithm calculates a 3 × 3 diagonal matrix whose diagonal elements are gains of the R, G, and B channels. The channel balance algorithm of an RGBN camera calculates a 4 × 4 diagonal matrix, including the NIR channel, denoted WBMatrix. The diagonal elements are gains of R, G, B, and NIR noted as Rgain, Ggain, Bgain, and Ngain. Then inverse white balance and inverse NIR channel balance are to multiply the inverse of WBMatrix for each channel, i.e., Bgain Rgain WBMatrix <sup>−1</sup> = ⎡ ⎢⎢⎣ Ggain ⎤−1 ⎥⎥⎦ _._ (5) Ngain Hence, the key is to find reasonable Rgain, Ggain, Bgain, and Ngain. The gray world assumption [22] is adopted in this article, which assumes that each channel has equal mean after white balance and NIR channel balance. For the target RGBN camera images in the test set, let mR, mG, mB, and mN be the means of the R, G, B, and NIR channel of the whole dataset, respectively. Let Ggain = 1; then Rgain = mG/mR, Bgain = mG/mB, and Ngain = mG/mN. We adopt Rgain = 0.8, Ggain = 1.0, Bgain = 2.0, and Ngain = 0.95 for our target RGBN camera. Actually, we sample Rgain, Bgain, and Ngain from different uniform distributions centered at 0.8, 2.0, and 0.95 for data augmentation, i.e., Rgain∼U(0.7,0.9), Bgain∼U(1.9,2.1), and Ngain∼U(0.85,1.05). _2.1.4_ _Color_ _Bias_ _Model:_ For commercial digital visible cameras, an IRCF is usually placed in front of the sensor to limit the response in the visible band. For RGBN cameras, because the R, G, and B channels transmit NIR light, there would be additional color bias. Take the R channel as an example. Let Rb be all pixels of the R channel of the RGBN image. Let Nb be all pixels of the NIR ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ channel. Let Rg be all pixels of the R channel of an image captured with IRCF. The color bias _�_ R is the residual of Rb and Rg. Then, - 1100 Rb = _α_ = _α_ Rg = _α_ I <sup>(</sup> <sup>_λ_</sup> <sup>)·</sup> R <sup>(</sup> <sup>_λ_</sup> <sup>) ·</sup> S <sup>(</sup> <sup>_λ_</sup> <sup>) ·</sup> <sup>_F_</sup> R <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_d_</sup> <sup>_λ_</sup> 380 - 1100 K( _λ_ ) · _FR_ ( _λ_ ) _d_ _λ_ 380 - 700 _K_ ( _λ_ ) · _F_ R( _λ_ ) _d_ _λ_ 380 - 1100 _�_ R = R _b_ - _Rg_ = _α_ - 1100 _K_ ( _λ_ )· _FR_ ( _λ_ ) _d_ _λ_ 700 N _b_ <sup>=</sup> <sup>_α_</sup> <sup>·</sup> _K_ ( _λ_ )· _F_ N( _λ_ ) _d_ _λ_ (6) 700 where I( _λ_ ) is the spectral power distribution function of illumination; _R_ ( _λ_ ) is the scene spectral reflectance function relative to pixel position; S( _λ_ ) is the sensor’s spectral response function; _F_ R( _λ_ ) and _F_ N( _λ_ ) are the spectral transmittance functions of the R channel filter and the NIR channel filter, respectively; and _α_ is a constant. We do not overfit _F_ R( _λ_ ) and _F_ N( _λ_ ) during data generation and training. We assume _F_ R( _λ_ ) and _F_ N( _λ_ ) have constant transmittance CR and CN in the NIR band (700 nm–1100 nm). Then, _�_ R = <sup>_<u>CR</u>_</sup> _CN_ - _Nb._ (7) Let ratioR be CR/CN and similarly calculate color bias coefficients ratioG and ratioB of the G channel and B channel. In this article, ratioR = 0.380, ratioG = 0.357, and ratioB = 0.489. The coefficients are calculated with OLSR using all test set images. Equation(6) and (7) assume that the N channel is not affected by the crosstalk of visible light. However, the manufactured NIR filter cannot block all visible light which would cause bias of color bias coefficients. Then, _<u>CR</u>_ _�_ R = ~~�~~ 700 _<u>CR</u>_ - _Nb_ = _CN_ + _δ_ <sup>·</sup> <sup>_Nb._</sup> (8) _CN_ + ~~�~~ 700 <u>380</u> <sup>_K_</sup> <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_FN_</sup> <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_d_</sup> <sup>_λ_</sup> ~~�~~ 1100 700 <sup>_K_</sup> <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> In order to take this bias into consideration, ratioR, ratioG, and ratioB are sampled from different uniform distributions centered at 0.380, 0.357, and 0.489 during training, i.e., ratioR∼U(0.33, 0.43), ratioG∼U(0.307, 0.407), and ratioB∼U(0.439, 0.539). _2.2_ _Training_ Here, we describe the RGBN camera color restoration CNN model built for this study. The training image pairs were generated by the generation method defined in Section 2.1. The output estimate images of the network were processed by white balance and gamma correction before calculation of loss, so that the color bias introduced by the white balance and gamma correction procedure was eliminated. _2.2.1_ _Data_ _Generation:_ For NIR images in the RGB-NIR open access dataset, inverse global gain and inverse NIR channel balance were applied. For sRGB images, inverse gamma correction, inverse global gain, and inverse white balance were applied. Then color bias was added to the inversed sRGB images combined with inversed NIR images. The inversed sRGB images and RGBN images after adding color bias were fed into the CNN for training. The network output estimate color restoration images. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 5. U-Net network structure adopted in this article. Fig. 6. RGBN experimental system framework. _2.2.2_ _Network_ _Structure:_ We adopted the U-Net [23] network structure, which has skip connection in the same scale layers in the encoder part and decoder part of the network. We used max-pooling for down sampling in the encoder part and bilinear interpolation for up sampling in the decoder part. We used Leaky-ReLU [24] as the activation function. Residual estimation strategy [25] was used. The detailed structure parameters are shown in Fig. 5. _2.2.3_ _Training:_ We used 10% of the data as a validation set. The test set was composed of images captured with the target RGBN camera experimental system. We randomly cropped the images into 128 × 128 patches for use as the training input of the network. Each image patch was randomly processed by data augmentation strategy including direct output, horizontal flip, vertical flip, rotate 90° clockwise, and rotate 90° counterclockwise. We used Adam [26] as the optimizer and the learning rate was set to 10 <sup>−4</sup> . Other parameters of the Adam optimizer used the default settings. We used a batch size of 32 and L1 loss as the loss function. The network was trained with an NVIDIA GTX 1080. 3. Experimental Methods _3.1_ _Experimental Setup_ The framework of the RGBN experimental system is shown in Fig. 6. We used a Photonis NOCTURN XL camera with high sensitivity as the core imaging device. An Edmund TECHSPEC Vis-NIR 50 mm fixed-focus lens with high transmittance in both the visible band and NIR band was ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 7. (a) Relative response curve of sensor and filters. (b) Filter wheel. Fig. 8. RGBN experimental system. (a) Internal system composition. (b) Final system setup. used as objective lens. A filter wheel was set between the sensor and the objective lens, driven by a FAULHABER 2250S024 BX4 CSD miniature brushless DC motor that can control the rotation angle precisely. The initial position of the filter wheel is controlled by a photoelectric switch as shown in Fig. 7(b). There are four holes on the filter wheel in which a THORLABS FD1D R,G,B,NIR filter designed for capturing high-contrast color images was placed. The R,G,B filters also have high transmittance in the NIR band. The NIR filter is a 700nm high-pass filter. The relative response curve of the sensor and filters is shown in Fig. 7(a). We used an FPGA and ARM based circuit to control and communicate all devices. A lithium battery module with a capacity of 6Ah is built into the system and powers all devices. The system could work 5 h continuously. The final system setup is shown in Fig. 8. _3.2_ _Evaluation Metrics_ We adopted angular error (AE), CIE 1976 L∗a∗b∗ color space color error ( _�Eab_ ), peak SNR (PSNR), and the structural similarity index measure (SSIM) to evaluate the color restoration results. The metrics are described in detail below. 1) AE ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ AE is used to assess angular bias between two vectors. Smaller AE means more similar color vectors. Its equation is _,_ (9) AE = arccos - _<u>XY</u>_ | _X_ | | _Y_ | where X is the reference color vector and Y is the evaluated color vector. 2) _�Eab_ CIE1976 L∗a∗b∗ color space is a uniform color space that is usually used to assess color changes perceived by human vision. Small values are better. Its equation is [27] _�Eab_ = ( _�L_ ∗) <sup>2</sup> + ( _�a_ ∗) <sup>2</sup> + ( _�b_ ∗) <sup>2</sup> ⎧ ⎪⎨ _L_ ∗= 116 _f_ ( _Y_ <sup>_<u>Y</u>_</sup> _n_ <sup>) −</sup> <sup>16</sup> (10) _L_ ∗= 116 _f_ ( _Y_ <sup>_<u>Y</u>_</sup> _L_ ∗= 116 _f_ ( _Y_ <sup>_<u>Y</u>_</sup> _n_ <sup>) −</sup> <sup>16</sup> _a_ ∗= 500[ _f_ ( _X_ <sup>_<u>X</u>_</sup> _n_ <sup>) −</sup> <sup>_f_</sup> <sup>(</sup> _a_ ∗= 500[ _f_ ( _X_ <sup>_<u>X</u>_</sup> _n_ <sup>) −</sup> <sup>_f_</sup> <sup>(</sup> _Y_ <sup>_<u>Y</u>_</sup> _n_ <sup>)]</sup> _b_ ∗= 200[ _f_ ( _Y_ <sup>_<u>Y</u>_</sup> _n_ <sup>) −</sup> <sup>_f_</sup> <sup>(</sup> _Z_ <sup>_<u>Z</u>_</sup> _n_ <sup>)]</sup> _,_ ⎪⎩ _X_ <sup>_<u>X</u>_</sup> _n_ <sup>) −</sup> <sup>_f_</sup> <sup>(</sup> _Y_ <sup>_<u>Y</u>_</sup> _n_ _Y_ <sup>_<u>Y</u>_</sup> _n_ <sup>) −</sup> <sup>_f_</sup> <sup>(</sup> _Z_ <sup>_<u>Z</u>_</sup> _n_ _Z_ <sup>_<u>Z</u>_</sup> _n_ <sup>)]</sup> _f_ ( _T_ ) = - <u>1</u> ( _T_ ) 3 _T_ _>_ 0 _._ 008856 _T_ ∈ 7 _._ 787( _T_ ) + 116 <sup><u>16</u></sup> _T_ ≤ 0 _._ 008856 _XXn_ <sup>_,_</sup> _Y_ <sup>_<u>Y</u>_</sup> _Y_ <sup>_<u>Y</u>_</sup> _n_ <sup>_,_</sup> _Z_ <sup>_<u>Z</u>_</sup> _n_ _Zn_ 3) PSNR A bigger PSNR value is better. Its equation is [28] ⎧ ⎪⎨ ⎪⎩ MSE( _f, g_ ) = _MN_ <u>1</u> - <u>(2</u> <sup>bit</sup> <u>−1)2</u> - <u>(2</u> <sup>bit</sup> <u>−1)2</u> PSNR( _f, g_ ) = 10log10 - _N_ _j_ =1 MSE( _f,g_ ) ( _fi j_ - _gi j_ ) <sup>2</sup> <sup>_,_</sup> (11) - _M_ _i_ =1 where f is the reference image, g is the test image, and “bit” is the image’s bit depth. 4) SSIM The range of SSIM is (0, 1) and a bigger SSIM value is better. Its equation is [29] ⎧ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎩ _σf_ _σg_ + _C_ 3 SSIM( _f, g_ ) = _l_ ( _f, g_ ) _c_ ( _f, g_ ) _s_ ( _f, g_ ) 2 _μf_ _μg_ + _C_ <u>1</u> _l_ ( _f, g_ ) = _μ_ <sup>2</sup> _f_ <sup>+</sup> <sup>_μ_</sup> <sup>2</sup> <sup>_g_</sup> <sup>+</sup> <sup>_C_</sup> 2 _σf_ _σg_ + _C_ <u>2</u> _c_ ( _f, g_ ) = _σf_ <sup>2</sup> <sup>+</sup> <sup>_σg_</sup> <sup>2</sup> <sup>+</sup> <sup>_C_</sup> <sup>2</sup> _f_ <sup>+</sup> <sup>_μ_</sup> <sup>2</sup> <sup>_g_</sup> <sup>+</sup> <sup>_C_</sup> <sup>1</sup> (12) _f_ <sup>2</sup> <sup>+</sup> <sup>_σg_</sup> <sup>2</sup> <sup>+</sup> <sup>_C_</sup> <sup>2</sup> _s_ ( _f, g_ ) = <sup>_σfg_</sup> <sup>+</sup> <sup>_C_</sup> <sup>3</sup> _,_ where _μf_ and _μg_ are the means of image f and g, respectively; _σf_ and _σg_ are standard deviations of image f and g; _σfg_ is the covariance of images f and g, and _C_ 1, _C_ 2, and _C_ 3 are constants. 4. Results _4.1_ _RGBN Camera Color Restoration Results_ The color restoration results are shown in Figs. 9–14. The proposed method is compared with the Chen _et_ _al._ [4] method and the Han _et_ _al._ [2] nonlinear regression method on test set. The evaluation metrics are shown in Table 1. The proposed method obtains better results on AE, _�Eab_, and PSNR, but slightly worse results on SSIM compared with the Han method. Generally speaking, CCM-based color restoration methods potentially enhance image contrast and amplify image noise at the same time. Hence, additional image denoise post-processing is needed, which limits the efficiency of the algorithm. For specific scenes, the color restored images look reddish and over-enhanced after processing by CCM-based methods compared with the proposed method, as shown in Fig. 12(e) and Fig. 12(f). The leaves look reddish and the light spot ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 9. Color restoration results for scene 1. (a) Image with IRCF. (b) IRCF removal. (c) NIR image. (d) Chen _et al._ [4] method. (e) Han _et al._ [2] method. (f) Proposed method. Fig. 10. Color restoration results for scene 2. (a) Image with IRCF. (b) IRCF removal. (c) NIR image. (d) Chen _et al._ [4] method. (e) Han _et al._ [2] method. (f) Proposed method. on the trunk is over-enhanced. The proposed method outputs more stable and reliable restored color. _4.2_ _SSMID Dataset Color Restoration Results_ The proposed method was compared with ENDENet and CDNet [17] on the SSMID dataset. The color restoration results of the subset of SSMID called OMSIV are shown in Fig. 15. The evaluation metrics are shown in Table 2, in which ‘x’ means the metric is not adopted in the compared method. The mean PSNR increased 0.76 dB and mean SSIM increased 26.4% on the test set when training ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 11. Color restoration results for scene 3. (a) Image with IRCF. (b) IRCF removal. (c) NIR image. (d) Chen _et al._ [4] method. (e) Han _et al._ [2] method. (f) Proposed method. Fig. 12. Color restoration results for scene 4. (a) Image with IRCF. (b) IRCF removal. (c) NIR image. (d) Chen _et al._ [4] method. (e) Han _et al._ [2] method. (f) Proposed method. end-to-end with the proposed network structure. The mean PSNR slightly decreased while the mean SSIM was still better than ENDENet and CDNet from training with generated data. The ENDENet and CDNet provide better results on AE. Actually, PSNR and AE react to similar image properties, so it is confusing that ENDENet and CDNet perform better by the AE measure while having worse PSNR. It is worth noting that end-to-end training always produces the best results, but an end-to-end trained network cannot be generalized to different sensors. Thus, comparing the proposed method trained with generated data with ENDENet and CDNet, which are trained end-to-end, is unfair. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ Fig. 13. Color restoration results for scene 5. (a) Image with IRCF. (b) IRCF removal. (c) NIR image. (d) Chen _et al._ [4] method. (e) Han _et al._ [2] method. (f) Proposed method. Fig. 14. Color restoration results for scene 6. (a) Image with IRCF. (b) IRCF removal. (c) NIR image. (d) Chen _et al._ [4] method. (e) Han _et al._ [2] method. (f) Proposed method. The decrease of each metric is as expected but the proposed method still has better SSIM. The comparison here is provided as proof that the proposed method could get satisfactory color restoration results without a setup dataset containing a large number of images. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ TABLE 1 Evaluation Metrics Fig. 15. OMSIV test set color restoration results. (a) Image with IRCF. (b) IRCF removal. (c) End-to-end training with proposed structure. (d) Training with the proposed generated data. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ TABLE 2 Evaluation Metrics on SSMID 5. Conclusion RGBN cameras capture visible light and NIR light simultaneously, but introduce extra color bias with a more complicated function. The traditional CCM model does not provide satisfactory RGBN camera color restoration results. A CNN can fit the mapping function when a large set of training data is provided. However, setting up a dataset with large amount of data is time-consuming. Also, the trained CNN model cannot be generalized to other sensors. We have proposed here a training pipeline to generate training pairs utilizing an open access RGB-NIR dataset based on target RGBN camera parameters. We trained a CNN model with generated data to validate the results. The results show that the proposed method produces more reliable and more stable color restoration results than CCM-based methods. The proposed method could achieve similar color restoration results compared with end-to-end training networks and can be applied to different sensors. The proposed method can rapidly train a new CNN model with generated data when the sensor parameters are changed, without setting up a new dataset. However, the proposed method is limited by the open access dataset’s image quality and scene richness. In future work, better color bias models could be further studied to generalize more accurate color bias images. References [1] Y. Monno, H. Teranaka, K. Yoshizaki, M. Tanaka, and M. Okutomi, “Single-sensor RGB-NIR imaging: High-quality system design and prototype implementation,” _IEEE Sensors J._, vol. 19, no. 2, pp. 497–507, Jan. 2019. [2] Z. Han, W. Jin, L. Li, X. Wang, X. Bai, and H. Wang, “Nonlinear regression color correction method for RGBN cameras,” _IEEE Access_, vol. 8, pp. 25914–25926, 2020. [3] B. Park, W. Choe, J. Lim, S. Lee, and C. Kim, “Color correction with edge preserving and minimal SNR decrease using multi-layer decomposition,” in _Proc. SPIE_, vol. 8296, 2012, Art. no. 829613. [4] Z. Chen, K. Wang, and R. Liang, “RGB-NIR multispectral camera,” _Opt. Express_, vol. 22, no. 5, pp. 4985–4994, 2014. [5] Y. Monno, M. Tanaka, and M. Okutomi, “N-to-sRGB mapping for single-sensor multispectral imaging,” in _Proc._ _IEEE_ _Int. Conf. Comput. Vis. Workshops_ [, 2015 [Online]. Available: https://doi.org/10.1109/ICCVW.2015.18](https://doi.org/10.1109/ICCVW.2015.18) [6] G. Hong, M. R. Luo, and P. A. Rhodes, “A study of digital camera colorimetric characterization based on polynomial modeling,” _Color Res. Appl._, vol. 26, no. 1, pp. 76–84, 2001. [7] G. D. Finlayson, M. Mackiewicz, and A. Hurlbert, “Color correction using root-polynomial regression,” _IEEE_ _Trans._ _Image Process_, vol. 24, no. 5, pp. 1460–1470, May 2015. [8] C. H. Park, H. M. Oh, and M. G. Kang, “Color restoration for infrared cutoff filter removed RGBN multispectral filter array image sensor,” in _Proc. 10th Int. Conf. Comput. Vis. Theory Appl._, 2015, pp. 30–37. [9] J. Y. Kwon, C. H. Park, and M. G. Kang, “Least square based multi-spectral color interpolation algorithm for RGB-NIR image sensors,” in _Proc. 10th Int. Conf. Comput. Vis. Theory Appl._, 2015, pp. 38–45. [10] C. H. Park and M. G. Kang, “Color restoration of RGBN multispectral filter array sensor images based on spectral decomposition,” _Sensors_, vol. 16, no. 5, 2016, Art. no. 719. [11] D. Hertel, H. Marechal, D. A. Tefera, W. Fan, and R. Hicks, “A low-cost VIS-NIR true color night vision video system based on a wide dynamic range CMOS imager,” in _Proc. IEEE Intell. Veh. Symp._, 2009, pp. 273–278. [12] H. Yamashita, D. Sugimura, and T. Hamamoto, “Enhancing low-light color images using an RGB-NIR single sensor,” in _Proc. Vis. Commun. Image Process._, 2015, pp. 1–4. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~ ~~IEEE Photonics Journal~~ ~~Convolutional Neural Network Training~~ [13] D. Sugimura, T. Mikami, H. Ya2mashita, and T. Hamamoto, “Enhancing color images of extremely low light scenes based on RGB/NIR images acquisition with different exposure times,” _IEEE_ _Trans._ _Image_ _Process._, vol. 24, no. 11, pp. 3586–3597, Nov. 2015. [14] H. Yamashita, D. Sugimura, and T. Hamamoto, “Low-light color image enhancement via iterative noise reduction using RGB/NIR sensor,” _J. Electron. Imag._, vol. 26, no. 04, 2017, Art. no. 043017. [15] C. Aguilera, X. Soria, A. D. Sappa, and R. Toledo, “RGBN multispectral images: A novel color restoration approach,” In: De la Prieta, F, _et al._ (eds.), _Trends in Cyber-Physical Multi-Agent Systems_ ., in _Proc. 15th Int. Conf. Practical Appl._ _Agents Multi-Agent Syst._ [, 2017, 155–163. [Online]. Available: https://doi.org/10.1007/978-3-319-61578-3_15](https://doi.org/10.1007/978-3-319-61578-3_15) [16] X. Soria, A. D. Sappa, and A. Akbarinia, “Multispectral single-sensor RGB-NIR imaging: New challenges and opportu nities,” in _Proc. 7th Int. Conf. Image Process. Theory, Tools, Appl._, 2017, pp. 1–6. [17] X. Soria, A. D. Sappa, and R. I. Hammoud, “Wide-band color imagery restoration for RGB-NIR single sensor images,” _Sensors_, vol. 18, no. 7, 2018, Art. no. 2059. [18] M. Gharbi, J. Chen, J. T. Barron, S. W. Hasinoff, and F. Durand, “Deep bilateral learning for real-time image enhancement,” _ACM Trans. Graph._, vol. 36, no. 4, 2017, Art. no. 118. [19] T. Brooks, B. Mildenhall, T. Xue, J. Chen, D. Sharlet, and J. T. Barron, “Unprocessing images for learned raw denoising,” in _Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit._, 2019, pp. 11036–11045. [20] R. Jaroensri, C. Biscarrat, M. Aittala, and F. Durand, “Generating training data for denoising real RGB images via camera pipeline simulation,” _Comput. Vis. Pattern Recognit._ [, 2019. [Online]. Available: https://arxiv.org/abs/1904.08825](https://arxiv.org/abs/1904.08825) [21] M. Brown and S. Susstrunk, “Multi-spectral SIFT for scene category recognition,” in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern Recognit._, 2011, 177–184. [22] G. Buchsbaum, “A spatial processor model for object colour perception,” _J._ _Franklin_ _Inst._, vol. 310, no. 1, pp. 1–26, 1980. [23] O. Ronneberger, P. Fischer, and T. Brox, “U-Net: Convolutional networks for biomedical image segmentation,” In: Navab, N, Hornegger, J, Wells, W, _et_ _al._ (eds) Med. Image Comput. Comput.-Assisted Intervention, 2015, 234–241. [[Online]. Available: https://doi.org/10.1007/978-3-319-24574-4_28](https://doi.org/10.1007/978-3-319-24574-4_28) [24] K. He, X. Zhang, S. Ren, and J. Sun, “Delving deep into rectifiers: Surpassing human-level performance on ImageNet classification,” in _Proc. IEEE Int. Conf. Comput. Vis._, 2015, pp. 1026–1034. [25] K. Zhang, W. Zuo, Y. Chen, D. Meng, and L. Zhang, “Beyond a Gaussian denoiser: Residual learning of deep CNN for image denoising,” _IEEE Trans. Image Process._, vol. 26, no. 7, pp. 3142–3155, 2017. [26] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” _Mach._ _Learn._, 2014. [Online]. Available: https: //arxiv.org/abs/1412.6980 [27] N. Liao, J. Shi, and W. Wu. _An Introduction to Digital Color Management System_, _Beijing:_ Beijing Institute of Technology Press. 2009, pp. 46–47. [28] A. Hore and D. Ziou, “Image quality metrics: PSNR vs. SSIM,” in _Proc._ _20th_ _Int._ _Conf._ _Pattern_ _Recognit._, 2010, pp. 2366–2369. [29] Z. Wang, E. P. Simoncelli, and A. C. Bovik., “Multiscale structural similarity for image quality assessment,” in _Proc. 37th_ _Asilomar Conf. Signals, Syst. Comput._, 2003, 1398–1402. ~~Vol. 12, No. 5, October 2020~~ ~~6802815~~

섹션 본문 41문단 · 21,897자

(제목 없음)

1RGBN cameras that can capture visible light and near-infrared (NIR) light simultaneously produce better color image quality in low-light-level conditions. However, these RGBN cameras introduce additional color bias caused by the mixing of visible information and NIR information. The color correction matrix model widely used in current commercial color digital cameras cannot handle the complicated mapping function between biased color and ground truth color. Convolutional neural networks (CNNs) are good at fitting such complicated relationships, but they require a large quantity of training image pairs of different scenes. In order to achieve satisfactory training results, large amounts of data must be captured manually, even when data augmentation techniques are applied, requiring significant time and effort. Hence, a data generation method for training pairs that are consistent with target RGBN camera parameters, based on an open access RGB-NIR dataset, is proposed. The proposed method is verified by training an RGBN camera color restoration CNN model with generated data. The results show that the CNN model trained with the generated data can achieve satisfactory RGBN color restoration performance with different RGBN sensors.

Introduction

2Most commercial color digital cameras capture color spectral information through a Bayer 25% red, 50% green, 25% blue (RGGB) color filter array (CFA) coating in front of the sensor. The responses are limited to visible light. A single camera sensor can capture different spectral information at different pixel positions with a CFA at the cost of lower spatial resolution. Full-band color information for each pixel is calculated through demosaicing methods. In order to prevent the mixing of visible light and near-infrared (NIR) light, an infrared cut-off filter (IRCF) is placed in front of the sensor. A red, green, blue, near-infrared (RGBN) CFA has recently been introduced that replaces a green channel in the Bayer CFA with an NIR channel and IRCF removal. Several new types of RGBN CFAs have also been proposed [1], as shown in Fig. 1.

3RGBN cameras have wider spectral response than ordinary color visible cameras because of IRCF removal. They have a higher signal-to-noise ratio (SNR) but introduce extra color bias [2]. Hence, color restoration methods for RGBN cameras are necessary. Most RGBN camera color restoration methods calibrate a color correction matrix (CCM) through ordinary linear square regression (OLSR) by utilizing the chromatic values of the color checker. CCM methods that achieve satisfactory color correction results are widely used in Bayer CFA cameras, digital single lens reflex (DSLR) cameras, and mobile phone cameras. However, they do not work well on the RGBN camera color restoration task because of the more complicated color bias model and the arbitrary function form of reflection in scenes [2].The color bias is more severe for outdoor scenes with plants, as shown in Fig. 2.

4RGBN camera color restoration methods can be divided into CCM-based methods, spectral decomposition-based methods, sensor spectral response curve optimization methods, and learning-based methods.

5Park et al. [3] improved the traditional 3 × 4 CCM by introducing three cross-channel nonlinear constrains, specifically, RN, GN, and BN. Chen et al. [4] introduced cubic polynomial constraints whose higher-order coefficients of the NIR channel are zero. After quasi-linearization, a 3 × 19 CCM is calculated through OLSR. Monno et al. [5] applied a quadratic polynomial CCM method proposed by Hong et al. [6] and a root polynomial CCM method proposed by Finlayson et al. [7] to the RGBN camera color restoration task and calibrated CCMs utilizing the chromatic values of color checker patches. Han et al. [2] combined four kinds of regression methods and nine kinds of nonlinear methods and comprehensively studied CCM-based RGBN color restoration methods.

6Park et al. [8]- [10] proposed spectral decomposition-based methods that decompose the NIR channel into a color-relevant band and a color-irrelevant band and optimized CCM with statistical properties of different channels. Hertel et al. [11] optimized a CCM by calculating the transfer matrix of the sensor response curve and target response curve. The method is limited by the measurement accuracy of the sensor response. Yamashita [12]- [14] measured the response curve of each channel and calculated the ratio of the integral of the NIR channel curve to the integrals of each of the color channel curves, then directly subtracted the NIR channel from the color channels with fixed ratios that assumed these ratios would not change as the scene changed.

7Aguilera et al. [15] proposed a learning-based RGBN camera color restoration method with a simple network structure composed of two fully connected layers. Soria et al. [16] proposed the single sensor multispectral images dataset SSMID, which contains three kinds of scenes: scenes with vegetation, scenes without vegetation, and multi-period scenes. They also proposed an RGBN camera color restoration method using the same simple network structure with a different optimizer and activation function. Soria et al. [17] proposed ENDENet and CDNet for the color restoration task. Gharbi et al. [18] proposed HDR-Net, which combines a bilateral grid and local affine color transforms. It can fit arbitrary image augmentation strategy and color transform of training pairs and dozen times improved the calculation efficiency. Brooks et al. [19] proposed an "unprocessing" method generating noisy and noise-free training pairs by using open access datasets for the image denoising task. Jaroensri et al. [20] proposed a noisy and noise-free training pairs generation method utilizing a proposed image signal processing simulation pipeline and trained a denoising neural network using the generated training pairs.

8The core of the RGBN camera color restoration problem is to find an appropriate mapping function between the color bias image and the ground truth image. Deep learning methods have shown great ability for finding such complicated mapping functions of training data. However, a large number of color bias image and ground truth image training pairs are needed in order to train a deep neural network model. Setting up a training dataset containing different scenes is time-consuming. For the RGBN color restoration task, images captured with an IRCF are regarded as ground truth images. If only one RGBN camera is available, the ground truth images and color bias images are not captured simultaneously. Hence, elaborate image registration post-processing is needed to match moving objects in the scene. If two RGBN cameras are used for capturing the training pairs, carefully designed post-processing is still needed, such as eliminating camera shake, dealing with shifting illumination across the cameras, etc. Moreover, when the sensor parameters change significantly, one should setup a new dataset in order to get the best color restoration results.

9Hence, a method for generating training pairs for RGBN camera color restoration learning in a CNN is proposed. It aims at utilizing an RGB-NIR open access dataset to generate color bias image and ground truth image training pairs based on the target RGBN camera's parameters. A CNN is trained with the generated data to accomplish the RGBN camera color restoration task. The color restoration network can be rapidly retrained for new sensors or sensor parameters by modifying the data generation parameters.

10The remainder of this article is arranged as follows: In Section 2 we detail each step of the data generation method and training of the network using the generated data. In Section 3 we set up the experimental environment and describe the evaluation metrics used. In Section 4 we present, validate, and assess the results of the proposed color restoration method. In Section 5 we conclude this article and discuss future work.

Data Generation Method

11The open access RGB-NIR dataset used for data generation and training in this article was proposed by Brown and Susstrunk [21]. The dataset contains 477 RGB-NIR image pairs and 9 kinds of scenes. The standard RGB (sRGB) and NIR image pairs in the dataset have been processed by elaborate image registration and post-processing, such as gain control, white balance, NIR channel balance, gamma correction, etc. The proposed data generation method for RGBN camera color bias image and ground truth image pairs processes the RGB-NIR dataset images with inverse gamma correction, inverse white balance, inverse NIR channel balance, and inverse global gain based on the target RGBN camera parameters to transfer the RGB-NIR dataset images to target RGBN camera ground truth images. Then color bias is added to the ground truth images based on the color bias model, which results in color bias images. Then the generated color bias images and ground truth images are made training pairs and fed to the CNN. Finally, the output predicted images are processed by white balance and gamma correction as the final result. The pipeline of the proposed method is shown in Fig. 3.

Inverse Gamma Correction:

12To make images captured from different devices have the similar color appearance, gamma correction is applied to the image and the image in transferred to sRGB color space. We adopt the same gamma correction curve as reference [21] when we apply inverse gamma correction. Also, a numerical truncation process is adopted with threshold ε = 10 −8 in order to prevent numerical instability while training.

13The proposed inverse gamma correction is

14The histograms of sRGB images before and after applying inverse gamma correction are shown in Fig. 4.

Inverse Global Gain:

15The built-in auto gain control (AGC) algorithm of a camera calculates a global gain to amplify the original signal based on specific rules. Different imaging devices may adopt different AGC strategies, and the device manufacturer would not detail their AGC algorithm. Hence it is difficult to inverse global gain from the AGC algorithm point of view. However, for data generation, the question is simply to find a reasonable constant number to calculate inverse global gain.

16Assume the intensities of the target RGBN camera image X1 and the sRGB image X2 in the open access dataset are sampled from different exponential distributions, i.e., X1∼E(λ1), X2∼E(λ2). The probability density function of exponential distribution is For x ≥ 0, the maximum likelihood estimation of λ is the inverse of the sample mean. Let f 1 (x )and f 2 (x ) be the probability density function of X1 and X2. We could transfer X2's distribution to X1's distribution through equation (4).

17⎧

18For our test set images, the coefficient λ 1 /λ 2 = 0.74. The global gain is sampled from a normal distribution with μ = 0.74 and σ = 0.1., i.e., N(0.74, 0.1). The sampling procedure would generate images with different intensity distribution for data augmentation. The bias term 1 λ 2 ln λ 2 λ 1 would reversely compensate the generated intensity so the generated data would lack of very bright data and very dark data and reduce robustness. Hence, the bias term is abandoned during training.

Inverse White Balance and Inverse NIR Channel Balance:

19To make images have similar color appearance under different illumination, the output images are processed by white balance. A typical white balance algorithm calculates a 3 × 3 diagonal matrix whose diagonal elements are gains of the R, G, and B channels. The channel balance algorithm of an RGBN camera calculates a 4 × 4 diagonal matrix, including the NIR channel, denoted WBMatrix. The diagonal elements are gains of R, G, B, and NIR noted as Rgain, Ggain, Bgain, and Ngain. Then inverse white balance and inverse NIR channel balance are to multiply the inverse of WBMatrix for each channel, i.e.,

20Hence, the key is to find reasonable Rgain, Ggain, Bgain, and Ngain. The gray world assumption [22] is adopted in this article, which assumes that each channel has equal mean after white balance and NIR channel balance. For the target RGBN camera images in the test set, let mR, mG, mB, and mN be the means of the R, G, B, and NIR channel of the whole dataset, respectively. Let Ggain = 1; then Rgain = mG/mR, Bgain = mG/mB, and Ngain = mG/mN. We adopt Rgain = 0.8, Ggain = 1.0, Bgain = 2.0, and Ngain = 0.95 for our target RGBN camera. Actually, we sample Rgain, Bgain, and Ngain from different uniform distributions centered at 0.8, 2.0, and 0.95 for data augmentation, i.e., Rgain∼U(0.7,0.9), Bgain∼U(1.9,2.1), and Ngain∼U(0.85,1.05).

Color Bias Model:

21For commercial digital visible cameras, an IRCF is usually placed in front of the sensor to limit the response in the visible band. For RGBN cameras, because the R, G, and B channels transmit NIR light, there would be additional color bias. Take the R channel as an example. Let R b be all pixels of the R channel of the RGBN image. Let N b be all pixels of the NIR channel. Let R g be all pixels of the R channel of an image captured with IRCF. The color bias R is the residual of R b and R g . Then,

22where I (λ) is the spectral power distribution function of illumination; R(λ) is the scene spectral reflectance function relative to pixel position; S(λ) is the sensor's spectral response function; F R (λ) and F N (λ) are the spectral transmittance functions of the R channel filter and the NIR channel filter, respectively; and α is a constant. We do not overfit F R (λ) and F N (λ) during data generation and training. We assume F R (λ) and F N (λ) have constant transmittance C R and C N in the NIR band (700 nm-1100 nm). Then,

23Let ratioR be C R /C N and similarly calculate color bias coefficients ratioG and ratioB of the G channel and B channel. In this article, ratioR = 0.380, ratioG = 0.357, and ratioB = 0.489. The coefficients are calculated with OLSR using all test set images.

24Equation (6) and (7) assume that the N channel is not affected by the crosstalk of visible light. However, the manufactured NIR filter cannot block all visible light which would cause bias of color bias coefficients. Then,

25In order to take this bias into consideration, ratioR, ratioG, and ratioB are sampled from different uniform distributions centered at 0.380, 0.357, and 0.489 during training, i.e., ratioR∼U(0.33, 0.43), ratioG∼U(0.307, 0.407), and ratioB∼U(0.439, 0.539).

Training

26Here, we describe the RGBN camera color restoration CNN model built for this study. The training image pairs were generated by the generation method defined in Section 2.1. The output estimate images of the network were processed by white balance and gamma correction before calculation of loss, so that the color bias introduced by the white balance and gamma correction procedure was eliminated.

Data Generation:

27For NIR images in the RGB-NIR open access dataset, inverse global gain and inverse NIR channel balance were applied. For sRGB images, inverse gamma correction, inverse global gain, and inverse white balance were applied. Then color bias was added to the inversed sRGB images combined with inversed NIR images. The inversed sRGB images and RGBN images after adding color bias were fed into the CNN for training. The network output estimate color restoration images.

Network Structure:

28We adopted the U-Net [23] network structure, which has skip connection in the same scale layers in the encoder part and decoder part of the network. We used max-pooling for down sampling in the encoder part and bilinear interpolation for up sampling in the decoder part. We used Leaky-ReLU [24] as the activation function. Residual estimation strategy [25] was used. The detailed structure parameters are shown in Fig. 5.

Training:

29We used 10% of the data as a validation set. The test set was composed of images captured with the target RGBN camera experimental system. We randomly cropped the images into 128 × 128 patches for use as the training input of the network. Each image patch was randomly processed by data augmentation strategy including direct output, horizontal flip, vertical flip, rotate 90°clockwise, and rotate 90°counterclockwise. We used Adam [26] as the optimizer and the learning rate was set to 10 −4 . Other parameters of the Adam optimizer used the default settings. We used a batch size of 32 and L1 loss as the loss function. The network was trained with an NVIDIA GTX 1080.

Experimental Setup

30The framework of the RGBN experimental system is shown in Fig. 6. We used a Photonis NOCTURN XL camera with high sensitivity as the core imaging device. An Edmund TECHSPEC Vis-NIR 50 mm fixed-focus lens with high transmittance in both the visible band and NIR band was used as objective lens. A filter wheel was set between the sensor and the objective lens, driven by a FAULHABER 2250S024 BX4 CSD miniature brushless DC motor that can control the rotation angle precisely. The initial position of the filter wheel is controlled by a photoelectric switch as shown in Fig. 7(b). There are four holes on the filter wheel in which a THORLABS FD1D R,G,B,NIR filter designed for capturing high-contrast color images was placed. The R,G,B filters also have high transmittance in the NIR band. The NIR filter is a 700nm high-pass filter. The relative response curve of the sensor and filters is shown in Fig. 7(a). We used an FPGA and ARM based circuit to control and communicate all devices. A lithium battery module with a capacity of 6Ah is built into the system and powers all devices. The system could work 5 h continuously. The final system setup is shown in Fig. 8.

Evaluation Metrics

31We adopted angular error (AE), CIE 1976 L * a * b * color space color error ( E ab ), peak SNR (PSNR), and the structural similarity index measure (SSIM) to evaluate the color restoration results. The metrics are described in detail below.

321) AE AE is used to assess angular bias between two vectors. Smaller AE means more similar color vectors. Its equation is

33where X is the reference color vector and Y is the evaluated color vector.

342) E ab CIE1976 L * a * b * color space is a uniform color space that is usually used to assess color changes perceived by human vision. Small values are better. Its equation is [27]

35where f is the reference image, g is the test image, and "bit" is the image's bit depth.

4) SSIM

36The range of SSIM is (0, 1) and a bigger SSIM value is better. Its equation is [29]

37where μ f and μ g are the means of image f and g, respectively; σ f and σ g are standard deviations of image f and g;σ fg is the covariance of images f and g, and C 1 , C 2 , and C 3 are constants.

RGBN Camera Color Restoration Results

38The color restoration results are shown in Figs. 9-14. The proposed method is compared with the Chen et al. [4] method and the Han et al. [2] nonlinear regression method on test set. The evaluation metrics are shown in Table 1. The proposed method obtains better results on AE, E ab , and PSNR, but slightly worse results on SSIM compared with the Han method. Generally speaking, CCM-based color restoration methods potentially enhance image contrast and amplify image noise at the same time. Hence, additional image denoise post-processing is needed, which limits the efficiency of the algorithm. For specific scenes, the color restored images look reddish and over-enhanced after processing by CCM-based methods compared with the proposed method, as shown in Fig. 12(e) and Fig. 12(f). The leaves look reddish and the light spot on the trunk is over-enhanced. The proposed method outputs more stable and reliable restored color.

SSMID Dataset Color Restoration Results

39The proposed method was compared with ENDENet and CDNet [17] on the SSMID dataset. The color restoration results of the subset of SSMID called OMSIV are shown in Fig. 15. The evaluation metrics are shown in Table 2, in which 'x' means the metric is not adopted in the compared method. The mean PSNR increased 0.76 dB and mean SSIM increased 26.4% on the test set when training end-to-end with the proposed network structure. The mean PSNR slightly decreased while the mean SSIM was still better than ENDENet and CDNet from training with generated data. The ENDENet and CDNet provide better results on AE. Actually, PSNR and AE react to similar image properties, so it is confusing that ENDENet and CDNet perform better by the AE measure while having worse PSNR.

40It is worth noting that end-to-end training always produces the best results, but an end-to-end trained network cannot be generalized to different sensors. Thus, comparing the proposed method trained with generated data with ENDENet and CDNet, which are trained end-to-end, is unfair. The decrease of each metric is as expected but the proposed method still has better SSIM. The comparison here is provided as proof that the proposed method could get satisfactory color restoration results without a setup dataset containing a large number of images.

Conclusion

41RGBN cameras capture visible light and NIR light simultaneously, but introduce extra color bias with a more complicated function. The traditional CCM model does not provide satisfactory RGBN camera color restoration results. A CNN can fit the mapping function when a large set of training data is provided. However, setting up a dataset with large amount of data is time-consuming. Also, the trained CNN model cannot be generalized to other sensors. We have proposed here a training pipeline to generate training pairs utilizing an open access RGB-NIR dataset based on target RGBN camera parameters. We trained a CNN model with generated data to validate the results. The results show that the proposed method produces more reliable and more stable color restoration results than CCM-based methods. The proposed method could achieve similar color restoration results compared with end-to-end training networks and can be applied to different sensors. The proposed method can rapidly train a new CNN model with generated data when the sensor parameters are changed, without setting up a new dataset. However, the proposed method is limited by the open access dataset's image quality and scene richness. In future work, better color bias models could be further studied to generalize more accurate color bias images.

참고문헌 29건

  1. Adam: A Method for Stochastic Optimization 2014
  2. Enhancing Color Images of Extremely Low Light Scenes Based on RGB/NIR Images Acquisition With Different Exposure Times IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2448356
  3. Multiscale structural similarity for image quality assessment 2004 10.1109/acssc.2003.1292216
  4. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification 2015 10.1109/iccv.2015.123
  5. U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
  6. Multi-spectral SIFT for scene category recognition 2011 10.1109/cvpr.2011.5995637
  7. 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
  8. A spatial processor model for object colour perception Journal of the Franklin Institute · Elsevier BV · 1980 10.1016/0016-0032(80)90058-7
  9. RGB-NIR multispectral camera Optics Express · Optica Publishing Group · 2014 10.1364/oe.22.004985
  10. Image Quality Metrics: PSNR vs. SSIM 2010 10.1109/icpr.2010.579
  11. Color Correction Using Root-Polynomial Regression IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2405336
  12. A low-cost VIS-NIR true color night vision video system based on a wide dynamic range CMOS imager IEEE Intelligent Vehicles Symposium · 2009 10.1109/ivs.2009.5164290
  13. Color correction with edge preserving and minimal SNR decrease using multi-layer decomposition Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2012 10.1117/12.907987
  14. N-to-SRGB Mapping for Single-Sensor Multispectral Imaging 2015 10.1109/iccvw.2015.18
  15. Enhancing low-light color images using an RGB-NIR single sensor 2015 10.1109/vcip.2015.7457844
  16. Least Square based Multi-spectral Color Interpolation Algorithm for RGB-NIR Image Sensors 2015 10.5220/0005265000380045
  17. Color Restoration for Infrared Cutoff Filter Removed RGBN Multispectral Filter Array Image Sensor 2015 10.5220/0005263600300037
  18. Color Restoration of RGBN Multispectral Filter Array Sensor Images Based on Spectral Decomposition Sensors · Multidisciplinary Digital Publishing Institute · 2016 10.3390/s16050719
  19. Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2662206
  20. RGBN Multispectral Images: A Novel Color Restoration Approach Advances in intelligent systems and computing · Springer Nature · 2017 10.1007/978-3-319-61578-3_15
  21. Deep bilateral learning for real-time image enhancement ACM Transactions on Graphics · Association for Computing Machinery · 2017 10.1145/3072959.3073592
  22. Low-light color image enhancement via iterative noise reduction using RGB/NIR sensor Journal of Electronic Imaging · SPIE · 2017 10.1117/1.jei.26.4.043017
  23. Multispectral single-sensor RGB-NIR imaging: New challenges and opportunities 2017 10.1109/ipta.2017.8310105
  24. Wide-Band Color Imagery Restoration for RGB-NIR Single Sensor Images Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18072059
  25. Single-Sensor RGB-NIR Imaging: High-Quality System Design and Prototype Implementation IEEE Sensors Journal · IEEE Sensors Council · 2018 10.1109/jsen.2018.2876774
  26. Generating Training Data for Denoising Real RGB Images via Camera Pipeline Simulation arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1904.08825
  27. Unprocessing Images for Learned Raw Denoising 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.01129
  28. (제목 없음) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2021 10.4230/lipics.cp.2021.42
  29. Nonlinear Regression Color Correction Method for RGBN Cameras IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2971423