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

A Gaussian Process Model for Color Camera Characterization: Assessment in Outdoor Levantine Rock Art Scenes

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Adolfo Molada‐Tebar — Department of Cartographic Engineering, Geodesy, and Photogrammetry, Universitat Politècnica de València, 46022 València, Spain
  2. Gabriel Riutort‐Mayol — Department of Cartographic Engineering, Geodesy, and Photogrammetry, Universitat Politècnica de València, 46022 València, Spain
  3. Ángel Marqués‐Mateu — Department of Cartographic Engineering, Geodesy, and Photogrammetry, Universitat Politècnica de València, 46022 València, Spain
  4. José Luis Lerma — Department of Cartographic Engineering, Geodesy, and Photogrammetry, Universitat Politècnica de València, 46022 València, Spain
DOI
10.3390/s19214610
저널
Sensors
발행년도
2019
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s19214610
토픽
Color Science and Applications
OpenAlex ID
W2981742521

평가 내용

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

초록

In this paper, we propose a novel approach to undertake the colorimetric camera characterization procedure based on a Gaussian process (GP). GPs are powerful and flexible nonparametric models for multivariate nonlinear functions. To validate the GP model, we compare the results achieved with a second-order polynomial model, which is the most widely used regression model for characterization purposes. We applied the methodology on a set of raw images of rock art scenes collected with two different Single Lens Reflex (SLR) cameras. A leave-one-out cross-validation (LOOCV) procedure was used to assess the predictive performance of the models in terms of CIE XYZ residuals and Δ E a b * color differences. Values of less than 3 CIELAB units were achieved for Δ E a b * . The output sRGB characterized images show that both regression models are suitable for practical applications in cultural heritage documentation. However, the results show that colorimetric characterization based on the Gaussian process provides significantly better results, with lower values for residuals and Δ E a b * . We also analyzed the induced noise into the output image after applying the camera characterization. As the noise depends on the specific camera, proper camera selection is essential for the photogrammetric work.

본문 71,923자

