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

Representing Camera Response Function by a Single Latent Variable and Fully Connected Neural Network

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. Yunfeng Zhao — School of Electronics, Electrical Engineering & Computer Science, Queen’s University Belfast, 16A Malone Road, Belfast, BT9 5BN, United Kingdom
  2. Stuart J. Ferguson — School of Electronics, Electrical Engineering & Computer Science, Queen’s University Belfast, 16A Malone Road, Belfast, BT9 5BN, United Kingdom
  3. Huiyu Zhou — School of Computing and Mathematical Sciences, University of Leicester, University Road, Leicester, LE1 7RH, United Kingdom
  4. Karen Rafferty — School of Electronics, Electrical Engineering & Computer Science, Queen’s University Belfast, 16A Malone Road, Belfast, BT9 5BN, United Kingdom
DOI
10.1007/s11760-022-02351-8
저널
Signal Image and Video Processing
발행년도
2022
발행기관
Springer Science+Business Media
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s11760-022-02351-8
토픽
Color Science and Applications
OpenAlex ID
W4296061951

평가 내용

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

초록

Abstract Modelling the mapping from scene irradiance to image intensity is essential for many computer vision tasks. Such mapping is known as the camera response. Most digital cameras use a nonlinear function to map irradiance, as measured by the sensor to an image intensity used to record the photograph. Modelling of the response is necessary for the nonlinear calibration. In this paper, a new high-performance camera response model that uses a single latent variable and fully connected neural network is proposed. The model is produced using unsupervised learning with an autoencoder on real-world (example) camera responses. Neural architecture searching is then used to find the optimal neural network architecture. A latent distribution learning approach was introduced to constrain the latent distribution. The proposed model achieved state-of-the-art CRF representation accuracy in a number of benchmark tests, but is over twice as fast as the best current models when performing the maximum likelihood estimation during camera response calibration due to the simple yet efficient model representation.

본문 25,357자