본문 펼치기
# _sensors_ _Article_ ## A Gaussian Process Model for Color Camera Characterization: Assessment in Outdoor Levantine Rock Art Scenes Adolfo Molada-Tebar * <sup>,†,‡</sup> , Gabriel Riutort-Mayol <sup>†,‡</sup> and Ángel Marqués-Mateu <sup>†,‡</sup> and José Luis Lerma <sup>†,‡</sup> Department of Cartographic Engineering, Geodesy, and Photogrammetry, Universitat Politècnica de València, 46022 València, Spain; gabriuma@upv.es (G.R.-M.); amarques@cgf.upv.es (Á.M.-M.); jllerma@cgf.upv.es (J.L.L.) * Correspondence: admote@doctor.upv.es; Tel.: +34-963-875-578 - Current address: Camino de Vera s/n, Edificio 7i, 46022 Valencia, Spain. - These authors contributed equally to this work. Received: 23 September 2019; Accepted: 21 October 2019; Published: 23 October 2019 [���������](https://www.mdpi.com/1424-8220/19/21/4610?type=check_update&version=2) [�������](https://www.mdpi.com/1424-8220/19/21/4610?type=check_update&version=2) Abstract: In this paper, we propose a novel approach to undertake the colorimetric camera characterization procedure based on a Gaussian process (GP). GPs are powerful and flexible nonparametric models for multivariate nonlinear functions. To validate the GP model, we compare the results achieved with a second-order polynomial model, which is the most widely used regression model for characterization purposes. We applied the methodology on a set of raw images of rock art scenes collected with two different Single Lens Reflex (SLR) cameras. A leave-one-out cross-validation (LOOCV) procedure was used to assess the predictive performance of the models in terms of CIE XYZ residuals and ∆ _Eab_ <sup>_∗_</sup> <sup>color</sup> <sup>differences.</sup> <sup>Values</sup> <sup>of</sup> <sup>less</sup> <sup>than</sup> <sup>3</sup> <sup>CIELAB</sup> <sup>units</sup> <sup>were</sup> <sup>achieved</sup> <sup>for</sup> ∆ _Eab_ <sup>_∗_</sup> <sup>.</sup> <sup>The</sup> <sup>output</sup> <sup>sRGB</sup> <sup>characterized</sup> <sup>images</sup> <sup>show</sup> <sup>that</sup> <sup>both</sup> <sup>regression</sup> <sup>models</sup> <sup>are</sup> <sup>suitable</sup> <sup>for</sup> practical applications in cultural heritage documentation. However, the results show that colorimetric characterization based on the Gaussian process provides significantly better results, with lower values for residuals and ∆ _Eab_ <sup>_∗_</sup> <sup>.</sup> <sup>We also analyzed the induced noise into the output image after applying the</sup> camera characterization. As the noise depends on the specific camera, proper camera selection is essential for the photogrammetric work. Keywords: cultural heritage; camera characterization; polynomial regression; Gaussian processes; colorimetry; CIE color spaces; noise analysis 1. Introduction Accurate recording of color is one of the fundamental tasks in many scientific disciplines, such as chemistry, industry, medicine, or geosciences to name just a few. Color measurement is a crucial aspect in archaeology and specifically in rock art documentation [1,2]. The correct measurement of color allows researchers to study, diagnose, and describe rock art specimens and detect chromatic changes or alterations over time. High-precision metric models together with reliable color information data sets provide essential information in modern conservation and preservation works. The appropriate description of color is not a trivial issue in cultural heritage documentation [3,4]. Color is a matter of perception, which largely depends on the subjectivity of the observer. Therefore, correct color registration requires objective colorimetric measurement described in rigorous color spaces. Usually, color spaces defined by the CIE are used as the standard reference framework for colorimetric measurement and management. To avoid damage into the pigment, direct contact measurements with colorimeters or spectrophotometers on painted rock art panels are not allowed. Instead, indirect and noninvasive _Sensors_ 2019, _19_ [, 4610; doi:10.3390/s19214610](http://dx.doi.org/10.3390/s19214610) [www.mdpi.com/journal/sensors](http://www.mdpi.com/journal/sensors) _Sensors_ 2019, _19_, 4610 2 of 22 methods for color determination are required. Thus, the use of digitization techniques with conventional digital cameras to support rock art documentation is becoming more and more frequent [5–8]. The color information obtained from digital images can be easily captured, stored, and processed. The drawback of such color information lays on the response recorded by the sensor, which is not strictly colorimetric. The RGB responses do not satisfy the Luther–Ives condition so that RGB data are not a linear combination of CIE XYZ coordinates [9]. If the values recorded in the RGB channels were proportional to the input energy, a simple linear relationship between the RGB data acquired by the digital camera and the CIE XYZ tristimulus values would exist. However, in general, the spectral sensitivities of the three RGB channels are not linear combinations of the color-matching functions [10]. The signals generated by digital cameras are indeed referred to as “device dependent”. Thus, a transformation to convert the input RGB data into device-independent color spaces is necessary. A widely accepted approach to establish the mathematical relationships between the original RGB data and well-defined independent color spaces is the procedure of digital camera characterization [10]. Different techniques are used for colorimetric camera characterization. Numerous papers have been written regarding common techniques, such as polynomial transformation with least-squares regressions [9,10], interpolation from look-up tables [11], artificial neural networks [12], and principal component analysis [13]. Further studies have focused on optimizing characterization, including the use of pattern search optimization [14], multiple regression [15], root-polynomial regression [16], or spectral reflectance reconstruction [17–19]. The colorimetric characterization of digital cameras based on polynomial models is an appropriate starting point; they are widely accepted, mathematically simpler and require smaller training sets and less computing time [20,21]. Previous experiments using second-order polynomials applied in rock art paintings gave also good results [22]. However, they tend to be rigid models and suffer from overestimation or underestimation when many or few data are provided. Furthermore, it is known the lack of reliable generalization of predictions in polynomial models, especially when extrapolating or in the case of modeling wiggly functions [23]. Therefore, it is desirable to improve the results by means of flexible, robust and more accurate models. In this work, we introduce a novel approach for documenting rock art paintings based on a Gaussian process (GP) model. GPs are natural, flexible nonparametric models for _N_ -dimensional functions, with multivariate predictors (input variables) in each dimension [24,25]. The defining property of a GP model is that any finite set of values is jointly distributed as a multivariate Gaussian function. A GP is completely defined by its mean and covariance function. The covariance function is the crucial ingredient in a Gaussian process as it encodes correlation structure which characterizes the relationships between function values at different inputs. GP allows not only nonlinear effects and handling implicit interactions between covariates, but also improves generalization of function values for both interpolation and extrapolation purposes. Due to their generality and flexibility, GPs are of broad interest across machine learning and statistics [25,26]. GP models are formulated and estimated within a Bayesian framework, and all inference is based on the multivariate posterior distribution. Computing the posterior distribution is often difficult, and for this reason, different computation approaches can be used. The Markov chain Monte Carlo (MCMC) is a sampling method that provides a sample of the joint posterior distribution of the parameters [27,28]. The GP model results were compared to the common approach based on polynomial regression models. The main advantage of nonparametric over parametric models is their flexibility [29,30]. In a parametric framework, the shape of the functional relationship is a prespecified, either linear or nonlinear, function, limiting the flexibility of the modeling. In a nonparametric framework, the shape of the functional relationship is completely determined by the data, allowing for a higher degree of adaptability. _Sensors_ 2019, _19_, 4610 3 of 22 The goodness of fit and predictive performance of the models are assessed by analyzing the adjustment residuals and the leave-one-out cross-validation (LOOCV) residuals. The quality of the characterized image is also evaluated in terms of colorimetric accuracy by means of color differences among observed and fitted colors using the CIE framework. In addition, we evaluate the induced noise into the output image after the characterization which is recognized as a drawback for some image applications such as image matching or pattern recognition. The induced noise is evaluated by computing and comparing the coefficients of variation of digital values between the original and output images. 2. Materials and Methods _2.1._ _Case Study:_ _Cova dels Cavalls_ The working area is a rock art scene located in Shelter II of the Cova dels Cavalls site in the county of Tirig, province of Castelló (Spain). This cave is part of one of the most singular rock art sites of the Mediterranean Basin in the Iberian Peninsula, which is listed by UNESCO as a World Heritage since 1998 [31] . The images were taken using two different SLR digital cameras, a Sigma SD15 and a Fujifilm IS PRO. The images contain the hunting scene located in the central part of this emblematic archaeological site. Parameters such as focal, exposure time, aperture, and ISO were controlled during the photographic sessions for both cameras. Photographs were taken in the raw format under homogeneous illumination conditions. The main difference between the Fujifilm IS PRO and the Sigma SD15 cameras is their integrated sensors. The Fujifilm incorporates a 12 megapixels Super CCD imaging sensor, with resolution of 4256 _×_ 2848 pixels and a color filter array (CFA) with a Bayer pattern. The use of CFA implies that the color registered in every individual pixel is not acquired directly but as a result of interpolation between channels. On the other hand, the Sigma carries a three-layer CMOS Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor of 2640 _×_ 1760 pixels, which makes it a true trichromatic digital camera [32]. The main advantage of this sensor is its ability to capture color without any interpolation. _2.2._ _Image-Based Camera Characterization Methodology_ The output RGB digital values registered by the camera depend on three main factors: the sensor architecture, the lighting conditions, and the object being imaged. Even assuming the same object and lighting conditions, other factors can still produce different RGB responses within and across scenes. Some elements such as the internal color filters or user settings (exposure time, aperture, white balance, and so on) can modify the output digital values. As a result, the original RGB data registered by the sensor cannot be used rigorously for the quantitative determination of color, and native RGB camera color spaces are said to be device dependent. A way to transform the signal captured by the camera sensor into a physicaly-based, device-independent color space is by means of camera characterization (See workflow in Figure 1). To carry out the characterization, various training and test datasets are required. An important aspect on the camera characterization process is the establishment of the working color spaces. Some of the most common color spaces used are the input RGB data and the output tristimulus coordinates [10]. In the preliminary stages of the study four different transformations, between color spaces were tested, including RGB–CIE XYZ, RGB-CIELAB, LMS–CIE XYZ, and LMS–CIELAB. The transformation that worked the best was the RGB–CIE XYZ, whose results are reported in the rest of the paper. On the other hand, the digital RGB values are available after a complex process driven by the built-in software and electronics of the camera [33]. Usually, a set of preprocessing operations, e.g., demosaicing, white balance, gamut mapping, color enhancement, or compression, are applied automatically to the raw image (Figure 2). It is thus preferable to work with raw data versus RGB processed or compressed image files. _Sensors_ 2019, _19_, 4610 4 of 22 Figure 1. Schematic diagram designed for the camera characterization. Figure 2. Raw images versus processed images workflow. The raw RGB training and test sample data were extracted from the images using our software pyColourimetry which was developed in previous research. This software was written in the Python programming language following the CIE recommendations. It allows raw RGB data extraction from conventional camera formats and implements other colorimetric functions such as transformation among color spaces, color difference calculation, or spectral data treatment [34]. Also, the data acquisition includes the direct measurement of the tristimulus values of the patches present in the color chart and the raw RGB data extraction from the digital image. Thus, a color chart has to be included as a colorimetric reference in the photographic shot to carry out the camera characterization. For this experiment, we used an X-Rite ColorChecker SG Digital Color Chart as a color standard. This chart is routinely used in digital photography for color calibration. It consists of an array of 140 color patches. The number of patches is supposedly enough to cover the color domain present in the scene as well as to provide training and test data sets to analyze the results after the camera characterization. CIE XYZ values for the ColorChecker patches have to be known prior to undertake the camera characterization. An accepted option is to use those tristimulus values provided by the manufacturer. Nevertheless, it is highly recommended to carry out a new measurement, preferably by means of a colorimeter or spectrophotometer, using the setup of the specific experiment. The spectral reflectance data were acquired using the spectrophotometer Konica Minolta CM-600d, following CIE recommendations (2 <sup>o</sup> standard observer under D65 illuminant). CIE XYZ coordinates can be obtained by transforming the spectral data using well-known CIE formulae [35]. To visualize the tristimulus coordinates, it is necessary to perform a final transformation of the CIE XYZ values into the sRGB color space, which is compatible with most digital devices. This transformation is carried out based on the technical recommendations published by the International Electrotechnical Commission [36]. Thus, the final outcome of the characterization consists of an sRGB output image for each regression model. _Sensors_ 2019, _19_, 4610 5 of 22 Once the digital camera is colorimetrically characterized, it can be used for the rigorous measurement of color simulating a colorimeter [37]. Using a characterized camera, we can obtain accurate color information over complete scenes, which is a very important requirement to properly analyze rock art. The use of conventional cameras for color measurement allows researchers to take pictures with low-cost recording devices, suitable for carrying out heritage documentation tasks using noninvasive methodologies [22]. _2.3._ _Gaussian Processes for Camera Characterization_ The main aim of camera characterization is to find the mapping function between the RGB color values and the CIE XYZ tristimulus coordinates: _f_ : _RGB ∈_ IR <sup>3</sup> _→_ _XYZ_ _∈_ IR <sup>3</sup> (1) Commonly, this multivariate mapping function is divided into independent functions for each each single XYZ tristimulus value. In this paper, we propose a Gaussian process (GP) to estimate these functions, with different model parameters, _θ_ 1, _θ_ 2, and _θ_ 3, for each mapping function: _f_ 1 : _RGB ∈_ IR <sup>3</sup> _−−−−→_ <sup>_GP_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>1)</sup> _X_ _∈_ IR _f_ 2 : _RGB ∈_ IR <sup>3</sup> _−−−−→_ <sup>_GP_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>2)</sup> _Y_ _∈_ IR (2) _f_ 3 : _RGB ∈_ IR <sup>3</sup> _−−−−→_ <sup>_GP_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>3)</sup> _Z_ _∈_ IR 2.3.1. Gaussian Process Model A GP is a stochastic process which defines the distribution over a collection of random variables [24,25]. The defining property of a GP is that any finite set of random variables is jointly distributed as a multivariate normal distribution. A GP is completely characterized by its mean and covariance functions that control the a priori behavior of the function. GP can be used as prior probability distributions for latent functions in generalized linear models [38]. However, in this paper, we focus on GP in linear models (a normal outcome), as we can assume that the CIE XYZ color coordinates are normally distributed. A GP for a normal outcome _y_ = _{y_ 1, _y_ 2, . . ., _yn_ _∈_ IR _}_ _∈_ IR <sup>_n_</sup>, paired with a matrix of _D_ inputs variables (predictors) _X_ = _{_ _x_ 1, _x_ 2, . . ., _x_ 3 _∈_ IR <sup>_n_</sup> _} ∈_ IR <sup>_n×D_</sup>, consists of defining a multivariate Gaussian distribution over _y_ conditioned on X: _y_ _|X_ _∼N_ ( _µ_ ( _X_ ), _K_ ( _X|θ_ ) + _σ_ <sup>2</sup> _I_ ) (3) where _µ_ ( _X_ ) is a n-vector, _K_ ( _X|θ_ ) is an _n × n_ covariance matrix, _σ_ <sup>2</sup> is the noise variance, and _I_ the _n × n_ diagonal identity matrix. The mean function _µ_ : _X_ _∈_ IR <sup>_n×D_</sup> _→_ IR <sup>_n_</sup> can be anything, although it is usually recommended to be a linear model or even zero. The covariance function _K|θ_ : _X_ _∈_ IR <sup>_n×D_</sup> _→_ IR <sup>_n×n_</sup> must be a positive semidefinite matrix [25,26]. In this work, we use the square exponential covariance function, which is the most commonly used function of the Matérn class of isotropic covariance functions [25]. The squared exponential covariance function for two observed points _i_ and _j_ ( _i_, _j_ = 1, . . ., _n_ ) takes the form _−_ <sup><u>1</u></sup> 2 <u>1</u> _ℓ_ <sup>2</sup> _d_ _D_ ### ∑ _d_ =1 _K_ ( _X_, _θ_ ) _ij_ = _α_ <sup>2</sup> exp ( _xdi −_ _xdj_ ) <sup>2</sup> (4) where _θ_ = _{α_, _ℓ}_ ; _α_ is the marginal variance parameter, which controls the overall scale or magnitude of the range of values of the GP; and _ℓ_ = _{ℓd}d_ <sup>_D_</sup> =1 <sup>are the lengthscale parameters, which control the</sup> _Sensors_ 2019, _19_, 4610 6 of 22 smoothness of the function in the direction of the _d_ -predictor, so that the larger the lengthscale the smoother the function. 2.3.2. Bayesian Inference Bayesian inference is based on the joint posterior distribution _p_ ( _θ_, _σ_ <sup>2</sup> _|_ _y_, _X_ ) of parameters given the data, which is proportional to the product of the likelihood and prior distributions, _p_ ( _θ_, _σ_ <sup>2</sup> _|_ _y_, _X_ ) ∝ _p_ ( _y_ _|θ_, _σ_ <sup>2</sup>, _X_ ) _p_ ( _θ_ ) _p_ ( _σ_ <sup>2</sup> ) (5) In the previous equation, _p_ ( _y_ _|θ_, _σ_ <sup>2</sup>, _X_ ) = ∏ _i_ _N_ ( _yi|_ 0, _Kii_ ( _X|θ_ ) + _σ_ <sup>2</sup> ) is the likelihood of the model, where the mean function _µ_ ( _X_ ) has been set to zero for the sake of simplicity, and _p_ ( _α_ ) = _N_ ( _α|_ 0, 10) _p_ ( _ℓ_ ) = _D_ ### ∏ _d_ =1 Gamma( _ℓd|_ 1, 0.1) _p_ ( _σ_ <sup>2</sup> ) = _N_ <sup>+</sup> ( _σ_ <sup>2</sup> _|_ 0, 10 _}_ are the prior distributions of the parameters of the model. These correspond to weakly informative prior distributions based on prior knowledge about the magnitude of the parameters. Predictive inference for new function values _y_ ˜ for a new sequence of input values _X_ <sup>˜</sup> can be computed by integrating over the joint posterior distribution _p_ ( _y_ ˜ _|_ _y_ ) = _p_ ( _y_ ˜ _|θ_, _σ_ <sup>2</sup>, _X_ <sup>˜</sup> ) _p_ ( _θ_, _σ_ <sup>2</sup> _|_ _y_, _X_ ) _dθdσ_ <sup>2</sup> (6) To estimate both the parameter posterior distribution and the posterior predictive distribution for this model, simulation methods and/or distributional approximations methods [38] must be used. Simulation methods based on MCMC [27] are general sampling methods to obtain samples from the joint posterior distribution. For quick inferences and large data sets, where iterative simulation algorithms are too slow, modal and distributional approximation methods can be more efficient and approximate alternatives. _2.4._ _Second-Order Polynomial MOdel_ This is the most extended model in practical camera characterization. The _N_ -dimensional collections of random observations _X_, _Y_, and _Z_ are the CIE color variables, where _Xi_, _Yi_, and _Zi_ represent the color coordinates of the _i_ th order observation _i_ ( _i_ = 1, _· · ·_, _N_ ). Each _X_, _Y_, and _Z_ _N_ -dimensional variable is considered to follow a normal distribution depending on an underlying second-order polynomial function _f_ and noise variance _σ_ <sup>2</sup>, _p_ ( _X_ _|_ _f_ _x_, _σx_ ) = _N_ ( _X_ _|_ _f_ _x_, _σx_ <sup>2</sup> <sup>_I_</sup> <sup>)</sup> _p_ ( _Y_ _|_ _f_ _y_, _σy_ ) = _N_ ( _Y_ _|_ _f_ _y_, _σy_ <sup>2</sup> <sup>_I_</sup> <sup>)</sup> (7) _p_ ( _Z_ _|_ _f_ _z_, _σz_ ) = _N_ ( _Z_ _|_ _f_ _z_, _σz_ <sup>2</sup> <sup>_I_</sup> <sup>)</sup> where _I_ is the _N × N_ identity matrix. The latent second-order polynomials functions _f_ _x_, _f_ _y_, and _f_ _z_ take the form _Sensors_ 2019, _19_, 4610 7 of 22 _f_ _x_ = _a_ 0 + _a_ 1 _·_ _R_ + _a_ 2 _·_ _G_ + _a_ 3 _·_ _B_ + _a_ 4 _·_ _R_ _·_ _G_ + _a_ 5 _·_ _R_ _·_ _B_ + _a_ 6 _·_ _G_ _·_ _B_ + _a_ 7 _·_ _R_ <sup>2</sup> + _a_ 8 _·_ _G_ <sup>2</sup> + _a_ 9 _·_ _B_ <sup>2</sup> _f_ _y_ = _b_ 0 + _b_ 1 _·_ _R_ + _b_ 2 _·_ _G_ + _b_ 3 _·_ _B_ + _b_ 4 _·_ _R_ _·_ _G_ + _b_ 5 _·_ _R_ _·_ _B_ + _b_ 6 _·_ _G_ _·_ _B_ + _b_ 7 _·_ _R_ <sup>2</sup> + _b_ 8 _·_ _G_ <sup>2</sup> + _b_ 9 _·_ _B_ <sup>2</sup> (8) _f_ _z_ = _c_ 0 + _c_ 1 _·_ _R_ + _c_ 2 _·_ _G_ + _c_ 3 _·_ _B_ + _c_ 4 _·_ _R_ _·_ _G_ + _c_ 5 _·_ _R_ _·_ _B_ + _c_ 6 _·_ _G_ _·_ _B_ + _c_ 7 _·_ _R_ <sup>2</sup> + _c_ 8 _·_ _G_ <sup>2</sup> + _c_ 9 _·_ _B_ <sup>2</sup> where the vectors _a_ = _a_ 1, . . ., _a_ 9, _b_ = _b_ 1, . . ., _b_ 9 and _c_ = _c_ 1, . . ., _c_ 9 represent the polynomial coefficients, and _R_, _G_, and _B_ are the _N_ -dimensional variables in the input RGB space. The likelihood functions of the variables _X_, _Y_ and _Z_ (given the coefficients _a_, _b_, _c_ ), the variance parameters _σ_ <sup>2</sup> = _σx_ <sup>2,</sup> <sup>_σ_</sup> _y_ <sup>2,</sup> <sup>_σ_</sup> _z_ <sup>2, and the variables</sup> <sup>_R_</sup> <sup>,</sup> <sup>_G_</sup> <sup>and</sup> <sup>_B_</sup> <sup>, take the form</sup> _x_ <sup>2,</sup> <sup>_σ_</sup> _y_ <sup>2</sup> _y_ <sup>2,</sup> <sup>_σ_</sup> _z_ <sup>2</sup> _z_ <sup>2, and the variables</sup> <sup>_R_</sup> <sup>,</sup> <sup>_G_</sup> <sup>and</sup> <sup>_B_</sup> <sup>, take the form</sup> _p_ ( _X_ _|_ _a_, _σx_, _R_, _G_, _B_ ) = _p_ ( _Y_ _|_ _b_, _σy_, _R_, _G_, _B_ ) = _p_ ( _Z_ _|_ _c_, _σz_, _R_, _G_, _B_ ) = _N_ ### ∏ _i_ _N_ ### ∏ _i_ _N_ ### ∏ _i_ _N_ ( _Xi|_ _a_, _σx_ <sup>2,</sup> <sup>_R_</sup> _i_ <sup>,</sup> <sup>_G_</sup> _i_ <sup>,</sup> <sup>_B_</sup> _i_ <sup>)</sup> _N_ ( _Zi|_ _c_, _σz_ <sup>2,</sup> <sup>_R_</sup> _i_ <sup>,</sup> <sup>_G_</sup> _i_ <sup>,</sup> <sup>_B_</sup> _i_ <sup>)</sup> _N_ ( _Yi|_ _b_, _σy_ <sup>2,</sup> <sup>_R_</sup> _i_ <sup>,</sup> <sup>_G_</sup> _i_ <sup>,</sup> <sup>_B_</sup> _i_ <sup>)</sup> (9) where the subscript _i_ represents the _i_ th observed value. Bayesian Inference The joint posterior distributions are proportional to the product of the likelihood and prior distributions: _p_ ( _a_, _σx_ <sup>2</sup> _x_ <sup>2</sup> <sup>_|_</sup> <sup>_X_</sup> <sup>)</sup> <sup>∝</sup> <sup>_p_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_|_</sup> <sup>_a_</sup> <sup>,</sup> <sup>_σ_</sup> _x_ <sup>2</sup> _p_ ( _b_, _σy_ <sup>2</sup> <sup>_|_</sup> _p_ ( _c_, _σz_ <sup>2</sup> _y_ <sup>2</sup> <sup>_|_</sup> <sup>_Y_</sup> <sup>)</sup> <sup>∝</sup> <sup>_p_</sup> <sup>(</sup> <sup>_Y_</sup> <sup>_|_</sup> <sup>_b_</sup> <sup>,</sup> <sup>_σ_</sup> _y_ <sup>2</sup> _z_ <sup>2</sup> <sup>_|_</sup> <sup>_Z_</sup> <sup>)</sup> <sup>∝</sup> <sup>_p_</sup> <sup>(</sup> <sup>_Z_</sup> <sup>_|_</sup> <sup>_c_</sup> <sup>,</sup> <sup>_σ_</sup> _z_ <sup>2</sup> _x_ <sup>2,</sup> <sup>_R_</sup> <sup>,</sup> <sup>_G_</sup> <sup>,</sup> <sup>_B_</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_a_</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_σ_</sup> _x_ <sup>2</sup> _y_ <sup>2,</sup> <sup>_R_</sup> <sup>,</sup> <sup>_G_</sup> <sup>,</sup> <sup>_B_</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_b_</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_σ_</sup> _y_ <sup>2</sup> _z_ <sup>2,</sup> <sup>_R_</sup> <sup>,</sup> <sup>_G_</sup> <sup>,</sup> <sup>_B_</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_c_</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_σ_</sup> _z_ <sup>2</sup> _x_ <sup>2)</sup> _y_ <sup>2)</sup> _z_ <sup>2)</sup> We set vague prior distributions _p_ ( _a_ ) = _N_ ( _a_ _|_ 0, 1000), _p_ ( _b_ ) = _N_ ( _b_ _|_ 0, 1000), _p_ ( _c_ ) = _N_ ( _c_ _|_ 0, 1000), and _p_ ( _σ_ ) = _N_ <sup>+</sup> ( _σ|_ 0, 1) for the hyperparameters _a_, _b_, _c_, and _σ_, respectively, based on prior knowledge about the magnitude of the parameters. Predictive inference for new function values _X_ <sup>˜</sup>, _Y_ <sup>˜</sup>, and _Z_ <sup>˜</sup> for a new sequence of input values _R_ <sup>˜</sup>, _G_ <sup>˜</sup>, and _B_ <sup>˜</sup> can be computed by integrating over the joint posterior distributions _x_ <sup>2</sup> _y_ <sup>2</sup> _p_ ( _X_ <sup>˜</sup> _|_ _X_ ) = _p_ ( _X_ <sup>˜</sup> _|_ _a_, _σx_ <sup>2,</sup> _x_ <sup>2</sup> <sup>_|_</sup> <sup>_X_</sup> <sup>)</sup> <sup>_d_</sup> <sup>_a_</sup> <sup>_dσ_</sup> _x_ <sup>2</sup> _y_ <sup>2</sup> <sup>_|_</sup> <sup>_Y_</sup> <sup>)</sup> <sup>_d_</sup> <sup>_b_</sup> <sup>_dσ_</sup> _y_ <sup>2</sup> _z_ <sup>2</sup> <sup>_|_</sup> <sup>_Z_</sup> <sup>)</sup> <sup>_d_</sup> <sup>_c_</sup> <sup>_dσ_</sup> _z_ <sup>2</sup> _z_ <sup>2</sup> _p_ ( _Y_ <sup>˜</sup> _|_ _Y_ ) = _p_ ( _Z_ <sup>˜</sup> _|_ _Z_ ) = _p_ ( _Y_ <sup>˜</sup> _|_ _b_, _σy_ <sup>2</sup> _p_ ( _Z_ <sup>˜</sup> _|_ _c_, _σz_ <sup>2</sup> _x_ <sup>2,</sup> <sup>_R_</sup> <sup>˜</sup> <sup>,</sup> <sup>_G_</sup> <sup>˜</sup> <sup>,</sup> <sup>_B_</sup> <sup>˜</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_a_</sup> <sup>,</sup> <sup>_σ_</sup> _x_ <sup>2</sup> <sup>_|_</sup> _y_ <sup>2,</sup> <sup>_R_</sup> <sup>˜</sup> <sup>,</sup> <sup>_G_</sup> <sup>˜</sup> <sup>,</sup> <sup>_B_</sup> <sup>˜</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_b_</sup> <sup>,</sup> <sup>_σ_</sup> _y_ <sup>2</sup> _z_ <sup>2,</sup> <sup>_R_</sup> <sup>˜</sup> <sup>,</sup> <sup>_G_</sup> <sup>˜</sup> <sup>,</sup> <sup>_B_</sup> <sup>˜</sup> <sup>)</sup> <sup>_p_</sup> <sup>(</sup> <sup>_c_</sup> <sup>,</sup> <sup>_σ_</sup> _z_ <sup>2</sup> Simulation methods based on MCMC are used for estimating both the parameter posterior distribution and the posterior predictive distribution of these models. _2.5._ _Model Checking and Comparison_ For model assessment, common checking procedures of normality, magnitude and tendencies on the fitted and predicted residuals are used. Fitted residuals can be useful for identifying outliers or misspecified models and give us the goodness of the fit for the sampling patches. Furthermore, the performance of each model was assessed using the LOOCV approach [39]. The LOOCV procedure has been previously used in color science multiple times [40–43], although its origins can be traced back to early practical statistics methods [39] and is routinely used in modern data science applications [44]. _Sensors_ 2019, _19_, 4610 8 of 22 In our study, the LOOCV consists of setting aside an individual patch and calculating the prediction model. Then, the predicted value is compared to its observed value which gives a measure of the model predictive accuracy. This allows obtaining an average of the predictive accuracy for unobserved patches as well as individual quality indicators for each color patch. In addition to the residual analysis, it is required the assessment of the models using colorimetry metrics [1]. Also, a LOOCV procedure was conducted to assess the predictive performance in terms of color differences. In classical colorimetry, color difference metrics are determined using formulas based on the CIELAB color space, such as ∆ _Eab_ <sup>_∗_</sup> <sup>, also known as the CIE76 color difference [35].</sup> The CIE XYZ color space is not uniform, that is, equal distances in this space do not represent equally perceptible differences between color stimuli. Contrarily, CIELAB coordinates are nonlinear functions of CIE XYZ, and more perceptually uniform than the CIE XYZ color space [35,45]. The ∆ _Eab_ <sup>_∗_</sup> between the theoretical tristimulus coordinates against the predicted values are computed, which gives a measure of the model adjustment in a well-defined color metric. Other modern color difference formulas which take ∆ _Eab_ <sup>_∗_</sup> <sup>as a reference have been developed</sup> by the CIE. An example is the CIEDE2000 formula, which includes corrections for variations in color difference perception due to lightness, chroma, hue, and chroma–hue interaction [46–48]. It must be indicated that CIEDE2000 was designed for specialized industry applications [49]. To use the CIEDE2000 formula, a number of specific requirements have to be fulfilled. Some of these requirements are the sample size (greater than 4 degrees), sample–sensor separation (contact), background field (uniform, neutral gray), and sample homogeneity (textureless). Usually, these conditions cannot be guaranteed in the usual working environments found in rock art documentation. Therefore, it seems more appropriate to use the CIE76 formula herein instead of the CIEDE2000 to determine color differences. ∆ _Eab_ <sup>_∗_</sup> <sup>is calculated as the Euclidean distance between two color stimuli in CIELAB coordinates</sup> ∆ _Eab_ <sup>_∗_</sup> <sup>=</sup> �(∆ _L_ <sup>_∗_</sup> ) <sup>2</sup> + (∆ _a_ <sup>_∗_</sup> ) <sup>2</sup> + (∆ _b_ <sup>_∗_</sup> ) <sup>2</sup> (10) where ∆ _L_ <sup>_∗_</sup>, ∆ _a_ <sup>_∗_</sup>, and ∆ _b_ <sup>_∗_</sup> are the differences between the _L_ <sup>_∗_</sup>, _a_ <sup>_∗_</sup>, and _b_ <sup>_∗_</sup> coordinates of the two color stimuli. Numerous guides seek to quantify the maximum value allowed (tolerance) for an acceptable color difference so that it is imperceptible by human vision. This concept is known as ”Just Noticeable Difference” (JND). A good reference is found in the Metamorfoze guideline, which employs the CIE76 color difference formula, and establishes a color accuracy of 4 CIELAB units [50]. _2.6._ _Induced Noise Analysis_ The radiometric response of a digital camera is the outcome of a number of factors, such as electromagnetic radiation, sensor electronics, the optical system, and so forth [51–55]. The noise present on a single image is basically composed of two components: the photoresponse noise of every sensor element (pixel) and the spatial nonuniformity or fixed pattern noise of the sensor array [56,57]. The nonlinear transformation functions in camera characterization models modify the input data which are themselves affected by noise. In the camera characterization, noise is transferred from the original image to the characterized image and transformed in different ways. In this paper, the analysis of noise is carried out by comparing the coefficients of variation in the original and the characterized images. The noise assessment was conducted on four selected patches of the color checker (C7, D7, C8, and D8). _Sensors_ 2019, _19_, 4610 9 of 22 3. Results and Discussion _3.1._ _Model Performance Assessment_ For model assessment we processed the CIE XYZ residuals and the ∆ _Eab_ <sup>_∗_</sup> <sup>color differences values</sup> after the characterization procedure. 3.1.1. CIE XYZ Residuals Table 1 summarizes the fitted CIE XYZ and LOOCV residuals values achieved after the characterization process for the two cameras used in the study. Also, the histograms of the fitted and LOOCV residuals in both images are in Figure 3. Although both methodologies give satisfactory results and fit appropriately to the input RGB data, all summary statistics and histograms clearly show that GP outperforms the second-order polynomial regression model in both images. The standard deviation values, which represent the mean error, as well as the maximum and minimum residuals, are lower using the GP process than the second-order polynomial model. Table 1. Fitted CIE XYZ (Res) and LOOCV residuals (RL) values after the characterization. Sigma SD15 Image Gaussian Process Second-Order Polynomial CIE X CIE Y CIE Z CIE X CIE Y CIE Z Res RL Res RL Res RL Res RL Res RL Res RL Max. 1.88 4.53 1.80 4.38 1.28 3.66 7.02 7.36 6.87 7.18 4.80 5.09 Min. _−_ 2.48 _−_ 4.59 _−_ 3.21 _−_ 5.80 _−_ 1.50 _−_ 4.54 _−_ 4.97 _−_ 5.46 _−_ 4.70 _−_ 5.15 _−_ 3.59 _−_ 3.93 Std. Dev. 0.73 1.39 0.77 1.48 0.49 1.01 1.77 1.92 1.82 1.98 1.29 1.38 Fujifilm IS PRO Image Gaussian Process Second-Order Polynomial CIE X CIE Y CIE Z CIE X CIE Y CIE Z Res RL Res RL Res RL Res RL Res RL Res RL Max. 2.20 4.42 1.98 3.71 1.54 3.33 7.08 7.53 6.48 6.90 3.15 3.35 Min. _−_ 3.72 _−_ 4.25 _−_ 2.63 _−_ 3.84 _−_ 1.35 _−_ 1.80 _−_ 4.25 _−_ 4.69 _−_ 3.12 _−_ 3.31 _−_ 1.96 _−_ 2.45 Std. Dev. 0.94 1.46 0.78 1.20 0.45 0.74 1.75 1.92 1.45 1.58 0.49 0.86 Thus, given the results achieved using the GP, a notable improvement can be observed compared with the common second-order polynomial models, that is, a higher adjustment correlation coefficient and a greater predictive capacity were achieved. An improvement in the predictive capacity (LOOCV residuals) implies a better model generalization, that is, a better capacity for interpolation and extrapolation. This is a key aspect in the characterization procedure, as the output digital image is the result of the application of the model established. 3.1.2. ∆ _Eab_ <sup>_∗_</sup> <sup>Color Differences</sup> The ∆ _Eab_ <sup>_∗_</sup> <sup>color differences (Equation (10)) obtained between the theoretical and predicted values</sup> allowed us to assess the colorimetric quality achieved after the adjustment. The results obtained for the ∆ _Eab_ <sup>_∗_</sup> <sup>are shown numerically in the Table 2.</sup> <sup>Also, they can be consulted graphically in the Figure 4 (for</sup> the Sigma SD15) and Figure 5 (for the Fujifilm IS PRO), where the red line delimits the JND tolerance established in 4 CIELAB units. _Sensors_ 2019, _19_, 4610 10 of 22 Sigma SD15 image Gaussian process ( a ) ( b ) Second-order polynomial ( c ) ( d ) Fujifilm IS PRO image Gaussian process ( e ) ( f ) Second-order polynomial ( g ) ( h ) Figure 3. CIE XYZ residuals histograms after the adjustment: ( a, b, e, f ) Gaussian process; ( a, d, g, h ); Second-order polynomial; ( a, c, e, g ); CIE XYZ residuals; ( b, d, f, h ); LOOCV residuals. _Sensors_ 2019, _19_, 4610 11 of 22 Table 2. ∆ _Eab_ <sup>_∗_</sup> <sup>summary of the statistical results after the characterization.</sup> Sigma SD15 Image Fujifilm IS PRO Image Gaussian Process Second-Order Polynomial Gaussian Process Second-Order Polynomial ∆ _E_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> LOOCV ∆ _Eab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> LOOCV ∆ _Eab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> LOOCV ∆ _Eab_ <sup>_∗_</sup> ∆ _Eab_ <sup>_∗_</sup> LOOCV ∆ _Eab_ <sup>_∗_</sup> LOOCV ∆ _Eab_ <sup>_∗_</sup> LOOCV ∆ _Eab_ <sup>_∗_</sup> LOOCV Max. 8.251 8.906 15.086 17.814 8.213 8.409 12.634 13.021 Mean 1.755 2.440 2.561 2.751 1.817 2.285 2.753 2.958 Median 1.403 2.180 2.135 2.205 1.486 1.913 2.101 2.281 Std. Dev. 1.479 1.863 1.836 2.022 1.457 1.729 2.186 2.305 Sigma SD15 image ( a ) ( b ) Figure 4. Sigma SD15 ∆ _E_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> <sup>values for the X-Rite patches:</sup> <sup>(</sup> <sup>a</sup> <sup>) ∆</sup> <sup>_E_</sup> _ab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> <sup>; (</sup> <sup>b</sup> <sup>) LOOCV ∆</sup> <sup>_E_</sup> _ab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> <sup>.</sup> Under a strict colorimetric criterion, the average and median values for ∆ _E_ <sup>_∗_</sup> Under a strict colorimetric criterion, the average and median values for ∆ _Eab_ <sup>_∗_</sup> <sup>obtained using both</sup> regression models are less than 3 CIELAB units, that is, lower than the JND. However, the ∆ _Eab_ <sup>_∗_</sup> <sup>color</sup> differences obtained confirm that the adjustment based on the GP model offers better results than the second-order polynomial regression for both cameras. The values achieved for the mean and median ∆ _Eab_ <sup>_∗_</sup> <sup>in both images are similar using the second-order polynomial regression model.</sup> It is clearly observed that the main improvement is in the maximum ∆ _Eab_ <sup>_∗_</sup> <sup>values</sup> <sup>obtained.</sup> Although the average for LOOCV ∆ _Eab_ <sup>_∗_</sup> <sup>is slightly lower using the GP, the maximum values for LOOCV</sup> ∆ _Eab_ <sup>_∗_</sup> <sup>decreases significantly using this model.</sup> <sup>The maximum values obtained are 17.814 and 13.021</sup> for the Sigma SD15 and the Fujifilm IS PRO image, respectively, using a second-order polynomial regression model, whereas the maximum values for LOOCV ∆ _Eab_ <sup>_∗_</sup> <sup>using</sup> <sup>the</sup> <sup>GP</sup> <sup>are</sup> <sup>~8</sup> <sup>CIELAB</sup> units (Table 2). Moreover, the number of patches with ∆ _Eab_ <sup>_∗_</sup> <sup>greater than 4 units (JND) clearly decrease for both</sup> images after applying the GP (Figures 4 and 5). Thus, the GP improvement achieved in the adjustment is noticeable in colorimetric terms, reaching lower magnitude residuals (Table 1) and ∆ _Eab_ <sup>_∗_</sup> <sup>values</sup> (Table 2), which means better model fits and higher predictive characteristics. _ab_ <sup>_∗_</sup> <sup>in both images are similar using the second-order polynomial regression model.</sup> It is clearly observed that the main improvement is in the maximum ∆ _E_ <sup>_∗_</sup> Moreover, the number of patches with ∆ _E_ <sup>_∗_</sup> _Sensors_ 2019, _19_, 4610 12 of 22 Fujifilm IS PRO ( a ) ( b ) Figure 5. Fujifilm IS PRO ∆ _Eab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> <sup>values for the X-Rite patches:</sup> <sup>(</sup> <sup>a</sup> <sup>) ∆</sup> <sup>_E_</sup> _ab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> <sup>; (</sup> <sup>b</sup> <sup>) LOOCV ∆</sup> <sup>_E_</sup> _ab_ <sup>_∗_</sup> _ab_ <sup>_∗_</sup> <sup>.</sup> 3.1.3. Analysis of Color Chart Patches The use of the LOOCV procedure in this study is twofold: it allows an overall model checking as well as analyzing patches used in the camera characterization at an individual level. Values for ∆ _Eab_ <sup>_∗_</sup> less than 4 CIELAB units (JND value represented by the red line in the plots in Figures 4 and 5) are achieved for the majority of the patches. Also, it is clearly observed that the Fujifilm IS PRO image gives better results than the Sigma SD15 image, particularly after applying the GP (cf. Figure 5b with Figure 4b). Table 3 displays the percentage of patches with a LOOCV ∆ _Eab_ <sup>_∗_</sup> <sup>greater than 4 CIELAB units for</sup> the different regression models performed. Once again, the GP model gives slightly better results than the second-order polynomial model, especially for the Fujifilm IS PRO digital camera. Table 3. Percentage of patches with LOOCV ∆ _Eab_ <sup>_∗_</sup> <sup>_>_</sup> <sup>4 CIELAB units.</sup> Sigma SD15 Fujifilm IS PRO Patches % Patches % Model Gaussian process 12 8.57 11 7.86 Second-order 19 13.57 31 22.14 LOOCV Gaussian process 23 16.43 22 15.71 Second-order 20 14.29 31 22.14 Particularly, there are eight patches with the highest ∆ _Eab_ <sup>_∗_</sup> <sup>values in both images regardless of the</sup> model applied (A8, B4, B9, E4, G4, H3, H9, and M3). These patches can be easily identified on the X-rite ColorChecker (Figure 6a) as well as on the CIE chromaticity diagram (Figure 6b). The worst results are found in patches E4, H9, B4, and G4 (blue, green, purple, and red, respectively). Note that patches E4 (blue), G4 (red), and H9 (green) are near the vertices of the triangle that delimits the color gamut, that is the chromatic domain, of the sRGB color space (white line plotted in picture b in Figure 6). _Sensors_ 2019, _19_, 4610 13 of 22 ( a ) ( b ) Figure 6. Patches with higher LOOCV ∆ _Eab_ <sup>_∗_</sup> <sup>values:</sup> <sup>(</sup> <sup>a</sup> <sup>)</sup> <sup>on</sup> <sup>X-Rite</sup> <sup>ColorChecker;</sup> <sup>(</sup> <sup>b</sup> <sup>)</sup> <sup>on</sup> <sup>CIE</sup> chromaticity diagram. Thus, the nature and colorimetric characteristics of the color patches used as training sample set have an effect on the overall accuracy of the model used [58]. The colors represented with the highest ∆ _Eab_ <sup>_∗_</sup> <sup>values</sup> <sup>in</sup> <sup>these</sup> <sup>patches</sup> <sup>correspond</sup> <sup>to</sup> <sup>saturated</sup> <sup>colors</sup> <sup>that</sup> <sup>are</sup> <sup>commonly</sup> <sup>found</sup> <sup>in</sup> <sup>artificial</sup> or industrial objects, but not in natural scenes such as those found in archaeological applications. We have to keep in mind that, usually, color charts used as colorimetric reference are designed mainly for industrial processes or photographic applications. Therefore, purple (B4, H3, and M3), blue (E4), green (H9 and B9), and bright red (G4) colors will not likely be present in archaeological scenes. Consequently, these color patches could be removed from the training sample during the characterization process without affecting the global accuraccy. Previous research show that a proper selection of the patches, such as the skin tone colors, provides suitable results for camera characterization procedure applied in rock art paintings [59,60]. In Spanish Levantine rock art paintings, it is more frequent to find reddish or black colors (only dark reds in the Cova dels Cavalls) in pigments and skin tone or brown colors in the support. It is clearly observed that these patches work correctly regardless of the regression model used. 3.1.4. Induced Noise Results The two cameras used in this study have different built-in sensors. The Sigma SD15 camera incorporates a Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor, whereas the Fujifilm IS PRO carries a Super CCD sensor. The values of the variation coefficients were computed and compared between the input RGB image and the output sRGB characterized image for the two mathematical transformations. The pixel variability evaluation was conducted in a reduced group of ColorChecker patches with homogeneous reflectance (C7, D7, C8, and D8). Table 4 shows the variation coefficients for the raw RGB digital values from the original images before the camera characterization (Figure 7a,e). It is informative to contrast these values with the variation coefficients obtained for the CIE XYZ (Table 5) and sRGB transformed data (Table 6) respectively. For a brief overview, Table 7 shows a summary of the variation coefficients obtained. Moreover, as the degree of the polynomial model used can affect the results achieved in terms of noise, we included the comparison of the variation coefficients for the linear model as well [61]. Our outcomes show basically the same results in the second-order and linear models, which are still slightly worse than the GP result (cf. Tables 5 and 6). The trend found in the induced noise results, that is, the noise depends on the sensor and therefore it is different for each camera regardless of the mathematical model. _Sensors_ 2019, _19_, 4610 14 of 22 The coefficients obtained for the digital values on the original image indicate that the noise generated directly by the Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor is greater than noise in the SuperCCD (Table 4). Apparently, the SuperCCD sensor seems to respond better in the raw data collection stage in terms of noise variability. Also, the overall results confirm the superior behavior of the SuperCCD when compared with the Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor (cf. Tables 5 and 6). Table 7 shows that none of the regression models applied to the Fujifilm IS PRO image increased the original variability coefficients. In fact, the coefficients decrease slightly after applying the GP; with the opposite behavior present in the Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor. Both, the CIE XYZ and sRGB coefficients obtained increase significantly in the Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor, regardless of the characterization model used. ( a ) ( b ) ( c ) ( d ) ( e ) ( f ) ( g ) ( h ) Figure 7. Noise comparative detail sRGB images after characterization: ( a - d ) Sigma SD15; ( e - h ) FujifilmIS PRO; ( a, e ) Original raw images; ( b, f ) Gaussian process; ( c, g ) Second-order polynomial model; ( d, h ) Linear model. Table 4. Noise variation coefficients of the original RGB digital numbers. Sigma SD15 Image Fujifilm IS PRO Image Patch R G B R G B C7 0.020488 0.014114 0.009923 0.011586 0.01077 0.01223 C8 0.036863 0.019129 0.017545 0.013394 0.01170 0.00851 D7 0.018434 0.016139 0.016432 0.008498 0.01294 0.01039 D8 0.015118 0.014687 0.015908 0.010909 0.01162 0.00933 Table 5. Variation coefficients of the output CIE XYZ coordinates. Sigma SD15 Image Gaussian Process Second-Order Polynomial Linear Patch X Y Z X Y Z X Y Z C7 0.03673 0.01413 0.03559 0.02447 0.02620 0.03129 0.01988 0.04851 0.03192 C8 0.01290 0.06014 0.09700 0.01360 0.05988 0.09379 0.01916 0.04617 0.10635 D7 0.05272 0.05006 0.05985 0.07844 0.03741 0.06928 0.03755 0.05664 0.06164 D8 0.01933 0.04773 0.08251 0.01365 0.05254 0.07137 0.01632 0.04362 0.07257 Fujifilm IS PRO Image Gaussian Process Second-Order Polynomial Linear Patch X Y Z X Y Z X Y Z C7 0.00824 0.01098 0.00967 0.00905 0.01275 0.01009 0.01037 0.01197 0.00969 C8 0.01054 0.01162 0.01730 0.01104 0.01179 0.01782 0.00983 0.01078 0.01831 D7 0.01058 0.01286 0.01040 0.00929 0.01163 0.01066 0.00812 0.01156 0.00994 D8 0.00552 0.01033 0.01639 0.00653 0.01080 0.01632 0.00618 0.00916 0.01390 _Sensors_ 2019, _19_, 4610 15 of 22 Table 6. Variation coefficients of the output sRGB digital numbers. Sigma SD15 Image Gaussian Process Second-Order Polynomial Linear Patch sR sG sB sR sG sB sR sG sB C7 0.09597 0.02311 0.01805 0.01602 0.02768 0.07291 0.01751 0.03312 0.07113 C8 0.02104 0.06967 0.07489 0.07404 0.06745 0.01955 0.08095 0.05876 0.02398 D7 0.01982 0.03815 0.03506 0.03982 0.03447 0.04274 0.03732 0.03072 0.03744 D8 0.03110 0.05567 0.05300 0.04821 0.05360 0.02538 0.04778 0.04715 0.02661 Fujifilm IS PRO Image Gaussian Process Second-Order Polynomial Linear Patch sR sG sB sR sG sB sR sG sB C7 0.01693 0.00721 0.00478 0.00528 0.00825 0.01490 0.00782 0.00954 0.01624 C8 0.00712 0.00884 0.01200 0.01286 0.00922 0.00737 0.01034 0.00803 0.00671 D7 0.00462 0.00746 0.00585 0.00588 0.00748 0.00531 0.00969 0.00632 0.00577 D8 0.00163 0.00767 0.00927 0.00967 0.00776 0.00257 0.00613 0.00696 0.00324 Table 7. Summary of the variation coefficients obtained. Sigma Fujifilm SD15 Image IS PRO Image Original RGB 0.01790 0.01099 Gaussian process CIE XYZ 0.04739 0.01120 sRGB 0.04463 0.00778 Second-order CIE XYZ 0.04766 0.01148 sRGB 0.04349 0.00810 Linear CIE XYZ 0.04774 0.01082 sRGB 0.04271 0.00807 Additionally, Figure 7 displays the noise comparative images as a result of the different color space transforms during the camera characterization. Greater noise is produced by the Foveon <sup>_⃝_</sup> <sup>R</sup> X3 sensor versus the SuperCCD sensor. It is evident that the best results are obtained for the Fujifilm IS PRO camera in terms of noise (cf. Figure 7b–d,f–h). Obviously, the architecture of each sensor is different, as well as its characteristics and operation. Therefore, with regard to image noise, the effect produced by the sensor differs depending on the camera used. It turns out that the digital camera selected for the photographic work is a crucial aspect to be taken into account in archaeological applications. _3.2._ _Output sRGB Characterized Images_ The original raw images were successfully transformed into the same device-independent color space by means of the two regression models applied (Figure 8). Both the GP and the second-order polynomial model gave similar results. Even an experienced observer is unable to perceive differences between the images generated with the two regression models applied for both SLR digital cameras (cf. Figure 8c–f). The JND threshold of 4 CIELAB units is suitable in most practical applications (specifically in this study), and proves that human vision cannot perceive the improvement obtained with the GP (cf. ∆ _Eab_ <sup>_∗_</sup> <sup>GP and second-order polynomial mean values in Table 2).</sup> _Sensors_ 2019, _19_, 4610 16 of 22 ( a ) ( b ) ( c ) ( d ) ( e ) ( f ) Figure 8. Original and output sRGB characterized images: ( a, c, e ) Sigma SD15; ( b, d, f ) Fujifilm IS PRO; ( a, b ) Original; ( c, d ) GP; ( e, f ) Second-order polynomial model. _3.3._ ∆ _Eab_ <sup>_∗_</sup> <sup>_Mapping Images_</sup> To verify the colorimetric quality achieved using both the GP and the polynomial regression model, we mapped the ∆ _Eab_ <sup>_∗_</sup> <sup>between</sup> <sup>the</sup> <sup>two</sup> <sup>characterized</sup> <sup>sRGB</sup> <sup>images</sup> <sup>obtained</sup> <sup>(Figure</sup> <sup>9).</sup> The predominant green color (∆ _Eab_ <sup>_∗_</sup> <sup>_<_</sup> <sup>2 units) observed in the mapping images shows that the results</sup> The predominant green color (∆ _Eab_ <sup>_∗_</sup> <sup>_<_</sup> <sup>2 units) observed in the mapping images shows that the results</sup> obtained are very satisfactory regardless the model applied. Again, the best results were obtained for the Fujifilm IS PRO image (Figure 9b). Nevertheless, for common applications, both regression models can be used since they offer successful results. The detail of the color chart shown in Figure 9 displays some patches marked in red, that is, with ∆ _Eab_ <sup>_∗_</sup> <sup>color differences values greater than 4 CIELAB units (JND). The red color is also found on</sup> the edge of the ColorChecker. Indeed, it was on the color chart background support where we found most of the red pixels. It is well known that color depends on the incident lightin; thus, changes in geometry produce local changes of illumination in some parts of the scene. This means that in certain areas the initial homogeneous lighting hypothesis is not fulfilled, and the regression model does not fit well to the input data in shaded areas. This circumstance also reflects the importance of illumination in colorimetry. The detail of the color chart shown in Figure 9 displays some patches marked in red, that is, with ∆ _Eab_ <sup>_∗_</sup> <sup>color differences values greater than 4 CIELAB units (JND). The red color is also found on</sup> _Sensors_ 2019, _19_, 4610 17 of 22 ( a ) ( b ) Figure 9. ∆ _Eab_ <sup>_∗_</sup> <sup>difference mapping images between GP and second-order polynomial characterization</sup> models: ( a ) Sigma SD15; ( b ) Fujifilm IS PRO. _3.4._ _Rock Art Specimen Detail Images_ We also compared the results obtained in two different rock art details present on the scene: the wounded animal detail (right upper corner); and the hunting scene (lower left corner) (Figure 10). For each detail selected from the scene we show the clip of the original image, the output (characterized) image after applying the different regression models, as well as the color difference mappings between both models. In order to facilitate the identification of the specimens, a mask has been applied to the latter image (Figures 11 and 12). ( a ) ( b ) Figure 10. Selected rock art scenes: ( a ) SigmaSD15; ( b ) Fujifilm IS PRO. ( A ) Wounded animal detail. ( B ) Hunting scene. Better results are observed in the images characterized with the Fujifilm IS PRO. The color differences ∆ _Eab_ <sup>_∗_</sup> <sup>obtained for the pigments were under 2 CIELAB units, hence the predominant green</sup> color (Figures 11g and 12g). A limited set of pixels marked in red (∆ _Eab_ <sup>_∗_</sup> <sup>_>_</sup> <sup>4</sup> <sup>CIELAB</sup> <sup>units)</sup> <sup>are</sup> observed in areas where the homogeneous lighting hypothesis is not fulfilled due to geometry changes in the support (Figure 11g). On the other hand, the yellow values (∆ _Eab_ <sup>_∗_</sup> <sup>~ 2–3 units) present in the</sup> Sigma SD15 image can be due to the fact that the GP slightly improves the camera characterization (Figures 11c and 12c). Therefore, it is important to previously make a correct selection of the camera to be used in the characterization process for archaeological research. _Sensors_ 2019, _19_, 4610 18 of 22 ( a ) ( b ) ( c ) ( d ) ( e ) ( f ) ( g ) ( h ) Figure 11. Wounded animal images: ( a - d ) Sigma SD15; ( e - h ) Fujifilm IS PRO; ( a, e ) Original image; ( b, f ) GP characterized image; ( c, g ) ∆ _Eab_ <sup>_∗_</sup> <sup>comparative image; (</sup> <sup>d</sup> <sup>,</sup> <sup>h</sup> <sup>) Second-order characterized image.</sup> ( a ) ( b ) ( c ) ( d ) ( e ) ( f ) ( g ) ( h ) Figure 12. Hunter scene images: ( a - d ) Sigma SD15; ( e - h ) Fujifilm IS PRO; ( a, e ) Original image; ( b, f ) GP characterized image; ( c, g ) ∆ _Eab_ <sup>_∗_</sup> <sup>comparative image; (</sup> <sup>d</sup> <sup>,</sup> <sup>h</sup> <sup>) Second-order characterized image.</sup> It can be seen that the images have been successfully characterized, independently of the regression model used. All details in the characterized images present the same ranges of colors, as well as homogeneous lighting for both cameras (cf. Figure 11b,d,f,h; Figure 12b,d,f,h). 4. Conclusions The use of digital images to support cultural heritage documentation techniques has undergone unprecedented advance in the last decades. However, the original RGB data provided by digital cameras cannot be used for rigorous color measurement and communication. To face the lack of colorimetric rigor of the input RGB data recorded by the sensor, it is necessary to conduct a colorimetric camera characterization; alternatively, color profiles can also be used. In this paper, the experimental assessment of a GP model has been carried out, and compared with a common second-order polynomial model. Although both regression models yielded good results, the use of the GP provides an improvement in colorimetric terms and fits better to the original raw RGB data. The lowest CIE XYZ residual values achieved for the adjustment and ∆ _Eab_ <sup>_∗_</sup> <sup>color differences</sup> supports the use of a GP as a proper model for characterizing digital cameras. However, for practical _Sensors_ 2019, _19_, 4610 19 of 22 purposes, the final sRGB characterized images derived from both the GP and the second-order polynomial model can be used with success in cultural heritage documentation and preservation tasks. Additionally, the GP regression model has been tested on two SLR digital cameras with different built-in sensors to analyze the performance of the model in terms of pixel variability. The noise errors achieved show that similar results were obtained regardless the regression model used. However, the results also reveal that the induced noise highly depends on the camera sensor, which is clearly significant in the Foveon <sup>_⃝_</sup> <sup>R</sup> X3 but not in the Super CCD. Thus, the correct choice of the digital camera is a key factor to be taken into consideration in the camera characterization procedure. It is observed that the camera characterization procedure allows clear identification of the different pigments used in the scene, a proper separation from the support, the achievement of more accurate digital tracings, and accurate color measurement for monitoring aging effects on pigments. This methodology proves to be highly applicable not only in cultural heritage documentation tasks, but in any scientific and industrial discipline where a correct registration of the color is required. Author Contributions: Conceptualization, A.M.-T.; Formal analysis, A.M.-T.; Funding acquisition, J.L.L.; Methodology, A.M.-T. and G.R.-M.; Software, A.M.-T.; Supervision, Á.M.-M. and J.L.L.; Writing—original draft, A.M.-T. and G.R.-M.; Writing—review & editing, Á.M.-M. and J.L.L. Funding: This research is partly funded by the Research and Development Aid Program PAID-01-16 of the Universitat Politècnica de València, through FPI-UPV-2016 Sub 1 grant. Acknowledgments: The authors would like to thank the Dirección General de Cultura y Patrimonio de la Conselleria D’Educació, Insvestigació, Cultura i Esport de la Generalitat Valenciana, the authorization to carry out the 3D documentation in the Cova dels Cavalls site in Tírig (Castelló, Spain). Conflicts of Interest: The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results. Abbreviations The following abbreviations are used in this manuscript: CIE Commission Internationale de l’Éclairage GP Gaussian process LOOCV Leave-one-out cross-validation MCMC Markov chain Monte Carlo Res Fitted CIE XYZ residuals RL CIE XYZ LOOCV residuals SLR Single Lens Reflex References 1. Iturbe, A.; Cachero, R.; Cañal, D.; Martos, A. Virtual digitization of caves with parietal Paleolithic art from Bizkaia. Scientific analysis and dissemination through new visualization techniques. _Virtual Archaeol._ _Rev._ 2018, _9_, 57–65. [[CrossRef]](http://dx.doi.org/10.4995/var.2018.7579) 2. Ruiz, J.F.; Pereira, J. The colors of rock art. Analysis of color recording and communication systems in rock art research. _J. Archaeol._ _Sci._ 2014, _50_, 338–349. [[CrossRef]](http://dx.doi.org/10.1016/j.jas.2014.06.023) 3. Boochs, F.; Bentkowska-Kafel, A.; Degrigny, C.; Karaszewski, M.; Karmacharya, A.; Kato, Z.; Picollo, M.; Sitnik, R.; Trémeau, A.; Tsiafaki, D.; et al. Colour and Space in Cultural Heritage: Key Questions in 3D Optical Documentation of Material Culture for Conservation, Study and Preservation. _Int._ _J. Herit._ _Digit._ _Era_ 2014, _3_, 11–24. 4. Gaiani, M.; Fabrizio,I.A.; Ballabeni, A.; Remondino, F. Securing Color Fidelity in 3D Architectural Heritage Scenarios. _Sensors_ 2017, _17_, 2437–2461. [[CrossRef] [PubMed]](http://dx.doi.org/10.3390/s17112437) 5. González-Aguilera, D.; Muñoz-Nieto, A.; Gómez-Lahoz, J.; Herrero-Pascual, J.; Gutierrez-Alonso, G. 3D Digital Surveying and Modelling of Cave Geometry: Application to Paleolithic Rock Art. _Sensors_ 2009, _9_, 1108–1127. [[CrossRef]](http://dx.doi.org/10.3390/s90201108) _Sensors_ 2019, _19_, 4610 20 of 22 6. Robert, E.; Petrognani, S.; Lesvignes, E. Applications of digital photography in the study of Paleolithic cave art. _J. Archaeol._ _Sci._ _Rep._ 2016, _10_, 847–858. [[CrossRef]](http://dx.doi.org/10.1016/j.jasrep.2016.07.026) 7. Fernández-Lozano, J.; Gutiérrez-Alonso, G.; Ruiz-Tejada, M.Á.; Criado-Valdés, M. 3D digital documentation and image enhancement integration into schematic rock art analysis and preservation: The Castrocontrigo Neolithic rock art (NW Spain). _J. Cult._ _Herit._ 2017, _26_, 160–166. [[CrossRef]](http://dx.doi.org/10.1016/j.culher.2017.01.008) 8. López-Menchero, V.M.; Marchante, Á.; Vincent, M.; Cárdenas, Á.J.; Onrubia, J. Combined use of digital nightlight photography and photogrammetry in the process of petroglyphs documentation: The case of Alcázar de San Juan (Ciudad Real, Spain). _Virtual Archaeol._ _Rev._ 2017, _8_, 64–74. [[CrossRef]](http://dx.doi.org/10.4995/var.2017.6820) 9. Hong, G.; Luo, M.R.; Rhodes, P.A. A study of digital camera colorimetric characterization based on polynomial modeling. _Color Res._ _Appl._ 2001, _26_, 76–84. [[CrossRef]](http://dx.doi.org/10.1002/1520-6378%0x28200102%0x2926:1<76::AID-COL8>3.0.CO;2-3) 10. Westland, S.; Ripamonti, C.; Cheung, V. Characterisation of Cameras. In _Computational Colour Science Using_ _MATLAB⃝_ <sup>R</sup>, 2nd ed.; John Wiley & Sons, Inc.: Chichester, UK, 2012; pp. 143–157. 11. Hung, P. Colorimetric calibration in electronic imaging devices using a look-up-table model and interpolations. _J. Electron._ _Imaging_ 1993, _1_, 53–61. [[CrossRef]](http://dx.doi.org/10.1117/12.132391) 12. Cheung, V.; Westland, S. Color Camera Characterisation Using Artificial Neural Networks. In Proceedings of the Tenth Color Imaging Conference: Color Science and Engineering Systems, Technologies, Applications, Scottsdale, AZ, USA, 12 November 2002; Volume 1, pp. 117–120. 13. Vrhel, M.J.; Trussell, H.J. Color correction using principal components. _Color Res._ _Appl._ 1992, _17_, 328–338. [[CrossRef]](http://dx.doi.org/10.1002/col.5080170507) 14. Bianco, S.; Gasparini, F.; Russo, A.; Schettini, R. A New Method for RGB to XYZ Transformation Based on Pattern Search Optimization. _IEEE Trans._ _Consum._ _Electron._ 2007, _53_, 1020–1028. [[CrossRef]](http://dx.doi.org/10.1109/TCE.2007.4341581) 15. Yoon, C.R.; Cho, M.S. Colorimetric characterization for digital camera by using multiple regression. In Proceedings of the IEEE Region 10 Conference, TENCON 99, ‘Multimedia Technology for Asia-Pacific Information Infrastructure’ (Cat. No.99CH37030), Cheju Island, Korea, 5–17 September 1999; Volume 1, pp. 585–588. 16. Finlayson, G.; Mackiewicz, M.; Hurlbert, A. Color Correction Using Root-Polynomial Regression. _IEEE Trans._ _Image Process._ 2015, _24_, 1460–1470. [[CrossRef] [PubMed]](http://dx.doi.org/10.1109/TIP.2015.2405336) 17. Connah, D.; Westland, S.; Thomson, M. Recovering spectral information using digital camera systems. _Color. Technol._ 2001, _117_, 309–312. [[CrossRef]](http://dx.doi.org/10.1111/j.1478-4408.2001.tb00080.x) 18. Liang, J.; Wan, W. Optimized method for spectral reflectance reconstruction from camera responses. _Opt. Express_ 2017, _25_, 28273–28287. [[CrossRef]](http://dx.doi.org/10.1364/OE.25.028273) 19. Heikkinen, V. Spectral Reflectance Estimation Using Gaussian Processes and Combination Kernels. _IEEE Trans._ _Image Process._ 2018, _27_, 3358–3373. [[CrossRef]](http://dx.doi.org/10.1109/TIP.2018.2820839) 20. Bianco, S.; Schettini, R.; Vanneschi, L. Empirical modeling for colorimetric characterization of digital cameras. In Proceedings of the 2009 16th IEEE International Conference on Image Processing (ICIP), Cairo, Egypt, 7–10 November 2009; Volume 1, pp. 3469–3472. 21. Cheung, V.; Westland, S.; Connah, D.; Ripamonti, C. A comparative study of the characterisation of color cameras by means of neural networks and polynomial transforms. _Color._ _Technol._ 2004, _120_, 19–25. [[CrossRef]](http://dx.doi.org/10.1111/j.1478-4408.2004.tb00201.x) 22. Molada-Tebar, A.; Lerma, J.L.; Marqués-Mateu, Á. Camera characterization for improving color archaeological documentation. _Color Res._ _Appl._ 2018, _43_, 47–57. [[CrossRef]](http://dx.doi.org/10.1002/col.22152) 23. Bishop, C.M. _Pattern Recognition and Machine Learning_ ; Springer: Berlin/Heidelberg, Germany, 2013. 24. Bernardo, J.; Berger, J.; Dawid, A.; Smith, A. Regression and classification using Gaussian process priors. _Bayesian Stat._ 1998, _6_, 475–501. 25. Rasmussen, C.E.; Williams, C.K.I. _Gaussian Processes for Machine Learning_ ; The MIT Press: Cambridge, MA, USA, 2006. 26. Neal, RM. Monte Carlo implementation of Gaussian process models for Bayesian regression and classification. _arXiv_ 1997, arXiv:physics/9701026. 27. Brooks, S.; Gelman, A.; Jones, G.; Meng, X. _Handbook of Markov Chain Monte Carlo_ ; CRC Press: Boca Raton, FL, USA, 2011. 28. Durmus, A.; Moulines, E.; Pereyra, M. Efficient Bayesian computation by proximal Markov chain Monte Carlo: When Langevin meets Moreau. _SIAM J. Imaging Sci._ 2018, _11_, 473–506. [[CrossRef]](http://dx.doi.org/10.1137/16M1108340) 29. Green, P.J.; Silverman, B.W. _Nonparametric_ _Regression_ _and_ _Generalized_ _Linear_ _Models:_ _A_ _Roughness_ _Penalty_ _Approach_ ; CRC Press: Boca Raton, FL, USA, 1993. _Sensors_ 2019, _19_, 4610 21 of 22 30. Ruppert, D.; Wand, M.; Carroll, R.; Raymond J. Semiparametric regression during 2003–2007. _Electron._ _J. Stat._ 2009, _3_, 1193–1256. [[CrossRef] [PubMed]](http://dx.doi.org/10.1214/09-EJS525) 31. Unesco. Rock Art of the Mediterranean Basin on the Iberian Peninsula. Available online: [http://whc.unesco.](http://whc.unesco.org/en/list/874) [org/en/list/874 (accessed on 10 June 2019).](http://whc.unesco.org/en/list/874) 32. Sigma Corporation. Direct Image Sensor Sigma SD15. Available online: [http://www.sigma-sd.com/SD15/](http://www.sigma-sd.com/SD15/technology-colorsensor.html) [technology-colorsensor.html (accessed on 10 June 2019).](http://www.sigma-sd.com/SD15/technology-colorsensor.html) 33. Ramanath, R.; Snyder, W.E.; Yoo,Y.; Drew, M.S. Color image processing pipeline. _IEEE Signal Process._ _Mag._ 2005, _22_, 34–43. [[CrossRef]](http://dx.doi.org/10.1109/MSP.2005.1407713) 34. Molada-Tebar, A.; Lerma, J.L; Marqués-Mateu, Á. Software development for colorimetric and spectral data processing: PyColourimetry. In Proceedings of the 1st Congress in Geomatics Engineering, Valencia, Spain, 5–6 July 2017; Volume 1, pp. 48–53. 35. CIE. _Colorimetry_ ; Commission Internationale de l’Èclairage: Vienna, Austria, 2004. 36. IEC. _IEC/4WD 61966-2-1:_ _Colour Measurement and Management in Multimedia Systems and Equipment—Part 2-1:_ _Default RGB Colour Space—sRGB_ ; International Electrotechnical Commission: Geneva, Switzerland, 1998. 37. Martinez-Verdu, F.; Pujol, J.; Vilaseca, M.; Capilla, P. Characterization of a digital camera as an absolute tristimulus colorimeter. _Proc._ _SPIE_ 2003, _5008_, 197. 38. Gelman, A.; Carlin, J.B.; Stern, H.S.; Dunson, D.B.; Vehtari, A. _Bayesian Data Analysis_, 3rd ed.; CRC Press: Boca Raton, FL, USA, 2013. 39. Stone, M. Cross-validatory choice and assessment of statistical predictions. _J. R. Stat._ _Soc._ _Ser._ _B Methodol._ 1974, _2_, 111–147. [[CrossRef]](http://dx.doi.org/10.1111/j.2517-6161.1974.tb00994.x) 40. Vazquez-Corral, J.; Connah, D.; Bertalmío, M. Camera sensor response, Color characterization, Perceptual correction. _Sensors_ 2014, _14_, 23205–23229. [[CrossRef]](http://dx.doi.org/10.3390/s141223205) 41. Xiong, W.; Funt, B.; Shi, L.; Kim, S.S.; Kang, B.H.; Lee, S.D.; Kim, C.Y. Automatic white balancing via gray surface identification. _Color Imaging Conf._ 2007, _1_, 143–146. 42. Li, B.; Xu, D.; Xiong, W.; Feng, S. Illumination-independent descriptors using color moment invariants. _Opt. Eng._ 2009, _48_, 027005. [[CrossRef]](http://dx.doi.org/10.1117/1.3083400) 43. Qian, Y.; Chen, K.; Nikkanen, J.; Kamarainen, J.K. Recurrent Color Constancy. _Proc._ _IEEE_ _Int._ _Conf._ _Comput. Vis._ 2017, _1_, 5459–5467. 44. Gareth, J.; Daniela, W.; Trevor, H.; Rober, T. _An_ _Introduction_ _to_ _Statistical_ _Learning_ _with_ _Applications_ _in_ _R_ ; Springer: New York, NY, USA, 2013. 45. CIE. _Colorimetry—Part 4:_ _CIE 1976 L*a*b* Colour Space_ ; Commission Internationale de l’Èclairage: Vienna, Austria, 2007. 46. Luo, M.R.; Cui, G.; Rigg, B. The development of the CIE 2000 color-difference formula: CIEDE2000. _Color Res. Appl._ 2001, _26_, 340–350. [[CrossRef]](http://dx.doi.org/10.1002/col.1049) 47. Melgosa, M.; Alman, D.H.; Grosman, M.; Gómez-Robledo, L.; Trémeau, A.; Cui, G.; García, P.; Vázquez, D.; Li, C.; Luo, M.R. Practical demonstration of the CIEDE2000 corrections to CIELAB using a small set of sample pairs. _Color Res._ _Appl._ 2013, _38_, 429–436. [[CrossRef]](http://dx.doi.org/10.1002/col.21751) 48. Sharma, G.; Wu, W.; Dalal, E.N. The CIEDE2000 color-difference formula: Implementation notes, supplementary test data, and mathematical observations. _Color Res._ _Appl._ 2005, _30_, 21–30. [[CrossRef]](http://dx.doi.org/10.1002/col.20070) 49. CIE. _Colorimetry—Part 6:_ _CIEDE2000 Colour-Difference Formula_ ; Commission Internationale de l’Èclairage: Vienna, Austria, 2014. 50. Van Dormolen, H. _Metamorfoze Preservation Imaging Guidelines|Image Quality_ ; Version 1.0; Society for Imaging Science and Technology: Springfield, VA, USA, 2012. 51. Lebrun, M.; Buades, A.; Morel, J.M. A nonlocal bayesian image denoising algorithm. _SIAM J. Imaging Sci._ 2013, _6_, 1665–1688. [[CrossRef]](http://dx.doi.org/10.1137/120874989) 52. Colom, M.; Buades, A.; Morel, J.M. Nonparametric noise estimation method for raw images. _JOSA A_ 2014, _31_, 863–871. [[CrossRef]](http://dx.doi.org/10.1364/JOSAA.31.000863) 53. Sur, F.; Grédiac, M. Measuring the noise of digital imaging sensors by stacking raw images affected by vibrations and illumination flickering. _SIAM J. Imaging Sci._ 2015, _8_, 611–643. [[CrossRef]](http://dx.doi.org/10.1137/140977035) 54. Zhang, Y.; Wang, G.; Xu, J. Parameter Estimation of Signal-Dependent Random Noise in CMOS/CCD Image Sensor Based on Numerical Characteristic of Mixed Poisson Noise Samples. _Sensors_ 2018, _18_, 2276–2293. [[CrossRef]](http://dx.doi.org/10.3390/s18072276) _Sensors_ 2019, _19_, 4610 22 of 22 55. Naveed, K.; Ehsan, S.; McDonald-Maier, K.D.; Ur Rehman, N. A Multiscale Denoising Framework Using Detection Theory with Application to Images from CMOS/CCD Sensors. _Sensors_ 2019, _19_, 206–227. [[CrossRef]](http://dx.doi.org/10.3390/s19010206) 56. Riutort-Mayol, G.; Marqués-Mateu, Á.; Seguí, A.E.; Lerma, J.L. Grey level and noise evaluation of a Foveon X3 image sensor: A statistical and experimental approach. _Sensors_ 2012, _12_, 10339–10368. [[CrossRef]](http://dx.doi.org/10.3390/s120810339) 57. Marqués-Mateu, Á.; Lerma, J.L.; Riutort-Mayol, G. Statistical grey level and noise evaluation of Foveon X3 and CFA image sensors. _Opt._ _Laser Technol._ 2013, _48_, 1–15. [[CrossRef]](http://dx.doi.org/10.1016/j.optlastec.2012.09.034) 58. Chou, Y.; Luo, M.R.; Li, C.; Cheung, V.; Lee, S. Methods for designing characterisation targets for digital cameras. _Color._ _Technol._ 2013, _129_, 203–213. [[CrossRef]](http://dx.doi.org/10.1111/cote.12022) 59. Shen, H.; Cai, P.; Shao, S.; Xin, J.H. Reflectance reconstruction for multispectral imaging by adaptive Wiener estimation. _Opt._ _Express_ 2007, _15_, 15545–15554. [[CrossRef] [PubMed]](http://dx.doi.org/10.1364/OE.15.015545) 60. Molada-Tebar, A.; Marqués-Mateu, Á.; Lerma, J.L. Camera Characterisation Based on Skin-Tone Colours for Rock Art Recording. _Proceedings_ 2019, _19_, 12. [[CrossRef]](http://dx.doi.org/10.3390/proceedings2019019012) 61. Yamakabe, R.; Monno, Y.; Tanaka, M.; Okutomi, M. Tunable color correction between linear and polynomial models for noisy images. In Proceedings of the IEEE International Conference on Image Processing (ICIP), Beijing, China, 17–20 September 2017; pp. 3125–3129. _⃝_ c 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution [(CC BY) license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/.)

섹션 본문 64문단 · 37,627자

(제목 없음)

1In this paper, we propose a novel approach to undertake the colorimetric camera characterization procedure based on a Gaussian process (GP). GPs are powerful and flexible nonparametric models for multivariate nonlinear functions. To validate the GP model, we compare the results achieved with a second-order polynomial model, which is the most widely used regression model for characterization purposes. We applied the methodology on a set of raw images of rock art scenes collected with two different Single Lens Reflex (SLR) cameras. A leave-one-out cross-validation (LOOCV) procedure was used to assess the predictive performance of the models in terms of CIE XYZ residuals and ∆E * ab color differences. Values of less than 3 CIELAB units were achieved for ∆E * ab . The output sRGB characterized images show that both regression models are suitable for practical applications in cultural heritage documentation. However, the results show that colorimetric characterization based on the Gaussian process provides significantly better results, with lower values for residuals and ∆E * ab . We also analyzed the induced noise into the output image after applying the camera characterization. As the noise depends on the specific camera, proper camera selection is essential for the photogrammetric work.

Introduction

2Accurate recording of color is one of the fundamental tasks in many scientific disciplines, such as chemistry, industry, medicine, or geosciences to name just a few. Color measurement is a crucial aspect in archaeology and specifically in rock art documentation [1,2]. The correct measurement of color allows researchers to study, diagnose, and describe rock art specimens and detect chromatic changes or alterations over time. High-precision metric models together with reliable color information data sets provide essential information in modern conservation and preservation works.