본문 펼치기
Modelling the mapping from scene irradiance to image intensity is essential for many computer vision tasks. Such mapping is known as the camera response. Most digital cameras use a nonlinear function to map irradiance, as measured by the sensor to an image intensity used to record the photograph. Modelling of the response is necessary for the nonlinear calibration. In this paper, a new high-performance camera response model that uses a single latent variable and fully connected neural network is proposed. The model is produced using unsupervised learning with an autoencoder on real-world (example) camera responses. Neural architecture searching is then used to find the optimal neural network architecture. A latent distribution learning approach was introduced to constrain the latent distribution. The proposed model achieved state-of-the-art CRF representation accuracy in a number of benchmark tests, but is almost twice as fast as the best current models when performing the maximum likelihood estimation during camera response calibration due to the simple yet efficient model representation. Introduction A camera response function (CRF) describes the mapping between the radiant energy received by an image sensor and the intensity output of a camera in the final images [1]. Most cameras are manufactured with nonlinear CRFs [2]. Such nonlinearity is introduced during the stages of image formation in the camera. For instances, analogdigital conversion in the image sensor, white balance adjustment that minimises image colour drift due to differing illumination, gamma correction that expands the luminance range to be interpreted, and tone mapping for optimising the image visual quality [3]. Popular CRF models include Empirical Model of Response (EMoR), generalized gamma curve model (GGCM), polynomial, and gamma [2,4]. Introduction Calibration of a camera response is crucial in many computer vision tasks. Examples of such tasks include image mosaicing where multiple images need to be flawlessly coupled together [5], high dynamic range imaging where images of multiple exposures are used to produce images with greater dynamic ranges [6], and denoising that removes motion blur [7]. CRF calibration also has application in digital forensics [1]. Introduction Elaborate CRF representation modelling is the foundation for accurate and rapid CRF calibration. The calibration can be seen as an optimisation process where often the optimal parameters of a selected CRF representation model are calculated to best describe the camera response. The existing CRF models are mostly parametric with multiple parameters. The solution spaces for optimising these parameters are complex with arbitrary distributions. Thus, it takes a long time to calibrate the optimal parameters using existing models. Introduction In this paper, a novel and high-performance non-deterministic CRF representation model, the Single Latent Representation model (SLR), is proposed based on the autoencoder, neural architecture search (NAS), and latent distribution learning (LDL) techniques. This work presents the following contributions. 1) Pattern of real-world CRFs were extracted by unsupervised learning and represented by a single latent variable using autoencoder. 2) Two approaches (i.e., a LDL and a supervised learning approach using handcrafted feature) are proposed and applied during model representation learning to constrain the latent distribution which further improves the accuracy of camera calibration. 3) A naïve NAS algorithm is used to seek for the optimal autoencoder architecture considering both model accuracy and complexity. 4) The proposed model achieves stateof-the-art performance in terms of accuracy and efficiency of CRF modelling but executes in less than half the time than current best algorithms during CRF calibration. Related work The latest successful CRF representation model is perhaps the EMoR by Grossberg and Nayar proposed in 2004 [2]. The EMoR describes a CRF by linearly composing a collection of principal components or eigenvectors generated by applying Principal Component Analysis (PCA) on 201 realworld CRFs known as the Database of Response Function (DoRF). Each CRF curve is composed by 1024 uniformly sampled irradiance-intensity converting ratios and is normalised between and passes through (0, 0) and (1,1). By EMoR, an approximation f to the CRF f can be constructed from k coefficients and the corresponding eigenvectors: Related work where f 0 is the base function calculated by averaging all the CRFs in DoRF, c k = H T k (f − f 0 ) is the model coefficients, and H k := [h 1 · · · h k ] is the first k eigenvectors with the largest eigenvalues. Related work EMoR is an efficient model to represent CRFs by a very small number of parameters or coefficients. As reported in the paper [2], three eigenvalues encode 99.5 percent of the cumulative energies associated with the eigenvalues in DoRF. So far, it is the most widely adopted model for representing a CRF due to its high representing accuracy and simplicity [3,5,[8][9][10][11][12]. Related work Polynomial and gamma curves are the two other popular models used for CRF representation whose performances are slightly worse than the EMoR according to a benchmark [4]. A high-order polynomial has the general form: Related work where M and ω are the order number and model coefficients, respectively, and they are the parameters to be determined through camera calibration. Related work x ∈ [0, 1] is the model input and represents image pixel intensity. In general, gamma curves follow the basic form: Related work where γ is the gamma value typically determined through calibration. This model has been applied in numeral works [13,14]. Related work An extended version of gamma curve named GGCM has been proposed [4] and applied [15]. It is denoted in (4). Related work (4) where the gamma value in the basic form is replaced by a polynomial term P ω (x) = N i=0 ω i x i . A limitation of the current CRF representation models is certainly the high dimensional and complex solution space for solving the optimal model parameters during calibration. A CRF representation with a minimum number of model parameters, e.g., the single gamma value for gamma curves, is demanded for simplifying the calibration. Autoencoder has the ability of generalising and has been used for representation modelling [16]. It compresses data into a much lower dimensional latent space represented by a few latent variables and provides a potential solution to CRF representation. However, such work has not been reported yet. Related work In general, autoencoder is a neural network that consists of an encoder and a decoder. The encoder maps the input data x to a latent representation z. And the decoder reconstructs z back to the input datax. The latent representation and the model weights are trained by minimising the difference between the input and reconstructed data in an unsupervised process [17]. Related work In the work by Makhzani et al. [18], Adversarial Autoencoder (AAE) has been introduced combining autoencoder with generative adversarial training to deliver unsupervised learning on multiple objectives. It can impose a constraint on the latent distribution by the adversarial training process. The value function of adversarial training can be represented as: Related work (5) where the encoder in the autoencoder also acts as the generator G in adversarial network to produce the latent representations z from the data distribution P d . And at the same time, a discriminator D calculates the probability that a representation is generated from the data or prior distribution. AAE has been successfully applied in applications such as image anomaly detection [19] and classification [18]. Related work A Variational Autoencoder (VAE) [20] is another popular autoencoder model capable of constraining the distribution of latent representation. Such constraint is achieved by a recognition network that predicts the posterior distribution of the latent space. Related work Recent advancement of neural networks for end-to-end feature representation and data processing increases the demand for automating the architecture engineering which is time-consuming and usually done manually. NAS automates the neural network engineering process. It can be summarized as three topics: search space, search strategy, and performance evaluation strategy [21]. Search space defines the architecture searching scope and usually involves human prior knowledge. Search strategy determines how the search space is explored. And performance evaluation strategy quantifies candidate model performance. As shown in Fig. 1, the proposed Single Latent variable camera response Representation (SLR) model inputs a CRF represented by 1,024 uniformly sampled points on the function, reduces the dimensionality to the latent space by the encoder, and outputs the reconstructed CRF by the decoder. As a result, a CRF can be represented by the latent variables in the latent space of the proposed model. A multi-layer fully connected autoencoder with the same number of input and output neurons is selected as the representation model of CRFs. Related work In our model, the number of hidden layers in either the encoder or decoder is denoted by L. Both the encoder and decoder contain either one, two, or three hidden layers, i.e., L ∈ {1, 2, 3}. Each hidden layer contains varied number of neurons, denoted by C l where l ∈ {1, . . . , L} is the layer index. C z is the number of latent variables in the model. Dropout operation is added to prevent the model from overfitting [22]. Nonlinearity is introduced by an activation function on each unit. The feed-forward operation of the proposed model has the form: Related work where r (l) is a vector of independent Bernoulli random variables with each element a probability p of being 1, * denotes an element-wise product, u (l) denotes the output vector calculated from the input vector v (l) into layer l, w (l) and b (l) are the model weights and bias at layer l, g is the activation function. Related work The output vector from layer l is firstly sampled by the dropout operation and then processed by the weights and bias. The processed outputs are nonlinearly activated and used as inputs to the next layer. This process is repeated layer by layer. At test time, the model weights are scaled by p to infer without the effect of the dropout. For CRF construction, the latent variable is used as the input, and the reconstructed CRFx can be obtained at the final output layer. Related work The model weights in the autoencoder are learnt by independently back-propagating the gradients calculated from the derivatives of the losses. The reconstruction loss is the mean-square-error (MSE) between the input x and reconstructed CRFsx: Related work where N is the number of training data. Meanwhile, a smoothness loss is imposed on the reconstructed CRFx as a CRF is usually a smooth and continuous function based on the observation from the CRFs in the DoRF: Related work wherex is the first derivative of the reconstructed CRF, 2 denotes the l2-norm. Related work The optimal number of hidden layers and number of neurons in each hidden layer are determined by NAS. Naïve neural architecture search The optimal architecture of the proposed SLR model in terms of both model accuracy and complexity is determined by NAS. NAS not only helps find the desired model architecture but also brings flexibility to the model design (e.g., when an extension of the number of latent variables is needed). Since devices with relatively limited computing resources such as mobile phones are being considered for running the proposed model, the model performance estimation needs to be taken cognisance of both the model complexity and its accuracy. Naïve neural architecture search The search space defined is three hidden layers with optional neuron numbers h 1 = [10, 20, 50, 100, 200, 500], h 2 = [0, 10, 20, 50, 100, 200], and h 3 = [0, 10, 20, 50, 100] for both encoder and decoder. Note that when hidden layer two has no neuron, hidden layer three must also have no neuron. Naïve neural architecture search We aim to minimise the model complexity while maximising its accuracy. However, balancing the trade-offs between model complexity and accuracy is a persistent challenge in NAS. Naïve neural architecture search In this paper, the optimal model architecture is determined by a newly proposed NAS method named naïve NAS. Initially, the naïve NAS searches for possible neural architecture in the search space. It then selects M candidate architectures with the highest accuracies from the search. Eventually, the optimal architecture is chosen from those M candidates with the lowest model complexity. The naïve NAS is illustrated in Algorithm 1. Naïve neural architecture search Existing variable search strategies can be coupled with the proposed naïve NAS. The Grid Search [23] is the selected strategy since it is thorough and the proposed model is light-weight (i.e., the performance estimation of each candidate architecture can be completed in less than a minute) and the search space is discrete and small (i.e., with only a total of 156 valid candidate architectures in the search space). Naïve neural architecture search The model complexity is calculated by the total number of weights in either the encoder or Algorithm 1 Naïve neural architecture search algorithm Input: A is the architecture search space. M is the number of architectures with the highest accuracies to be selected from A for the complexity estimation. Output: The optimal architecture A ∈ A 1: Construct a Set vector S with length N which equals to the number of elements in A 2: for k ← 1 to N do 3: Naïve neural architecture search Obtain the architecture object from the search space A ← A k 4: Estimate the architecture accuracy a ← Accuracy (A) 5: Estimate the architecture complexity c ← Complexity (A) 6: Construct and store a Set object S k ← {a, c, A} 7: end for 8: Descending order S based on the accuracy metric a 9: Select M candidate architectures with the highest accuracies S ← S [0 : M ] 10: Ascending order S based on the complexity metric c 11: Obtain the architecture object A from the first element of the ordered S 12: return A decoder of the SLR with considering the latent variable: 5: where L is the total number of layers in the encoder or decoder, C is the number of neurons in a specific layer, and C z is the number of latent variables in the model. The model accuracy is measured by a three-fold cross-validation and (7): 5: where x andx are the reconstructed and validated CRF curves. Constraint on the latent distribution The latent variable z in the autoencoder follows an arbitrary distribution by default. Two approaches (i.e., a distribution learning and a supervised learning approach using heuristics) have been proposed to constrain the latent variable to follow a prior distribution to help the optimisation process to more accurately find the best z during calibration. Constraint on the latent distribution In the first approach, the latent distribution is constrained by "learning" from the objective distribution. It is named latent distribution learning (LDL) and achieved by minimising the Kullback-Leibler Divergence (KL-divergence) between the latent and objective distributions. Constraint on the latent distribution The latent distribution is approximated by a normal distribution y ∼ N (µ, σ). The normal distribution maximum likelihood of the latent variable is estimated by: µ =ȳ, Constraint on the latent distribution where y is the samplings on the latent distribution and M is the number of samplings. Constraint on the latent distribution KL-divergence between two normal distributions has the form: Constraint on the latent distribution The KL-divergence between the estimated latent distribution N (µ 1 , σ 1 ) and the objective standard normal distribution N (0, 1) can be simplified to: Constraint on the latent distribution KL (N (µ 1 , σ 1 ) , N (0, 1)) Constraint on the latent distribution This is used as the cost for the latent distribution learning in the proposed SLR model. The second approach, named AUC, generates a label for each CRF as the true latent value for distribution constraining. The label is generated by a so-called "area under curve" approach which calculates the area between the CRF and diagonal curve: Constraint on the latent distribution where N is the number of samplings in each CRF curve, which is 1,024 for those in the DoRF. The latent distribution is trained using supervised learning by minimising the MSE between the latent and true values. Experiments and results This section details the experimental setup used to examine and test the proposed model. All the processing and evaluations were performed on a laptop computer with a 2.6-GHz Intel Core i7 processor and a 16-GB memory. To accelerate the optimisation process, a NVIDIA GeForce RTX 2060 GPU was employed. Datasets Two datasets, i.e., the DoRF and a modified Middlebury [24], were prepared for performing the validations and benchmarks. Data distribution of these two datasets are demonstrated in Fig. 2. The DoRF contains 201 CRFs and is currently the most comprehensive dataset of CRFs produced from real-world camera models. This dataset was used in our experiments without modification. Datasets The modified Middlebury dataset contains a total of 112 images. Images of 14 cameras were selected from the original dataset. These cameras were chosen because of their higher cross-channel response uniformity. Each of these cameras took eight images of a Macbeth colour chart under two uniform illuminations and four fixed exposures. This dataset provides an abundance of variation for evaluating CRF calibration accuracy. Datasets The colour patch (CP) locations in the images in the second dataset (24 CP for each image) were carefully labelled by utilising a customdeveloped Python script so that the CPs can be Evaluation metrics The root-mean-square error (RMSE) [2,8,[25][26][27] has been widely used to quantify colour difference. It measures the Euclidean distance between two compared vectors: Evaluation metrics where u and v are the compared vectors and N is the number of items in each of the vectors. A smaller RMSE indicates a better result. A 0 RMSE illustrates identical results. Evaluation metrics In the experiments, the RMSEs calculated from comparing the reconstructed CRF with CRFs in the DoRF in the first experiment or those from comparing colour values of JPG and corresponding RAW images in the second experiment were collected into a result vector h for statistical analysis: Evaluation metrics where C is the number of camera models to be compared. Evaluation metrics The Mean of the result vector h was used as the overall performance evaluation indicator in the first experiment. In the second experiment, five metrics are used to evaluate the result vector produced by each method. The first four are statistical metrics (i.e., Mean, Standard Derivation, Maximum, and 95 Percentile) that reflect model accuracy. Among these four metrics, the Mean of h can be seen as the overall performance metric for accuracy. The time metric was evaluated as the total time needed in seconds (s) for calibrating all the 14 camera models in the second dataset. We considered ∆RM SE > 0.005 to be the thresholds for significant performance difference in the second experiment. Latent distribution constraint benchmarks Constraining the latent distribution using four different approaches (i.e., the two proposed approaches, AAE and VAE approaches), the baseline (i.e., without imposing any constraint method), and the objective distribution were compared in this benchmark as shown in Fig. 3. Latent distribution constraint benchmarks Other than the two proposed approaches, AAE constrains the latent distribution by utilising an adversarial training network. The network employs the encoder in the SLR model as the generator. The discriminator consists of two hidden layers with 100 neurons for each layer and a single neuron for both the input and output layers. The adversarial training process is represented by (5). Latent distribution constraint benchmarks Instead of imposing additional constraints on the latent distribution as used by the previous three approaches, VAE incorporates the posterior distribution of the latent space into the autoencoder network architecture. Since a normal latent distribution is demanded, the encoder outputs two neurons (i.e., a Mean and a Standard Derivation) representing a normal distribution and then generates the single latent variable by sampling the posterior normal distribution. The last approach imposes no constraint on the latent distribution and is seen as the baseline for the comparisons. Latent distribution constraint benchmarks The objective latent distribution is the standard normal distribution N (0, 1) as visualised in Fig. 3(a), except for the AUC approach. Latent distribution constraint benchmarks The results demonstrated that applying the proposed latent learning approach converged rapidly and led to an accurate latent distribution compared to the objective distribution. The proposed supervised learning approach produced a constrictive yet sharp latent distribution. The latent distribution developed by AAE was unstable compared to the rests. Both the distributions developed by VAE and baseline converged slowly during model training with the baseline distribution also being constrictive. Latent distribution constraint benchmarks Overall, the proposed latent distribution learning (LDL) approach performed the best. Thus, this approach was selected to constrain the latent distribution in the rest experiments. We firstly compared the performance of the proposed SLR with four other popular models, i.e., gamma, polynomial, GGCM, and EMoR in a DoRF curve-fitting benchmark. In this experiment, every CRF curve in the DoRF was represented by each model with a specific number of parameters using the optimal parameters calculated. Four number of parameters (i.e., 1, 2, 3, and 4) were tested for each of the polynomial, GGCM, and EMoR. While gamma and our method were tested with only one parameter since our method works with a single latent variable. The benchmark results are demonstrated in Table 1. Latent distribution constraint benchmarks The results indicate that our model with only a single parameter achieved greater than a tenfolds better performance (Mean RMSE: 5.61E-4) over most of the other tested methods in the DoRF curve-fitting benchmark. This is not surprising as our model learned the nonlinear CRF features from the real-world CRFs. Camera radiometric calibration The performance and applicability of the proposed SLR model is further validated by a camera radiometric calibration application [28]. This computer vision task estimates inverse-CRF from real camera images. Camera radiometric calibration The true irradiance-intensity mapping values of a specific camera model, i.e., Canon PowerShot G9, and inverse-CRFs produced by four different methods with applying 3, 6, 12, and 24 number of corresponding colour patches (NoCCPs) during calibration are visualised in Fig. 4. Our model fitted more accurately to the true values (see Table 2 for detail). Ours also performed more stable when evaluate accuracy of the inverse-CRFs calibrated by each method. Our SLR with a single latent variable and applying the LDL (Mean RMSE 0.062) clearly outperformed the others compared to some of the other methods with using even three parameters. The CRF calibration accuracy improvement contributed by the LDL on our SLR can be quantified by comparing with the baseline. The sixth metric evaluates the total time needed for calibrating all the 14 camera models (i.e., finding the optimal model parameters). It is a metric that reflects model efficiency and is important to be considered for deploying on mobile platforms. Our SLR with LDL (57.4s) completed all the calibrations almost twice faster than the gamma (112.6s) that also works with a single parameter and the others that work with more parameters. This is partially contributed by the simple yet efficient autoencoder architecture found by NAS. Our SLR with AUC (43.1s) achieved faster calibration yet sacrificed the calibration accuracy (Mean RMSE 0.105). Conclusion In this paper, a CRF model that represents camera responses with only a single latent variable has been described. The model used unsupervised learning on real-world CRFs by autoencoder. A simple yet efficient autoencoder architecture was found by applying a naïve NAS algorithm. A latent distribution learning approach was introduced to effectively constrain the latent variable to a normal distribution for improving the accuracy of the CRF calibration process. We demonstrated a superior performance of the proposed model in terms of both the CRF modelling accuracy (i.e., a ten-folds better CRF modelling accuracy in the curve-fitting cross validation benchmark) and calibration efficiency (i.e., around twice as fast as the best current models for CRF calibration in a double-cross validation benchmark). Declarations Funding.

섹션 본문 66문단 · 23,855자

(제목 없음)

1Modelling the mapping from scene irradiance to image intensity is essential for many computer vision tasks. Such mapping is known as the camera response. Most digital cameras use a nonlinear function to map irradiance, as measured by the sensor to an image intensity used to record the photograph. Modelling of the response is necessary for the nonlinear calibration. In this paper, a new high-performance camera response model that uses a single latent variable and fully connected neural network is proposed. The model is produced using unsupervised learning with an autoencoder on real-world (example) camera responses. Neural architecture searching is then used to find the optimal neural network architecture. A latent distribution learning approach was introduced to constrain the latent distribution. The proposed model achieved state-of-the-art CRF representation accuracy in a number of benchmark tests, but is almost twice as fast as the best current models when performing the maximum likelihood estimation during camera response calibration due to the simple yet efficient model representation.

Introduction

2A camera response function (CRF) describes the mapping between the radiant energy received by an image sensor and the intensity output of a camera in the final images [1]. Most cameras are manufactured with nonlinear CRFs [2]. Such nonlinearity is introduced during the stages of image formation in the camera. For instances, analogdigital conversion in the image sensor, white balance adjustment that minimises image colour drift due to differing illumination, gamma correction that expands the luminance range to be interpreted, and tone mapping for optimising the image visual quality [3]. Popular CRF models include Empirical Model of Response (EMoR), generalized gamma curve model (GGCM), polynomial, and gamma [2,4].

3Calibration of a camera response is crucial in many computer vision tasks. Examples of such tasks include image mosaicing where multiple images need to be flawlessly coupled together [5], high dynamic range imaging where images of multiple exposures are used to produce images with greater dynamic ranges [6], and denoising that removes motion blur [7]. CRF calibration also has application in digital forensics [1].

4Elaborate CRF representation modelling is the foundation for accurate and rapid CRF calibration. The calibration can be seen as an optimisation process where often the optimal parameters of a selected CRF representation model are calculated to best describe the camera response. The existing CRF models are mostly parametric with multiple parameters. The solution spaces for optimising these parameters are complex with arbitrary distributions. Thus, it takes a long time to calibrate the optimal parameters using existing models.

5In this paper, a novel and high-performance non-deterministic CRF representation model, the Single Latent Representation model (SLR), is proposed based on the autoencoder, neural architecture search (NAS), and latent distribution learning (LDL) techniques. This work presents the following contributions. 1) Pattern of real-world CRFs were extracted by unsupervised learning and represented by a single latent variable using autoencoder. 2) Two approaches (i.e., a LDL and a supervised learning approach using handcrafted feature) are proposed and applied during model representation learning to constrain the latent distribution which further improves the accuracy of camera calibration. 3) A naïve NAS algorithm is used to seek for the optimal autoencoder architecture considering both model accuracy and complexity. 4) The proposed model achieves stateof-the-art performance in terms of accuracy and efficiency of CRF modelling but executes in less than half the time than current best algorithms during CRF calibration.