3The appropriate description of color is not a trivial issue in cultural heritage documentation [3,4]. Color is a matter of perception, which largely depends on the subjectivity of the observer. Therefore, correct color registration requires objective colorimetric measurement described in rigorous color spaces. Usually, color spaces defined by the CIE are used as the standard reference framework for colorimetric measurement and management.

4To avoid damage into the pigment, direct contact measurements with colorimeters or spectrophotometers on painted rock art panels are not allowed. Instead, indirect and noninvasive methods for color determination are required. Thus, the use of digitization techniques with conventional digital cameras to support rock art documentation is becoming more and more frequent [5][6][7][8].

5The color information obtained from digital images can be easily captured, stored, and processed. The drawback of such color information lays on the response recorded by the sensor, which is not strictly colorimetric. The RGB responses do not satisfy the Luther-Ives condition so that RGB data are not a linear combination of CIE XYZ coordinates [9]. If the values recorded in the RGB channels were proportional to the input energy, a simple linear relationship between the RGB data acquired by the digital camera and the CIE XYZ tristimulus values would exist. However, in general, the spectral sensitivities of the three RGB channels are not linear combinations of the color-matching functions [10]. The signals generated by digital cameras are indeed referred to as "device dependent". Thus, a transformation to convert the input RGB data into device-independent color spaces is necessary.

6A widely accepted approach to establish the mathematical relationships between the original RGB data and well-defined independent color spaces is the procedure of digital camera characterization [10]. Different techniques are used for colorimetric camera characterization. Numerous papers have been written regarding common techniques, such as polynomial transformation with least-squares regressions [9,10], interpolation from look-up tables [11], artificial neural networks [12], and principal component analysis [13]. Further studies have focused on optimizing characterization, including the use of pattern search optimization [14], multiple regression [15], root-polynomial regression [16], or spectral reflectance reconstruction [17][18][19].

7The colorimetric characterization of digital cameras based on polynomial models is an appropriate starting point; they are widely accepted, mathematically simpler and require smaller training sets and less computing time [20,21]. Previous experiments using second-order polynomials applied in rock art paintings gave also good results [22]. However, they tend to be rigid models and suffer from overestimation or underestimation when many or few data are provided. Furthermore, it is known the lack of reliable generalization of predictions in polynomial models, especially when extrapolating or in the case of modeling wiggly functions [23]. Therefore, it is desirable to improve the results by means of flexible, robust and more accurate models.

8In this work, we introduce a novel approach for documenting rock art paintings based on a Gaussian process (GP) model. GPs are natural, flexible nonparametric models for N-dimensional functions, with multivariate predictors (input variables) in each dimension [24,25]. The defining property of a GP model is that any finite set of values is jointly distributed as a multivariate Gaussian function. A GP is completely defined by its mean and covariance function. The covariance function is the crucial ingredient in a Gaussian process as it encodes correlation structure which characterizes the relationships between function values at different inputs. GP allows not only nonlinear effects and handling implicit interactions between covariates, but also improves generalization of function values for both interpolation and extrapolation purposes. Due to their generality and flexibility, GPs are of broad interest across machine learning and statistics [25,26].