Related work

6The latest successful CRF representation model is perhaps the EMoR by Grossberg and Nayar proposed in 2004 [2]. The EMoR describes a CRF by linearly composing a collection of principal components or eigenvectors generated by applying Principal Component Analysis (PCA) on 201 realworld CRFs known as the Database of Response Function (DoRF). Each CRF curve is composed by 1024 uniformly sampled irradiance-intensity converting ratios and is normalised between and passes through (0, 0) and (1,1). By EMoR, an approximation f to the CRF f can be constructed from k coefficients and the corresponding eigenvectors:

7where f 0 is the base function calculated by averaging all the CRFs in DoRF, c k = H T k (f − f 0 ) is the model coefficients, and H k := [h 1 · · · h k ] is the first k eigenvectors with the largest eigenvalues.

8EMoR is an efficient model to represent CRFs by a very small number of parameters or coefficients. As reported in the paper [2], three eigenvalues encode 99.5 percent of the cumulative energies associated with the eigenvalues in DoRF. So far, it is the most widely adopted model for representing a CRF due to its high representing accuracy and simplicity [3,5,[8][9][10][11][12].

9Polynomial and gamma curves are the two other popular models used for CRF representation whose performances are slightly worse than the EMoR according to a benchmark [4]. A high-order polynomial has the general form:

10where M and ω are the order number and model coefficients, respectively, and they are the parameters to be determined through camera calibration.

11x ∈ [0, 1] is the model input and represents image pixel intensity. In general, gamma curves follow the basic form:

12where γ is the gamma value typically determined through calibration. This model has been applied in numeral works [13,14].

13An extended version of gamma curve named GGCM has been proposed [4] and applied [15]. It is denoted in (4).

14(4) where the gamma value in the basic form is replaced by a polynomial term P ω (x) = N i=0 ω i x i . A limitation of the current CRF representation models is certainly the high dimensional and complex solution space for solving the optimal model parameters during calibration. A CRF representation with a minimum number of model parameters, e.g., the single gamma value for gamma curves, is demanded for simplifying the calibration. Autoencoder has the ability of generalising and has been used for representation modelling [16]. It compresses data into a much lower dimensional latent space represented by a few latent variables and provides a potential solution to CRF representation. However, such work has not been reported yet.

15In general, autoencoder is a neural network that consists of an encoder and a decoder. The encoder maps the input data x to a latent representation z. And the decoder reconstructs z back to the input datax. The latent representation and the model weights are trained by minimising the difference between the input and reconstructed data in an unsupervised process [17].

16In the work by Makhzani et al. [18], Adversarial Autoencoder (AAE) has been introduced combining autoencoder with generative adversarial training to deliver unsupervised learning on multiple objectives. It can impose a constraint on the latent distribution by the adversarial training process. The value function of adversarial training can be represented as:

17(5) where the encoder in the autoencoder also acts as the generator G in adversarial network to produce the latent representations z from the data distribution P d . And at the same time, a discriminator D calculates the probability that a representation is generated from the data or prior distribution. AAE has been successfully applied in applications such as image anomaly detection [19] and classification [18].

18A Variational Autoencoder (VAE) [20] is another popular autoencoder model capable of constraining the distribution of latent representation. Such constraint is achieved by a recognition network that predicts the posterior distribution of the latent space.

19Recent advancement of neural networks for end-to-end feature representation and data processing increases the demand for automating the architecture engineering which is time-consuming and usually done manually. NAS automates the neural network engineering process. It can be summarized as three topics: search space, search strategy, and performance evaluation strategy [21]. Search space defines the architecture searching scope and usually involves human prior knowledge. Search strategy determines how the search space is explored. And performance evaluation strategy quantifies candidate model performance. As shown in Fig. 1, the proposed Single Latent variable camera response Representation (SLR) model inputs a CRF represented by 1,024 uniformly sampled points on the function, reduces the dimensionality to the latent space by the encoder, and outputs the reconstructed CRF by the decoder. As a result, a CRF can be represented by the latent variables in the latent space of the proposed model. A multi-layer fully connected autoencoder with the same number of input and output neurons is selected as the representation model of CRFs.

20In our model, the number of hidden layers in either the encoder or decoder is denoted by L. Both the encoder and decoder contain either one, two, or three hidden layers, i.e., L ∈ {1, 2, 3}. Each hidden layer contains varied number of neurons, denoted by C l where l ∈ {1, . . . , L} is the layer index. C z is the number of latent variables in the model. Dropout operation is added to prevent the model from overfitting [22]. Nonlinearity is introduced by an activation function on each unit. The feed-forward operation of the proposed model has the form:

21where r (l) is a vector of independent Bernoulli random variables with each element a probability p of being 1, * denotes an element-wise product, u (l) denotes the output vector calculated from the input vector v (l) into layer l, w (l) and b (l) are the model weights and bias at layer l, g is the activation function.

22The output vector from layer l is firstly sampled by the dropout operation and then processed by the weights and bias. The processed outputs are nonlinearly activated and used as inputs to the next layer. This process is repeated layer by layer. At test time, the model weights are scaled by p to infer without the effect of the dropout. For CRF construction, the latent variable is used as the input, and the reconstructed CRFx can be obtained at the final output layer.

23The model weights in the autoencoder are learnt by independently back-propagating the gradients calculated from the derivatives of the losses. The reconstruction loss is the mean-square-error (MSE) between the input x and reconstructed CRFsx:

24where N is the number of training data. Meanwhile, a smoothness loss is imposed on the reconstructed CRFx as a CRF is usually a smooth and continuous function based on the observation from the CRFs in the DoRF:

25wherex is the first derivative of the reconstructed CRF, 2 denotes the l2-norm.

26The optimal number of hidden layers and number of neurons in each hidden layer are determined by NAS.

Naïve neural architecture search

27The optimal architecture of the proposed SLR model in terms of both model accuracy and complexity is determined by NAS. NAS not only helps find the desired model architecture but also brings flexibility to the model design (e.g., when an extension of the number of latent variables is needed). Since devices with relatively limited computing resources such as mobile phones are being considered for running the proposed model, the model performance estimation needs to be taken cognisance of both the model complexity and its accuracy.

28The search space defined is three hidden layers with optional neuron numbers h 1 = [10, 20, 50, 100, 200, 500], h 2 = [0, 10, 20, 50, 100, 200], and h 3 = [0, 10, 20, 50, 100] for both encoder and decoder. Note that when hidden layer two has no neuron, hidden layer three must also have no neuron.

29We aim to minimise the model complexity while maximising its accuracy. However, balancing the trade-offs between model complexity and accuracy is a persistent challenge in NAS.

30In this paper, the optimal model architecture is determined by a newly proposed NAS method named naïve NAS. Initially, the naïve NAS searches for possible neural architecture in the search space. It then selects M candidate architectures with the highest accuracies from the search. Eventually, the optimal architecture is chosen from those M candidates with the lowest model complexity. The naïve NAS is illustrated in Algorithm 1.

31Existing variable search strategies can be coupled with the proposed naïve NAS. The Grid Search [23] is the selected strategy since it is thorough and the proposed model is light-weight (i.e., the performance estimation of each candidate architecture can be completed in less than a minute) and the search space is discrete and small (i.e., with only a total of 156 valid candidate architectures in the search space).

32The model complexity is calculated by the total number of weights in either the encoder or Algorithm 1 Naïve neural architecture search algorithm Input: A is the architecture search space. M is the number of architectures with the highest accuracies to be selected from A for the complexity estimation. Output: The optimal architecture A ∈ A 1: Construct a Set vector S with length N which equals to the number of elements in A 2: for k ← 1 to N do 3:

33Obtain the architecture object from the search space A ← A k

4:

34Estimate the architecture accuracy a ← Accuracy (A)

5:

35Estimate the architecture complexity c ← Complexity (A) 6: Construct and store a Set object S k ← {a, c, A} 7: end for 8: Descending order S based on the accuracy metric a 9: Select M candidate architectures with the highest accuracies S ← S [0 : M ] 10: Ascending order S based on the complexity metric c 11: Obtain the architecture object A from the first element of the ordered S 12: return A decoder of the SLR with considering the latent variable:

36where L is the total number of layers in the encoder or decoder, C is the number of neurons in a specific layer, and C z is the number of latent variables in the model. The model accuracy is measured by a three-fold cross-validation and (7):

37where x andx are the reconstructed and validated CRF curves.

Constraint on the latent distribution

38The latent variable z in the autoencoder follows an arbitrary distribution by default. Two approaches (i.e., a distribution learning and a supervised learning approach using heuristics) have been proposed to constrain the latent variable to follow a prior distribution to help the optimisation process to more accurately find the best z during calibration.

39In the first approach, the latent distribution is constrained by "learning" from the objective distribution. It is named latent distribution learning (LDL) and achieved by minimising the Kullback-Leibler Divergence (KL-divergence) between the latent and objective distributions.

40The latent distribution is approximated by a normal distribution y ∼ N (µ, σ). The normal distribution maximum likelihood of the latent variable is estimated by: µ =ȳ,

41where y is the samplings on the latent distribution and M is the number of samplings.

42KL-divergence between two normal distributions has the form:

43The KL-divergence between the estimated latent distribution N (µ 1 , σ 1 ) and the objective standard normal distribution N (0, 1) can be simplified to:

44KL (N (µ 1 , σ 1 ) , N (0, 1))

45This is used as the cost for the latent distribution learning in the proposed SLR model. The second approach, named AUC, generates a label for each CRF as the true latent value for distribution constraining. The label is generated by a so-called "area under curve" approach which calculates the area between the CRF and diagonal curve:

46where N is the number of samplings in each CRF curve, which is 1,024 for those in the DoRF. The latent distribution is trained using supervised learning by minimising the MSE between the latent and true values.

Experiments and results

47This section details the experimental setup used to examine and test the proposed model. All the processing and evaluations were performed on a laptop computer with a 2.6-GHz Intel Core i7 processor and a 16-GB memory. To accelerate the optimisation process, a NVIDIA GeForce RTX 2060 GPU was employed.

Datasets

48Two datasets, i.e., the DoRF and a modified Middlebury [24], were prepared for performing the validations and benchmarks. Data distribution of these two datasets are demonstrated in Fig. 2. The DoRF contains 201 CRFs and is currently the most comprehensive dataset of CRFs produced from real-world camera models. This dataset was used in our experiments without modification.

49The modified Middlebury dataset contains a total of 112 images. Images of 14 cameras were selected from the original dataset. These cameras were chosen because of their higher cross-channel response uniformity. Each of these cameras took eight images of a Macbeth colour chart under two uniform illuminations and four fixed exposures. This dataset provides an abundance of variation for evaluating CRF calibration accuracy.

50The colour patch (CP) locations in the images in the second dataset (24 CP for each image) were carefully labelled by utilising a customdeveloped Python script so that the CPs can be

Evaluation metrics

51The root-mean-square error (RMSE) [2,8,[25][26][27] has been widely used to quantify colour difference. It measures the Euclidean distance between two compared vectors:

52where u and v are the compared vectors and N is the number of items in each of the vectors. A smaller RMSE indicates a better result. A 0 RMSE illustrates identical results.

53In the experiments, the RMSEs calculated from comparing the reconstructed CRF with CRFs in the DoRF in the first experiment or those from comparing colour values of JPG and corresponding RAW images in the second experiment were collected into a result vector h for statistical analysis:

54where C is the number of camera models to be compared.

55The Mean of the result vector h was used as the overall performance evaluation indicator in the first experiment. In the second experiment, five metrics are used to evaluate the result vector produced by each method. The first four are statistical metrics (i.e., Mean, Standard Derivation, Maximum, and 95 Percentile) that reflect model accuracy. Among these four metrics, the Mean of h can be seen as the overall performance metric for accuracy. The time metric was evaluated as the total time needed in seconds (s) for calibrating all the 14 camera models in the second dataset. We considered ∆RM SE > 0.005 to be the thresholds for significant performance difference in the second experiment.

Latent distribution constraint benchmarks

56Constraining the latent distribution using four different approaches (i.e., the two proposed approaches, AAE and VAE approaches), the baseline (i.e., without imposing any constraint method), and the objective distribution were compared in this benchmark as shown in Fig. 3.

57Other than the two proposed approaches, AAE constrains the latent distribution by utilising an adversarial training network. The network employs the encoder in the SLR model as the generator. The discriminator consists of two hidden layers with 100 neurons for each layer and a single neuron for both the input and output layers. The adversarial training process is represented by (5).

58Instead of imposing additional constraints on the latent distribution as used by the previous three approaches, VAE incorporates the posterior distribution of the latent space into the autoencoder network architecture. Since a normal latent distribution is demanded, the encoder outputs two neurons (i.e., a Mean and a Standard Derivation) representing a normal distribution and then generates the single latent variable by sampling the posterior normal distribution. The last approach imposes no constraint on the latent distribution and is seen as the baseline for the comparisons.

59The objective latent distribution is the standard normal distribution N (0, 1) as visualised in Fig. 3(a), except for the AUC approach.

60The results demonstrated that applying the proposed latent learning approach converged rapidly and led to an accurate latent distribution compared to the objective distribution. The proposed supervised learning approach produced a constrictive yet sharp latent distribution. The latent distribution developed by AAE was unstable compared to the rests. Both the distributions developed by VAE and baseline converged slowly during model training with the baseline distribution also being constrictive.

61Overall, the proposed latent distribution learning (LDL) approach performed the best. Thus, this approach was selected to constrain the latent distribution in the rest experiments. We firstly compared the performance of the proposed SLR with four other popular models, i.e., gamma, polynomial, GGCM, and EMoR in a DoRF curve-fitting benchmark. In this experiment, every CRF curve in the DoRF was represented by each model with a specific number of parameters using the optimal parameters calculated. Four number of parameters (i.e., 1, 2, 3, and 4) were tested for each of the polynomial, GGCM, and EMoR. While gamma and our method were tested with only one parameter since our method works with a single latent variable. The benchmark results are demonstrated in Table 1.

62The results indicate that our model with only a single parameter achieved greater than a tenfolds better performance (Mean RMSE: 5.61E-4) over most of the other tested methods in the DoRF curve-fitting benchmark. This is not surprising as our model learned the nonlinear CRF features from the real-world CRFs.

Camera radiometric calibration

63The performance and applicability of the proposed SLR model is further validated by a camera radiometric calibration application [28]. This computer vision task estimates inverse-CRF from real camera images.

64The true irradiance-intensity mapping values of a specific camera model, i.e., Canon PowerShot G9, and inverse-CRFs produced by four different methods with applying 3, 6, 12, and 24 number of corresponding colour patches (NoCCPs) during calibration are visualised in Fig. 4. Our model fitted more accurately to the true values (see Table 2 for detail). Ours also performed more stable when evaluate accuracy of the inverse-CRFs calibrated by each method. Our SLR with a single latent variable and applying the LDL (Mean RMSE 0.062) clearly outperformed the others compared to some of the other methods with using even three parameters. The CRF calibration accuracy improvement contributed by the LDL on our SLR can be quantified by comparing with the baseline. The sixth metric evaluates the total time needed for calibrating all the 14 camera models (i.e., finding the optimal model parameters). It is a metric that reflects model efficiency and is important to be considered for deploying on mobile platforms. Our SLR with LDL (57.4s) completed all the calibrations almost twice faster than the gamma (112.6s) that also works with a single parameter and the others that work with more parameters. This is partially contributed by the simple yet efficient autoencoder architecture found by NAS. Our SLR with AUC (43.1s) achieved faster calibration yet sacrificed the calibration accuracy (Mean RMSE 0.105).

Conclusion

65In this paper, a CRF model that represents camera responses with only a single latent variable has been described. The model used unsupervised learning on real-world CRFs by autoencoder. A simple yet efficient autoencoder architecture was found by applying a naïve NAS algorithm. A latent distribution learning approach was introduced to effectively constrain the latent variable to a normal distribution for improving the accuracy of the CRF calibration process. We demonstrated a superior performance of the proposed model in terms of both the CRF modelling accuracy (i.e., a ten-folds better CRF modelling accuracy in the curve-fitting cross validation benchmark) and calibration efficiency (i.e., around twice as fast as the best current models for CRF calibration in a double-cross validation benchmark).

Declarations

66Funding.

참고문헌 23건

  1. Single-image estimation of the camera response function in near-lighting 2015 10.1109/cvpr.2015.7298705
  2. Nonlinear Camera Response Functions and Image Deblurring: Theoretical Analysis and Practice IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2013 10.1109/tpami.2013.40
  3. Camera Response Function Estimation and Application with a Single Image Lecture notes in electrical engineering · Springer Science+Business Media · 2011 10.1007/978-3-642-25992-0_21
  4. Modeling the space of camera response functions IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2004 10.1109/tpami.2004.88
  5. Bayesian color constancy revisited 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2008 10.1109/cvpr.2008.4587765
  6. An Empirical Camera Model for Internet Color Vision 2009 10.5244/c.23.51
  7. Radiometric Calibration from Noise Distributions 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2007 10.1109/cvpr.2007.383213
  8. Using Geometry Invariants for Camera Response Function Estimation 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2007 10.1109/cvpr.2007.383000
  9. Robust Radiometric Calibration and Vignetting Correction IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2008 10.1109/tpami.2007.70732
  10. Determining the Radiometric Response Function from a Single Grayscale Image 2005 10.1109/cvpr.2005.128
  11. Comparametric equations with practical applications in quantigraphic image processing IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2000 10.1109/83.855434
  12. Radiometric calibration from a single image 2004 10.1109/cvpr.2004.1315266
  13. Blind inverse gamma correction IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2001 10.1109/83.951529
  14. Radiometric calibration with illumination change for outdoor scene analysis 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2008 10.1109/cvpr.2008.4587648
  15. Camera response function signature for digital forensics - Part I: Theory and data selection 2009 10.1109/wifs.2009.5386464
  16. CRF-net 2017 10.1145/3150165.3150170
  17. Spectral Illumination Correction: Achieving Relative Color Constancy Under the Spectral Domain 2018 10.1109/isspit.2018.8642637
  18. Online Photometric Calibration of Auto Exposure Video for Realtime Visual Odometry and SLAM IEEE Robotics and Automation Letters · Institute of Electrical and Electronics Engineers · 2017 10.1109/lra.2017.2777002
  19. Correction to: Neural Architecture Search ˜The œSpringer series on challenges in machine learning · Springer International Publishing · 2019 10.1007/978-3-030-05318-5_11
  20. An analysis on the use of autoencoders for representation learning: Fundamentals, learning task case studies, explainability and challenges Neurocomputing · Elsevier BV · 2020 10.1016/j.neucom.2020.04.057
  21. Robust Anomaly Detection in Images Using Adversarial Autoencoders Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-46150-8_13
  22. Single-Image Camera Response Function Using Prediction Consistency and Gradual Refinement Lecture notes in computer science · Springer Science+Business Media · 2021 10.1007/978-3-030-69544-6_2
  23. Color calibration for a dermatological video camera system Proceedings of the 17th International Conference on Pattern Recognition, 2004. ICPR 2004. · 2004 10.1109/icpr.2004.1334649