9GP models are formulated and estimated within a Bayesian framework, and all inference is based on the multivariate posterior distribution. Computing the posterior distribution is often difficult, and for this reason, different computation approaches can be used. The Markov chain Monte Carlo (MCMC) is a sampling method that provides a sample of the joint posterior distribution of the parameters [27,28].

10The GP model results were compared to the common approach based on polynomial regression models. The main advantage of nonparametric over parametric models is their flexibility [29,30]. In a parametric framework, the shape of the functional relationship is a prespecified, either linear or nonlinear, function, limiting the flexibility of the modeling. In a nonparametric framework, the shape of the functional relationship is completely determined by the data, allowing for a higher degree of adaptability.

11The goodness of fit and predictive performance of the models are assessed by analyzing the adjustment residuals and the leave-one-out cross-validation (LOOCV) residuals. The quality of the characterized image is also evaluated in terms of colorimetric accuracy by means of color differences among observed and fitted colors using the CIE framework. In addition, we evaluate the induced noise into the output image after the characterization which is recognized as a drawback for some image applications such as image matching or pattern recognition. The induced noise is evaluated by computing and comparing the coefficients of variation of digital values between the original and output images.

Case Study: Cova dels Cavalls

12The working area is a rock art scene located in Shelter II of the Cova dels Cavalls site in the county of Tirig, province of Castelló (Spain). This cave is part of one of the most singular rock art sites of the Mediterranean Basin in the Iberian Peninsula, which is listed by UNESCO as a World Heritage since 1998 [31] .

13The images were taken using two different SLR digital cameras, a Sigma SD15 and a Fujifilm IS PRO. The images contain the hunting scene located in the central part of this emblematic archaeological site. Parameters such as focal, exposure time, aperture, and ISO were controlled during the photographic sessions for both cameras. Photographs were taken in the raw format under homogeneous illumination conditions.

14The main difference between the Fujifilm IS PRO and the Sigma SD15 cameras is their integrated sensors. The Fujifilm incorporates a 12 megapixels Super CCD imaging sensor, with resolution of 4256 × 2848 pixels and a color filter array (CFA) with a Bayer pattern. The use of CFA implies that the color registered in every individual pixel is not acquired directly but as a result of interpolation between channels. On the other hand, the Sigma carries a three-layer CMOS Foveon R X3 sensor of 2640 × 1760 pixels, which makes it a true trichromatic digital camera [32]. The main advantage of this sensor is its ability to capture color without any interpolation.

Image-Based Camera Characterization Methodology

15The output RGB digital values registered by the camera depend on three main factors: the sensor architecture, the lighting conditions, and the object being imaged. Even assuming the same object and lighting conditions, other factors can still produce different RGB responses within and across scenes. Some elements such as the internal color filters or user settings (exposure time, aperture, white balance, and so on) can modify the output digital values. As a result, the original RGB data registered by the sensor cannot be used rigorously for the quantitative determination of color, and native RGB camera color spaces are said to be device dependent. A way to transform the signal captured by the camera sensor into a physicaly-based, device-independent color space is by means of camera characterization (See workflow in Figure 1).

16To carry out the characterization, various training and test datasets are required. An important aspect on the camera characterization process is the establishment of the working color spaces. Some of the most common color spaces used are the input RGB data and the output tristimulus coordinates [10]. In the preliminary stages of the study four different transformations, between color spaces were tested, including RGB-CIE XYZ, RGB-CIELAB, LMS-CIE XYZ, and LMS-CIELAB. The transformation that worked the best was the RGB-CIE XYZ, whose results are reported in the rest of the paper.

17On the other hand, the digital RGB values are available after a complex process driven by the built-in software and electronics of the camera [33]. Usually, a set of preprocessing operations, e.g., demosaicing, white balance, gamut mapping, color enhancement, or compression, are applied automatically to the raw image ( Figure 2). It is thus preferable to work with raw data versus RGB processed or compressed image files. The raw RGB training and test sample data were extracted from the images using our software pyColourimetry which was developed in previous research. This software was written in the Python programming language following the CIE recommendations. It allows raw RGB data extraction from conventional camera formats and implements other colorimetric functions such as transformation among color spaces, color difference calculation, or spectral data treatment [34].

18Also, the data acquisition includes the direct measurement of the tristimulus values of the patches present in the color chart and the raw RGB data extraction from the digital image. Thus, a color chart has to be included as a colorimetric reference in the photographic shot to carry out the camera characterization. For this experiment, we used an X-Rite ColorChecker SG Digital Color Chart as a color standard. This chart is routinely used in digital photography for color calibration. It consists of an array of 140 color patches. The number of patches is supposedly enough to cover the color domain present in the scene as well as to provide training and test data sets to analyze the results after the camera characterization.

19CIE XYZ values for the ColorChecker patches have to be known prior to undertake the camera characterization. An accepted option is to use those tristimulus values provided by the manufacturer. Nevertheless, it is highly recommended to carry out a new measurement, preferably by means of a colorimeter or spectrophotometer, using the setup of the specific experiment. The spectral reflectance data were acquired using the spectrophotometer Konica Minolta CM-600d, following CIE recommendations (2 o standard observer under D65 illuminant). CIE XYZ coordinates can be obtained by transforming the spectral data using well-known CIE formulae [35].

20To visualize the tristimulus coordinates, it is necessary to perform a final transformation of the CIE XYZ values into the sRGB color space, which is compatible with most digital devices. This transformation is carried out based on the technical recommendations published by the International Electrotechnical Commission [36]. Thus, the final outcome of the characterization consists of an sRGB output image for each regression model.

21Once the digital camera is colorimetrically characterized, it can be used for the rigorous measurement of color simulating a colorimeter [37]. Using a characterized camera, we can obtain accurate color information over complete scenes, which is a very important requirement to properly analyze rock art. The use of conventional cameras for color measurement allows researchers to take pictures with low-cost recording devices, suitable for carrying out heritage documentation tasks using noninvasive methodologies [22].

Gaussian Processes for Camera Characterization

22The main aim of camera characterization is to find the mapping function between the RGB color values and the CIE XYZ tristimulus coordinates:

23Commonly, this multivariate mapping function is divided into independent functions for each each single XYZ tristimulus value. In this paper, we propose a Gaussian process (GP) to estimate these functions, with different model parameters, θ 1 , θ 2 , and θ 3 , for each mapping function:

. Gaussian Process Model

24A GP is a stochastic process which defines the distribution over a collection of random variables [24,25]. The defining property of a GP is that any finite set of random variables is jointly distributed as a multivariate normal distribution. A GP is completely characterized by its mean and covariance functions that control the a priori behavior of the function. GP can be used as prior probability distributions for latent functions in generalized linear models [38]. However, in this paper, we focus on GP in linear models (a normal outcome), as we can assume that the CIE XYZ color coordinates are normally distributed.

25A GP for a normal outcome y = {y 1 , y 2 , . . . , y n ∈ IR} ∈ IR n , paired with a matrix of D inputs variables (predictors) X = {x 1 , x 2 , . . . , x 3 ∈ IR n } ∈ IR n×D , consists of defining a multivariate Gaussian distribution over y conditioned on X:

26where µ(X) is a n-vector, K(X|θ) is an n × n covariance matrix, σ 2 is the noise variance, and I the n × n diagonal identity matrix. The mean function µ : X ∈ IR n×D → IR n can be anything, although it is usually recommended to be a linear model or even zero. The covariance function K|θ : X ∈ IR n×D → IR n×n must be a positive semidefinite matrix [25,26]. In this work, we use the square exponential covariance function, which is the most commonly used function of the Matérn class of isotropic covariance functions [25]. The squared exponential covariance function for two observed points i and j (i, j = 1, . . . , n) takes the form

27where θ = {α, }; α is the marginal variance parameter, which controls the overall scale or magnitude of the range of values of the GP; and = { d } D d=1 are the lengthscale parameters, which control the smoothness of the function in the direction of the d-predictor, so that the larger the lengthscale the smoother the function.

Bayesian Inference

28Bayesian inference is based on the joint posterior distribution p(θ, σ 2 |y, X) of parameters given the data, which is proportional to the product of the likelihood and prior distributions,

29In the previous equation,

30is the likelihood of the model, where the mean function µ(X) has been set to zero for the sake of simplicity, and

31are the prior distributions of the parameters of the model. These correspond to weakly informative prior distributions based on prior knowledge about the magnitude of the parameters. Predictive inference for new function valuesỹ for a new sequence of input valuesX can be computed by integrating over the joint posterior distribution p(ỹ|y) = p(ỹ|θ, σ 2 ,X)p(θ, σ 2 |y, X)dθdσ 2 (6) To estimate both the parameter posterior distribution and the posterior predictive distribution for this model, simulation methods and/or distributional approximations methods [38] must be used. Simulation methods based on MCMC [27] are general sampling methods to obtain samples from the joint posterior distribution. For quick inferences and large data sets, where iterative simulation algorithms are too slow, modal and distributional approximation methods can be more efficient and approximate alternatives.

Second-Order Polynomial MOdel

32This is the most extended model in practical camera characterization. The N-dimensional collections of random observations X, Y, and Z are the CIE color variables, where X i , Y i , and Z i represent the color coordinates of the ith order observation i (i = 1, · · · , N). Each X, Y, and Z N-dimensional variable is considered to follow a normal distribution depending on an underlying second-order polynomial function f and noise variance σ 2 ,

33where I is the N × N identity matrix. The latent second-order polynomials functions f x , f y , and f z take the form

34where the vectors a = a 1 , . . . , a 9 , b = b 1 , . . . , b 9 and c = c 1 , . . . , c 9 represent the polynomial coefficients, and R, G, and B are the N-dimensional variables in the input RGB space. The likelihood functions of the variables X, Y and Z (given the coefficients a, b, c), the variance parameters σ 2 = σ 2

35x , σ 2 y , σ 2 z , and the variables R, G and B, take the form

36where the subscript i represents the ith observed value.

Bayesian Inference

37The joint posterior distributions are proportional to the product of the likelihood and prior distributions:

38We set vague prior distributions p(a) = N (a|0, 1000), p(b) = N (b|0, 1000), p(c) = N (c|0, 1000), and p(σ) = N + (σ|0, 1) for the hyperparameters a, b, c, and σ, respectively, based on prior knowledge about the magnitude of the parameters.

39Predictive inference for new function valuesX,Ỹ, andZ for a new sequence of input valuesR,G, andB can be computed by integrating over the joint posterior distributions

40Simulation methods based on MCMC are used for estimating both the parameter posterior distribution and the posterior predictive distribution of these models.

Model Checking and Comparison

41For model assessment, common checking procedures of normality, magnitude and tendencies on the fitted and predicted residuals are used. Fitted residuals can be useful for identifying outliers or misspecified models and give us the goodness of the fit for the sampling patches. Furthermore, the performance of each model was assessed using the LOOCV approach [39]. The LOOCV procedure has been previously used in color science multiple times [40][41][42][43], although its origins can be traced back to early practical statistics methods [39] and is routinely used in modern data science applications [44].

42In our study, the LOOCV consists of setting aside an individual patch and calculating the prediction model. Then, the predicted value is compared to its observed value which gives a measure of the model predictive accuracy. This allows obtaining an average of the predictive accuracy for unobserved patches as well as individual quality indicators for each color patch.

43In addition to the residual analysis, it is required the assessment of the models using colorimetry metrics [1]. Also, a LOOCV procedure was conducted to assess the predictive performance in terms of color differences. In classical colorimetry, color difference metrics are determined using formulas based on the CIELAB color space, such as ∆E * ab , also known as the CIE76 color difference [35]. The CIE XYZ color space is not uniform, that is, equal distances in this space do not represent equally perceptible differences between color stimuli. Contrarily, CIELAB coordinates are nonlinear functions of CIE XYZ, and more perceptually uniform than the CIE XYZ color space [35,45]. The ∆E * ab between the theoretical tristimulus coordinates against the predicted values are computed, which gives a measure of the model adjustment in a well-defined color metric.

44Other modern color difference formulas which take ∆E * ab as a reference have been developed by the CIE. An example is the CIEDE2000 formula, which includes corrections for variations in color difference perception due to lightness, chroma, hue, and chroma-hue interaction [46][47][48]. It must be indicated that CIEDE2000 was designed for specialized industry applications [49]. To use the CIEDE2000 formula, a number of specific requirements have to be fulfilled. Some of these requirements are the sample size (greater than 4 degrees), sample-sensor separation (contact), background field (uniform, neutral gray), and sample homogeneity (textureless). Usually, these conditions cannot be guaranteed in the usual working environments found in rock art documentation. Therefore, it seems more appropriate to use the CIE76 formula herein instead of the CIEDE2000 to determine color differences.

45∆E * ab is calculated as the Euclidean distance between two color stimuli in CIELAB coordinates

46where ∆L * , ∆a * , and ∆b * are the differences between the L * , a * , and b * coordinates of the two color stimuli. Numerous guides seek to quantify the maximum value allowed (tolerance) for an acceptable color difference so that it is imperceptible by human vision. This concept is known as "Just Noticeable Difference" (JND). A good reference is found in the Metamorfoze guideline, which employs the CIE76 color difference formula, and establishes a color accuracy of 4 CIELAB units [50].

Induced Noise Analysis

47The radiometric response of a digital camera is the outcome of a number of factors, such as electromagnetic radiation, sensor electronics, the optical system, and so forth [51][52][53][54][55]. The noise present on a single image is basically composed of two components: the photoresponse noise of every sensor element (pixel) and the spatial nonuniformity or fixed pattern noise of the sensor array [56,57].

48The nonlinear transformation functions in camera characterization models modify the input data which are themselves affected by noise. In the camera characterization, noise is transferred from the original image to the characterized image and transformed in different ways. In this paper, the analysis of noise is carried out by comparing the coefficients of variation in the original and the characterized images. The noise assessment was conducted on four selected patches of the color checker (C7, D7, C8, and D8).

Model Performance Assessment

49For model assessment we processed the CIE XYZ residuals and the ∆E * ab color differences values after the characterization procedure. Table 1 summarizes the fitted CIE XYZ and LOOCV residuals values achieved after the characterization process for the two cameras used in the study. Also, the histograms of the fitted and LOOCV residuals in both images are in Figure 3. Although both methodologies give satisfactory results and fit appropriately to the input RGB data, all summary statistics and histograms clearly show that GP outperforms the second-order polynomial regression model in both images. The standard deviation values, which represent the mean error, as well as the maximum and minimum residuals, are lower using the GP process than the second-order polynomial model. Thus, given the results achieved using the GP, a notable improvement can be observed compared with the common second-order polynomial models, that is, a higher adjustment correlation coefficient and a greater predictive capacity were achieved. An improvement in the predictive capacity (LOOCV residuals) implies a better model generalization, that is, a better capacity for interpolation and extrapolation. This is a key aspect in the characterization procedure, as the output digital image is the result of the application of the model established.

∆E *

50ab Color Differences The ∆E * ab color differences (Equation (10)) obtained between the theoretical and predicted values allowed us to assess the colorimetric quality achieved after the adjustment. The results obtained for the ∆E * ab are shown numerically in the Table 2. Also, they can be consulted graphically in the Figure 4 (for the Sigma SD15) and Figure 5 Under a strict colorimetric criterion, the average and median values for ∆E * ab obtained using both regression models are less than 3 CIELAB units, that is, lower than the JND. However, the ∆E * ab color differences obtained confirm that the adjustment based on the GP model offers better results than the second-order polynomial regression for both cameras. The values achieved for the mean and median ∆E * ab in both images are similar using the second-order polynomial regression model. It is clearly observed that the main improvement is in the maximum ∆E * ab values obtained. Although the average for LOOCV ∆E * ab is slightly lower using the GP, the maximum values for LOOCV ∆E * ab decreases significantly using this model. The maximum values obtained are 17.814 and 13.021 for the Sigma SD15 and the Fujifilm IS PRO image, respectively, using a second-order polynomial regression model, whereas the maximum values for LOOCV ∆E * ab using the GP are~8 CIELAB units (Table 2).

51Moreover, the number of patches with ∆E * ab greater than 4 units (JND) clearly decrease for both images after applying the GP (Figures 4 and 5). Thus, the GP improvement achieved in the adjustment is noticeable in colorimetric terms, reaching lower magnitude residuals (Table 1) and ∆E * ab values (Table 2), which means better model fits and higher predictive characteristics.

Analysis of Color Chart Patches

52The use of the LOOCV procedure in this study is twofold: it allows an overall model checking as well as analyzing patches used in the camera characterization at an individual level. Values for ∆E * ab less than 4 CIELAB units (JND value represented by the red line in the plots in Figures 4 and 5) are achieved for the majority of the patches. Also, it is clearly observed that the Fujifilm IS PRO image gives better results than the Sigma SD15 image, particularly after applying the GP (cf. Figure 5b with Figure 4b). Table 3 displays the percentage of patches with a LOOCV ∆E * ab greater than 4 CIELAB units for the different regression models performed. Once again, the GP model gives slightly better results than the second-order polynomial model, especially for the Fujifilm IS PRO digital camera. (A8, B4, B9, E4, G4, H3, H9, and M3). These patches can be easily identified on the X-rite ColorChecker (Figure 6a) as well as on the CIE chromaticity diagram (Figure 6b). The worst results are found in patches E4, H9, B4, and G4 (blue, green, purple, and red, respectively). Note that patches E4 (blue), G4 (red), and H9 (green) are near the vertices of the triangle that delimits the color gamut, that is the chromatic domain, of the sRGB color space (white line plotted in picture b in Figure 6). Thus, the nature and colorimetric characteristics of the color patches used as training sample set have an effect on the overall accuracy of the model used [58]. The colors represented with the highest ∆E * ab values in these patches correspond to saturated colors that are commonly found in artificial or industrial objects, but not in natural scenes such as those found in archaeological applications. We have to keep in mind that, usually, color charts used as colorimetric reference are designed mainly for industrial processes or photographic applications. Therefore, purple (B4, H3, and M3), blue (E4), green (H9 and B9), and bright red (G4) colors will not likely be present in archaeological scenes. Consequently, these color patches could be removed from the training sample during the characterization process without affecting the global accuraccy.

53Previous research show that a proper selection of the patches, such as the skin tone colors, provides suitable results for camera characterization procedure applied in rock art paintings [59,60]. In Spanish Levantine rock art paintings, it is more frequent to find reddish or black colors (only dark reds in the Cova dels Cavalls) in pigments and skin tone or brown colors in the support. It is clearly observed that these patches work correctly regardless of the regression model used.

Induced Noise Results

54The two cameras used in this study have different built-in sensors. The Sigma SD15 camera incorporates a Foveon R X3 sensor, whereas the Fujifilm IS PRO carries a Super CCD sensor. The values of the variation coefficients were computed and compared between the input RGB image and the output sRGB characterized image for the two mathematical transformations. The pixel variability evaluation was conducted in a reduced group of ColorChecker patches with homogeneous reflectance (C7, D7, C8, and D8). Table 4 shows the variation coefficients for the raw RGB digital values from the original images before the camera characterization (Figure 7a,e). It is informative to contrast these values with the variation coefficients obtained for the CIE XYZ (Table 5) and sRGB transformed data (Table 6) respectively. For a brief overview, Table 7 shows a summary of the variation coefficients obtained.

55Moreover, as the degree of the polynomial model used can affect the results achieved in terms of noise, we included the comparison of the variation coefficients for the linear model as well [61]. Our outcomes show basically the same results in the second-order and linear models, which are still slightly worse than the GP result (cf . Tables 5 and 6). The trend found in the induced noise results, that is, the noise depends on the sensor and therefore it is different for each camera regardless of the mathematical model. The coefficients obtained for the digital values on the original image indicate that the noise generated directly by the Foveon R X3 sensor is greater than noise in the SuperCCD (Table 4). Apparently, the SuperCCD sensor seems to respond better in the raw data collection stage in terms of noise variability.

56Also, the overall results confirm the superior behavior of the SuperCCD when compared with the Foveon R X3 sensor (cf . Tables 5 and 6). Table 7 shows that none of the regression models applied to the Fujifilm IS PRO image increased the original variability coefficients. In fact, the coefficients decrease slightly after applying the GP; with the opposite behavior present in the Foveon R X3 sensor. Both, the CIE XYZ and sRGB coefficients obtained increase significantly in the Foveon R X3 sensor, regardless of the characterization model used. Table 5. Variation coefficients of the output CIE XYZ coordinates. Additionally, Figure 7 displays the noise comparative images as a result of the different color space transforms during the camera characterization. Greater noise is produced by the Foveon R X3 sensor versus the SuperCCD sensor. It is evident that the best results are obtained for the Fujifilm IS PRO camera in terms of noise (cf. Figure 7b-d,f-h). Obviously, the architecture of each sensor is different, as well as its characteristics and operation. Therefore, with regard to image noise, the effect produced by the sensor differs depending on the camera used. It turns out that the digital camera selected for the photographic work is a crucial aspect to be taken into account in archaeological applications.

Output sRGB Characterized Images

57The original raw images were successfully transformed into the same device-independent color space by means of the two regression models applied (Figure 8). Both the GP and the second-order polynomial model gave similar results. Even an experienced observer is unable to perceive differences between the images generated with the two regression models applied for both SLR digital cameras (cf. Figure 8c-f). The JND threshold of 4 CIELAB units is suitable in most practical applications (specifically in this study), and proves that human vision cannot perceive the improvement obtained with the GP (cf. ∆E * ab GP and second-order polynomial mean values in Table 2).

∆E * ab Mapping Images

58To verify the colorimetric quality achieved using both the GP and the polynomial regression model, we mapped the ∆E * ab between the two characterized sRGB images obtained ( Figure 9). The predominant green color (∆E * ab < 2 units) observed in the mapping images shows that the results obtained are very satisfactory regardless the model applied. Again, the best results were obtained for the Fujifilm IS PRO image (Figure 9b). Nevertheless, for common applications, both regression models can be used since they offer successful results.

59The detail of the color chart shown in Figure 9 displays some patches marked in red, that is, with ∆E * ab color differences values greater than 4 CIELAB units (JND). The red color is also found on the edge of the ColorChecker. Indeed, it was on the color chart background support where we found most of the red pixels. It is well known that color depends on the incident lightin; thus, changes in geometry produce local changes of illumination in some parts of the scene. This means that in certain areas the initial homogeneous lighting hypothesis is not fulfilled, and the regression model does not fit well to the input data in shaded areas. This circumstance also reflects the importance of illumination in colorimetry.

Rock Art Specimen Detail Images

60We also compared the results obtained in two different rock art details present on the scene: the wounded animal detail (right upper corner); and the hunting scene (lower left corner) ( Figure 10). For each detail selected from the scene we show the clip of the original image, the output (characterized) image after applying the different regression models, as well as the color difference mappings between both models. In order to facilitate the identification of the specimens, a mask has been applied to the latter image (Figures 11 and 12). Better results are observed in the images characterized with the Fujifilm IS PRO. The color differences ∆E * ab obtained for the pigments were under 2 CIELAB units, hence the predominant green color (Figures 11g and 12g). A limited set of pixels marked in red (∆E * ab > 4 CIELAB units) are observed in areas where the homogeneous lighting hypothesis is not fulfilled due to geometry changes in the support (Figure 11g). On the other hand, the yellow values (∆E * ab~2 -3 units) present in the Sigma SD15 image can be due to the fact that the GP slightly improves the camera characterization (Figures 11c and 12c). Therefore, it is important to previously make a correct selection of the camera to be used in the characterization process for archaeological research. It can be seen that the images have been successfully characterized, independently of the regression model used. All details in the characterized images present the same ranges of colors, as well as homogeneous lighting for both cameras (cf. Figure 11b,d,f,h; Figure 12b,d,f,h).

Conclusions

61The use of digital images to support cultural heritage documentation techniques has undergone unprecedented advance in the last decades. However, the original RGB data provided by digital cameras cannot be used for rigorous color measurement and communication. To face the lack of colorimetric rigor of the input RGB data recorded by the sensor, it is necessary to conduct a colorimetric camera characterization; alternatively, color profiles can also be used.

62In this paper, the experimental assessment of a GP model has been carried out, and compared with a common second-order polynomial model. Although both regression models yielded good results, the use of the GP provides an improvement in colorimetric terms and fits better to the original raw RGB data. The lowest CIE XYZ residual values achieved for the adjustment and ∆E * ab color differences supports the use of a GP as a proper model for characterizing digital cameras. However, for practical purposes, the final sRGB characterized images derived from both the GP and the second-order polynomial model can be used with success in cultural heritage documentation and preservation tasks.

63Additionally, the GP regression model has been tested on two SLR digital cameras with different built-in sensors to analyze the performance of the model in terms of pixel variability. The noise errors achieved show that similar results were obtained regardless the regression model used. However, the results also reveal that the induced noise highly depends on the camera sensor, which is clearly significant in the Foveon R X3 but not in the Super CCD. Thus, the correct choice of the digital camera is a key factor to be taken into consideration in the camera characterization procedure.

64It is observed that the camera characterization procedure allows clear identification of the different pigments used in the scene, a proper separation from the support, the achievement of more accurate digital tracings, and accurate color measurement for monitoring aging effects on pigments. This methodology proves to be highly applicable not only in cultural heritage documentation tasks, but in any scientific and industrial discipline where a correct registration of the color is required.

참고문헌 52건

  1. Colour and Space in Cultural Heritage: Key Questions in 3D Optical Documentation of Material Culture for Conservation, Study and Preservation Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-13695-0_2
  2. Regression and Classification Using Gaussian Process Priors Oxford University Press · 1999 10.1093/oso/9780198504856.003.0021
  3. Handbook of Markov Chain Monte Carlo 2011 10.1201/b10905
  4. Nonparametric noise estimation method for raw images Journal of the Optical Society of America A · Optica Publishing Group · 2014 10.1364/josaa.31.000863
  5. Colorimetric calibration in electronic imaging devices using a look-up-table model and interpolations Journal of Electronic Imaging · SPIE · 1993 10.1117/12.132391
  6. The CIEDE2000 color-difference formula: Implementation notes, supplementary test data, and mathematical observations Color Research & Application · Wiley · 2004 10.1002/col.20070
  7. The colours of rock art. Analysis of colour recording and communication systems in rock art research Journal of Archaeological Science · Elsevier BV · 2014 10.1016/j.jas.2014.06.023
  8. 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
  9. Color correction using principal components Color Research & Application · Wiley · 1992 10.1002/col.5080170507
  10. Semiparametric regression during 2003–2007 Electronic Journal of Statistics · Institute of Mathematical Statistics · 2009 10.1214/09-ejs525
  11. Statistical grey level and noise evaluation of Foveon X3 and CFA image sensors Optics & Laser Technology · Elsevier BV · 2012 10.1016/j.optlastec.2012.09.034
  12. A Nonlocal Bayesian Image Denoising Algorithm SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2013 10.1137/120874989
  13. Recovering spectral information using digital camera systems Coloration Technology · Wiley · 2001 10.1111/j.1478-4408.2001.tb00080.x
  14. Reflectance reconstruction for multispectral imaging by adaptive Wiener estimation Optics Express · Optica Publishing Group · 2007 10.1364/oe.15.015545
  15. Grey Level and Noise Evaluation of a Foveon X3 Image Sensor: A Statistical and Experimental Approach Sensors · Multidisciplinary Digital Publishing Institute · 2012 10.3390/s120810339
  16. Characterization of a digital camera as an absolute tristimulus colorimeter Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2003 10.1117/12.474876
  17. Practical demonstration of the CIEDE2000 corrections to CIELAB using a small set of sample pairs Color Research & Application · Wiley · 2012 10.1002/col.21751
  18. Perceptual Color Characterization of Cameras Sensors · Multidisciplinary Digital Publishing Institute · 2014 10.3390/s141223205
  19. Measuring the Noise of Digital Imaging Sensors by Stacking Raw Images Affected by Vibrations and Illumination Flickering SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2015 10.1137/140977035
  20. Nonparametric Regression and Generalized Linear Models Chapman and Hall/CRC eBooks · Informa · 1993 10.1201/b15710
  21. A New Method for RGB to XYZ Transformation Based on Pattern Search Optimization IEEE Transactions on Consumer Electronics · Institute of Electrical and Electronics Engineers · 2007 10.1109/tce.2007.4341581
  22. Cross-Validatory Choice and Assessment of Statistical Predictions Journal of the Royal Statistical Society Series B (Statistical Methodology) · Oxford University Press · 1974 10.1111/j.2517-6161.1974.tb00994.x
  23. Empirical modeling for colorimetric characterization of digital cameras 2009 10.1109/icip.2009.5413828
  24. Color image processing pipeline IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2005 10.1109/msp.2005.1407713
  25. A comparative study of the characterisation of colour cameras by means of neural networks and polynomial transforms Coloration Technology · Wiley · 2004 10.1111/j.1478-4408.2004.tb00201.x
  26. 3D Digital Surveying and Modelling of Cave Geometry: Application to Paleolithic Rock Art Sensors · Multidisciplinary Digital Publishing Institute · 2009 10.3390/s90201108
  27. Color Correction Using Root-Polynomial Regression IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2405336
  28. The development of the CIE 2000 colour‐difference formula: CIEDE2000 Color Research & Application · Wiley · 2001 10.1002/col.1049
  29. Illumination-independent descriptors using color moment invariants Optical Engineering · SPIE · 2009 10.1117/1.3083400
  30. Methods for designing characterisation targets for digital cameras Coloration Technology · Wiley · 2013 10.1111/cote.12022
  31. Automatic White Balancing via Gray Surface Identification Color and Imaging Conference · 2007 10.2352/cic.2007.15.1.art00027
  32. Applications of digital photography in the study of Paleolithic cave art Journal of Archaeological Science Reports · Elsevier BV · 2016 10.1016/j.jasrep.2016.07.026
  33. Computational Colour Science using MATLAB® 2012 10.1002/9780470710890
  34. Efficient Bayesian Computation by Proximal Markov Chain Monte Carlo: When Langevin Meets Moreau SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2018 10.1137/16m1108340
  35. 3D digital documentation and image enhancement integration into schematic rock art analysis and preservation: The Castrocontrigo Neolithic rock art (NW Spain) Journal of Cultural Heritage · Elsevier BV · 2017 10.1016/j.culher.2017.01.008
  36. Camera characterization for improving color archaeological documentation Color Research & Application · Wiley · 2017 10.1002/col.22152
  37. Uso combinado de la fotografía digital nocturna y de la fotogrametría en los procesos de documentación de petroglifos: el caso de Alcázar de San Juan (Ciudad Real, España) Virtual Archaeology Review · Technical University of Valencia · 2017 10.4995/var.2017.6820
  38. Tunable color correction between linear and polynomial models for noisy images 2022 IEEE International Conference on Image Processing (ICIP) · 2017 10.1109/icip.2017.8296858
  39. Optimized method for spectral reflectance reconstruction from camera responses Optics Express · Optica Publishing Group · 2017 10.1364/oe.25.028273
  40. Securing Color Fidelity in 3D Architectural Heritage Scenarios Sensors · Multidisciplinary Digital Publishing Institute · 2017 10.3390/s17112437
  41. Recurrent Color Constancy 2017 10.1109/iccv.2017.582
  42. Digitalización de cuevas con arte paleolítico parietal de Bizkaia. Análisis científico y divulgación mediante nuevas técnicas de visualización Virtual Archaeology Review · Technical University of Valencia · 2018 10.4995/var.2018.7579
  43. Spectral Reflectance Estimation Using Gaussian Processes and Combination Kernels IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2018 10.1109/tip.2018.2820839
  44. Parameter Estimation of Signal-Dependent Random Noise in CMOS/CCD Image Sensor Based on Numerical Characteristic of Mixed Poisson Noise Samples Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18072276
  45. A Multiscale Denoising Framework Using Detection Theory with Application to Images from CMOS/CCD Sensors Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19010206
  46. Camera Characterisation Based on Skin-Tone Colours for Rock Art Recording 2019 10.3390/proceedings2019019012
  47. A Gaussian Process Model for Color Camera Characterization: Assessment in Outdoor Levantine Rock Art Scenes Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19214610
  48. (제목 없음) Directory of Open access Books (OAPEN Foundation) · 2022 10.7551/mitpress/3206.001.0001
  49. Bayesian Data Analysis Chapman and Hall/CRC eBooks · Informa · 2013 10.1201/b16018
  50. Metamorfoze Preservation Imaging Guidelines, version 1.0 Archiving Conference · 2012 10.2352/issn.2168-3204.2012.9.1.art00041
  51. Color Camera Characterisation Using Artificial Neural Networks Color and Imaging Conference · 2002 10.2352/cic.2002.10.1.art00023
  52. Rock Art of the Mediterranean Basin on the Iberian Peninsula Zenodo (CERN European Organization for Nuclear Research) · European Organization for Nuclear Research · 2024 10.5281/zenodo.10547222