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

SOFTWARE DEVELOPMENT FOR COLOURIMETRIC AND SPECTRAL DATA PROCESSING: PYCOLOURIMETRY

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

기본 정보

저자
  1. Adolfo Molada‐Tebar — Dpto. de Ingeniería Cartográfica Geodesia y Fotogrametría, Universitat Politècnica de València.
  2. José Luis Lerma — Dpto. de Ingeniería Cartográfica Geodesia y Fotogrametría, Universitat Politècnica de València.
  3. Ángel Marqués‐Mateu — Dpto. de Ingeniería Cartográfica Geodesia y Fotogrametría, Universitat Politècnica de València.
DOI
10.4995/cigeo2017.2017.6568
저널
–
발행년도
2017
발행기관
–
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.4995/cigeo2017.2017.6568
토픽
Color Science and Applications
OpenAlex ID
W2767650732

평가 내용

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

초록

Archaeological documentation is a complex process where the technical measurement and specification of colour is a key aspect. In the last years heritage documentation processes have largely benefited from the application of digital recording methods, imagery analysis software and technologies that offers great advantages over the traditional methods. The rigorous processing of colourimetric data requires software packages with specific colourimetric technical characteristics. In this paper we report on our in-house pyColourimetry software that was developed and tested taking into account the recommendations of the Commission Internationale de l'Éclairage (CIE). The objective is to apply a rigorous procedure for the characterisation of cameras based a priori on polynomial models. Most of the digital cameras capture colour information in the well-known RGB format, but the signals generated by the digital camera are device dependent. By means of the characterisation we establish the relationship between device dependent RGB values and the tristimulus coordinates defined by the CIE standard colourimetric observer. Once the camera is characterised, users have the potential to obtain output images in the sRGB space that is independent of the sensor of the camera. pyColourimetry software allows users to control the entire digital image processing and the colourimetric data workflow proposed. We applied the methodology on a set of pictures targeting Levantine rock art motifs in Cova dels Cavalls (Castellón, Spain) which is considered part of a UNESCO World Heritage Site. The outcomes obtained are satisfactory and very promising for proper colour documentation in cultural heritage estudies.http://dx.doi.org/10.4995/CIGeo2017.2017.6568

본문 24,503자

본문 펼치기
# _CIG eo_ _Primer Congreso en_ _Ingeniería Geomática._ _Valencia,_ _5 – 6 de Julio de 2017_ DOI: <u>http://dx.doi.org/10.4995/CIGeo2017.2017.6568</u> ## SOFTWARE DEVELOPMENT FOR COLOURIMETRIC AND SPECTRAL DATA PROCESSING: PYCOLOURIMETRY _DESARROLLO DE SOFTWARE PARA EL TRATAMIENTO DE DATOS COLORIMETRICOS Y ESPECTRALES:_ _PYCOLOURIMETRY_ Adolfo Molada-Tebar <sup>*</sup>, José Luis Lerma, Ángel Marqués-Mateu Department of Cartographic Engineering, Geodesy, and Photogrammetry, Universitat Politècnica de València, 46022 Valencia, Spain. <u>admote@doctor.upv.es;</u> <u>jllerma@cgf.upv.es;</u> <u>amarques@cgf.upv.es</u> Abstract: Archaeological documentation is a complex process where the technical measurement and specification of colour is a key aspect. In the last years heritage documentation processes have largely benefited from the application of digital recording methods, imagery analysis software and technologies that offers great advantages over the traditional methods. The rigorous processing of colourimetric data requires software packages with specific colourimetric technical characteristics. In this paper we report on our in-house pyColourimetry software that was developed and tested taking into account the recommendations of the _Commission Internationale de l'Éclairage_ (CIE). The objective is to apply a rigorous procedure for the characterisation of cameras based a priori on polynomial models. Most of the digital cameras capture colour information in the well-known RGB format, but the signals generated by the digital camera are device dependent. By means of the characterisation we establish the relationship between device dependent RGB values and the tristimulus coordinates defined by the CIE standard colourimetric observer. Once the camera is characterised, users have the potential to obtain output images in the sRGB space that is independent of the sensor of the camera. pyColourimetry software allows users to control the entire digital image processing and the colourimetric data workflow proposed. We applied the methodology on a set of pictures targeting Levantine rock art motifs in Cova dels Cavalls (Castellón, Spain) which is considered part of a UNESCO World Heritage Site. The outcomes obtained are satisfactory and very promising for proper colour documentation in cultural heritage estudies. Key words : Camera characterisation, Rock Art, Colourimetry, CIE Colour spaces, Python Resumen: La documentación del patrimonio arqueológico es un proceso complejo donde la correcta medición del color es un aspecto clave. En los últimos años los procesos de documentación se han beneficiado gracias al uso de imágenes digitales, software de tratamiento de imágenes, así como de otras tecnologías frente a los métodos tradicionales. El procesamiento riguroso de datos colorimétricos requiere paquetes de software con características técnicas específicas. En este artículo presentamos un informe sobre el software pyColourimetry, desarrollado y testado teniendo en cuenta las recomendaciones de la Comisión Internacional de la Iluminación (CIE). Mediante este software el susuario puede caracterizar cámaras digitales a partir de modelos polinomiales. La mayoría de cámaras digitales captan información del color en el conocido sistema RGB. Sin embargo, la señal generada depende del dispositivo. A partir de la caracterización establecemos la relación entre los valores RGB dependientes y las coordenadas independientes CIE triestímulo. Una vez caracterizada la cámara se obtienen imágenes en el espacio sRGB, independiente del sensor empleado. El software pyColourimetry permite a los usuarios controlar todo el procesamiento digital de imágenes y el flujo de trabajo de datos colorimétricos propuesto. Aplicamos la metodología a un conjunto de imágenes que contienen motivos de arte rupestre levantino pertenecientes a la Cova dels Cavalls (Castellón, España), considerada parte del Patrimonio de la Humanidad por la UNESCO. Los resultados obtenidos son satisfactorios y muy prometedores para la correcta documentación del color en estudios de patrimonio cultural. <u>Palabras clave:</u> <u>Caracterización de cámaras, Arte rupestre, Colorimetría, Espacios de color CIE, Python</u> 1. Introduction Colour is a fundamental feature for proper cultural heritage documentation. The correct colour definition allows a more comprehensive graphic definition, a better understanding of the scene, and provides relevant technical information especially for study and preservation work (Ruiz and Pereira 2014). The problem is that colour is a matter of perception. Colour vision - Corresponding Author: Adolfo Molada-Tebar, <u>admote@doctor.upv.es</u> depends on the observer. A rigorous colourimetric technique is necessary to properly support rock art research (Korytkowski and Olejnik-Krugly 2017; Ohta and Robertson 2005). More and more it is becoming frequent to combine classical documentation techniques based on perceptual procedures with rigorous procedures, supported by colourimetric measurements and digital images (Apollonio _et al._ 2014; Palomar-Vazquez _et al._ 2017). This work is licensed under a Creative Commons 4.0 International License (CC BY-NC-ND 4.0) _SOFTWARE DEVELOPMENT FOR COLOURIMETRIC AND SPECTRAL DATA PROCESSING: PYCOLOURIMETRY_ Moreover, given the characteristics of archaeological rock art and the singularity of Levantine rock art in particular, a correct analysis of iron-based pigments is of great importance, where the colour is decisive. Such pigments show spectral properties that allow for their discrimination in the visible wavelengths (Hunt _et al_ . 1971; Clark 1999). A correct calibration of the imaging system, geometrically as well as radiometrically, is important in order to obtain reliable data and analyse the corresponding information. This fact is important for instance while documenting rock art (Sebastián _et al._ 2013). The problem is that RGB signals generated by digital cameras are not colourimetrically sound, specifically, the output RGB values are device-dependent and do not directly correspond to the device independent tristimulus values based on the CIE standard colorimetric observer (CIE 2004). An approach to transform RGB dependent values into a independent colour space (such CIE XYZ or sRGB which is somehow based on CIE XYZ), is the digital camera characterisation by polynomial regression with least squares fitting (Balasubramanian 2003; Westland _et al._ 2012; Malacara 2011). Once the RGB to CIE XYZ transformation equations are obtained, a conventional digital camera could be used for rigorous colour determination as if it were a colourimeter (MartínezVerdú _et al._ 2003). A final transformation from CIE XYZ to sRGB space is still necessary though. As a result, we obtain sRGB images in a well-known physically based colour space which can be rendered in compatible sRGB devices (International Electrotechnical Commission 1998). Software systems with very specific characteristics are required to apply the methodological process exposed. There are different software options for the processing of colourimetric samples and digital image processing. One considerable limitation is that they generally do not allow the user to have absolute control on the methodological process, raw data management or output postprocessing. We have developed our own software for the processing of colourimetric and spectral data, named pyColourimetry, which allows us to achieve a full control of the established methodological process. 2. Software development process 2.1. Main features The computer software pyColourimetry consists of a set of modules (based on the main CIE colourimetric technical recommendations) that allows users to process colourimetric data, obtain the transformation equations for the characterisation of the camera, and apply the equations on the image to yield images in the final sRGB space (Fig. 1). The programming language used was Python, which has become a mature language and has all the features required for scientific computing (Oliphant 2007; Van Rossum and Drake 2010). Python is an interpreted, multiplatform programming language and has a GNU general public license that guarantees end users the freedom to use, study, share and modify the software. Figure 1 : pyColourimetry modules. The main functionalities of each module are listed in Table 1. Table 1 : Functionalities of the pyColourimetry software. _Module_ _Functionality_ serialPort.py Serial port scanning and detection Communication with the CS-100A colourimeter myColour.py Transformation among colour spaces Colour difference transformation Raw data processing linearity.py Computation of p linearity exponents characterisation.py Setting the characterisation parameter gui.py Graphical user interface (GUI) Integration of modules User input Generation of reports Generation of sRGB images Using the serialPort.py module, we can connect the CS100A colourimeter according to the communication specifications of the manufacturer to retrieve colourimetric data. Although there are Python libraries for colorimetric data processing, a module called myColour.py has been implemented to handle the main CIE colour spaces for the 2° standard observer and the D65 illuminant such as CIE XYZ, Yxy, RGB, CIELAB and CIELCH (CIE, 2004). The camera characterisation process is carried out in two steps. First, nonlinearity correction of the pixel values is computed (linearity.py). In the second step, the coefficients of the RGB to CIE XYZ transformation equations are obtained from the selected patches of the colour chart (characterisation.py). Once the _Molada-Tebar, Lerma, Marqués-Mateu, 2017._ characterisation is finished, we apply the RGB to CIE XYZ transformation equations on the input image. 2.2. Graphical User Interface The main module of the pyColourimetry software is undoubtedly the graphical user interface (GUI) called gui.py. It allows the user to apply the methodological process in a controlled manner to collect colourimetric data, to extract RGB data (in different fimage formats, RAW, JPEG and TIF), to characterise digital cameras and finally to apply the polynomial equations to obtain images in the device independent colour system sRGB. The GUI has been designed from the PyQt library, a multiplatform binding of the Qt graphical library for Python. It has been intended that the interface be simple, intuitive, easy-to-use and attractive with technical and professional appearance (Fig. 2). Figure 2 : pyColourimetry GUI showing a rock art specimen. 3. Digital camera characterisation process The standard way to correctly describe colours with digital cameras is by processing images after the colourimetric camera characterisation. In pyColourimetry we implemented the polynomial method because it gives substantially the same results as other methods and offers lower pre-processing and computational cost. Results from previous experiences show that good results can be obtained using second order polynomial transformation equations (Westland _et_ _al._ 2012; Balasubramanian 2003). By means of the camera characterisation we establish the relationship between the device dependent RGB data and the tristimulus values defined by the CIE standard colourimetric observer. In this process, we need several sets of samples with RGB data from the selected colour patches. A training sample will serve as reference for setting the characterisation parameter, which establishes the relationship between the RGB data and the CIE XYZ tristimulus coordinates. Additionally, a testing sample to evaluate the quality of the applied adjustments is required (Fig. 3). In this study, we used the CIE XYZ colour space to set the transformation parameters RGB-CIE XYZ, and the CIELAB colour space for the analysis of the accuracy achieved with the polynomial adjustments. Colour accuracy is measured by computing the CIE76 colour difference formula ∆E#$∗ (CIE 2004) between the imaged results of the standard target patches and their theoretical colour values through Eq. (1): #$∗ & '(∆) ~~∗~~ *+ *+ ~~∗~~ <u>,-</u> <u>. (∆0*+</u> ~~∗~~ ∆E#$∗ ~~∗~~ *+,- <u>. (∆/*+</u> ~~∗~~ *+ ~~∗~~ <u>,- (1)</u> Finally, once the transformation equations are determined, we can represent the output image in the sRGB colour space. Figure 3 : Digital camera characterisation workflow. 4. Case study We applied the methodology on a picture shot on a rock art site, called Cova dels Cavalls (Tirig, Castellón), one of the most singular rock art caves of the Mediterranean Basin on the Iberian Peninsula (Fig. 4). This site was included in the UNESCO World Heritage list in 1998. Figure 4 : Example of data acquisition on site in Cova dels Cavalls. Partial view of Shelter II. A single lens reflex (SLR) camera SIGMA SD15 was used to capture raw images. The main advantage of this camera is its three-layer Foveon®X3 direct image sensor. It directly collects all three primary RGB colours for each pixel without interpolation (Sigma Corporation 2010). _SOFTWARE DEVELOPMENT FOR COLOURIMETRIC AND SPECTRAL DATA PROCESSING: PYCOLOURIMETRY_ The picture contained a colour chart which acts as colour reference. In this case study we used the X-write ColorChecker SG Digital Colour Chart with 140 colour patches. From the image of the rock art scene with the colour chart we need to extract the raw RGB data and obtain the polynomial parameters for the camera characterisation (Fig. 5). Figure 5 : Get RGB data with pyColourimetry software. Once the parameters are calculated, we apply the RGB to CIE XYZ transformation equations on the input image. A final transformation from CIE XYZ to sRGB space is still necessary to obtain the output image in a device independent, physically based colour space, which can be rendered in all devices compatible with the sRGB colour space. Three polynomial models were considered: linear, second and third order (Westland _et al._ 2012). The number of coefficients to be determined is 3, 10 and 19, respectively, depending on the degree of the polynomial (Table 2). Table 2 : Transformation coefficients matrix (first, second and third order). _Polynomial order_ _Transformation coefficients_ 1st order R G B 2nd Order R G B R² G² B² RG RB GB 1 3rd Order R G B R² G² B² RG RB GB R³ G³ B³ R²G R²B G²R G²B B²R B²G 1 <mark>The</mark> <mark>pyColourimetry</mark> <mark>software</mark> <mark>provides</mark> <mark>statistical</mark> <mark>estimators and residuals to analyse the quality</mark> <mark>assessment of the applied adjustments. It allows users</mark> <mark>to select the optimum coefficients for the device</mark> <mark>characterisation as well.</mark> 5. Results In order to evaluate the results obtained after characterisation, we analysed both the root mean square errors (RMSE) and ∆E#$∗ mean colour differences for the three least squares adjustments using first, second and third order polynomials. The results obtained for each adjustment applied are shown in Table 3. The lowest RMSE were found in the second order polynomial adjustment. Considering the RMSE values only, we could conclude that both the first and second order transformations offered similar results. On the other hand, the adjustment with the major RMSE errors is found in the third order transformation. In addition to the RMSE errors it is required to analyse the values obtained for the colour differences. Values of ∆E#$∗ colour differences less than 4 CIELAB units, can be considered to be hardly perceptible by the human eye (Mahy _et al._ 1994). Table 3 : Adjustment results. RMSE and ∆E#$∗ . SDIM0192 1st order 1.925 2.006 1.699 4.28 2nd Order 1.775 1.840 1.528 3.31 3rd Order 5.157 5.547 6.297 10.53 <mark>In accordance with this last criterion, the optimal fit for</mark> <mark>the RGB to CIE XYZ transformation is the second order</mark> <mark>polynomial, where the mean colour difference is less</mark> <mark>than four CIELAB units (3.3 units). The third order</mark> <mark>transformation must be rejected due to the high value</mark> <mark>obtained in the RMSE errors (up to 6.3 in Z) and the</mark> <mark>∆2</mark> 34∗ <mark>colour differences (10.5 units).</mark> Once the camera was characterised, we obtained output <mark>images in the sRGB space (Fig. 6). We can visually</mark> <mark>compare the results obtained for the three adjustments</mark> <mark>applied</mark> <mark>in</mark> <mark>a</mark> <mark>specimen</mark> <mark>of</mark> <mark>the</mark> <mark>original</mark> <mark>image</mark> <mark>corresponding to a deer (Fig. 7).</mark> Figure 6 : sRGB output image (second order polynomial transformation). <mark>The visual differences between the first and second</mark> <mark>order with third order transformations are clearly</mark> <mark>perceived.</mark> The best results were obtained with the second order <mark>polynomial, where the mean colour difference was less</mark> <mark>than four CIELAB units. The pigment is clearly</mark> <mark>distinguished from the support. The third order</mark> <mark>polynomial is the one that offers the worst results.</mark> 6. Discussion Given the importance of an accurate colour recording in rock art, it is necessary to perform the digital camera characterisation to register colours as close as possible to understand the true cultural heritage site conditions. Different methods can be used to characterise digital devices, such as polynomial transformation, principal component analysis or artificial neural networks (Cheung _et al_ . 2004; Vrhel and Trussell 1992). However, it is not _Image_ _Polynomial_ _order_ _X_ _Y_ _Z_ _RMSE CIE XYZ_ ∆1*+∗ _Molada-Tebar, Lerma, Marqués-Mateu, 2017._ usual to find software that simultaneously allows capturing raw RGB data, characterising digital cameras, and specially applying it on images to obtain output sRGB characterised images. The results obtained in this case study showed that the proposed workflow for digital camera characterisation is adequate and takes into account the most important technical colourimetric aspects. The exposed methodology combines the direct method based on colourimetric measurements, and the indirect method using raw images with RGB information (Westland _et al._ 2012; Martínez-Verdú _et al._ 2003). Figure 7 : sRGB output images targetting a detail of an animal. The software developed in this study (pyColourimetry) covers each of the steps required for proper camera characterisation, and gives the user full control on the overall computation process. It also facilitates the data acquisition and measurement tasks as well as processing of colourimetric samples, setting the polynomial parameters, and applying them to finally obtain the output image in the sRGB space (International Electrotechnical Commission, 1998). We can calculate the numerical relationships between the RGB device dependent colour space and the standard CIE XYZ colour space. Once transformations parameters are determined a conventional digital camera can be used to determine rigorous object colours simulating a colourimeter. With a second order polynomial characterisation, users can obtain accurate colour information, regardless the camera or sensor used in the data acquisition from welldefined colourimetric data using the pyColourimetry software. 7. Conclusion The accurate description of colour is a key aspect in heritage documentation. In recent decades, the use of digital images in heritage documentation with tradicional methods has become more frequent. Its use is widely justified since it is a low-cost, non-invasive technique, and a fast method to record data. In this paper, we showed that camera characterisation process whith pyColourimetry software allows the correct colour definition in a non-subjective way, following a low-cost solution for colour communication and dissemination. The results are satisfactory and very promising for proper colour documentation in archaeological rock art studies. The colour registration in rock art scenes was considered correct, as well as the comparison of sets of pictures acquired under different lighting conditions by means of a physically based sRGB colour space. Acknowledgements The authors gratefully acknowledge the support from the Spanish Ministerio de Economía y Competitividad to the project HAR2014-59873-R. The authors would like also to acknowledge comments from the colleagues at the Photogrammetry & Laser Scanning Research Group (GIFLE). References APOLLONIO, F.I., BALLABENI, M. and GAIANI, M., 2014. Color Enhanced Pipelines for Reality-Based 3D Modeling of on Site Medium Sized Archeological Artifacts _. Virtual Archaeology Review_ 5 (10): 59–76. BALASUBRAMANIAN, R., 2003. _Device Characterization, In Digital Color Imaging Handbook_, Chapter 5. CRC Press. CLARK, R.N., 1999. Spectroscopy of Rocks and Minerals and Principles of Spectroscopy, in _Manual of Remote Sensign_, Volume 3. Chapter 1. Remote Sensing for the Earth Sciences, (A.N. Rencz, Ed.) John Wiley and Sons, New York, p 3- 58, 1999. CHEUNG, V., WESTLAND, S., CONNAH, D. and RIPAMONTI, C., 2004. A Comparative Study of the Characterisation of Colour Cameras by Means of Neural Networks and Polynomial Transforms. _Coloration Technology_ 120 (1): 19–25. doi:10.1111/j.1478-4408.2004.tb00201.x. CIE, 2004. _Colorimetry_ . Commission Internationale de l’Eclairage. HUNT, G.R., SALISBURY, J.W. and LENHOFF, C.J., 1971. Visible and near infrared spectra of minerals and rocks. III. Oxides e hydroxides. _Modern Geology_ . 2: 195-205. INTERNATIONAL ELECTROTECHNICAL COMMISSION, 1998. Colour Measurement and Management in Multimedia Systems and Equipment - Part 2-1: Default RGB Colour Space - sRGB. IEC/4WD 61966-2-1. _SOFTWARE DEVELOPMENT FOR COLOURIMETRIC AND SPECTRAL DATA PROCESSING: PYCOLOURIMETRY_ KORYTKOWSKI, P. and OLEJNIK-KRUGLY, A., 2017. Precise Capture of Colors in Cultural Heritage Digitization. _Color_ _Research & Application_ 42 (3): 333–36. doi:10.1002/col.22092. MAHY, M., VAN EYCKEN, L. and OOSTERLINCK, A., 1994. Evaluation of Uniform Color Spaces Developed after the Adoption of CIELAB and CIELUV. _Color Research & Application_ 19 (2), pp. 105–21. doi:10.1111/j.15206378.1994.tb00070.x. MALACARA, D., 2002. _Color Vision and Colorimetry_ _: Theory and Applications_ . SPIE. MARTÍNEZ-VERDÚ, F., PUJOL, J. and CAPILLA, P., 2003. Characterization of a Digital Camera as an Absolute Tristimulus. _Journal of Imaging Science and Technology_ 47 (4), pp. 279–95. doi:10.1117/12.474876. OHTA, N. and ROBERTSON, A., 2005. _Colorimetry_ _: Fundamentals and Applications_ . England: J. Wiley. OLIPHANT, T.E., 2007. Python for Scientific Computing. _Computing in Science & Engineering_ 9 (3), pp. 10–20. doi:10.1109/MCSE.2007.58. PALOMAR-VAZQUEZ, J., BASELGA, S., VIÑALS-BLASCO, M.J., GARCÍA-SALES, C. and SANCHO-ESPINÓS, I., 2017. Application of a Combination of Digital Image Processing and 3D Visualization of Graffiti in Heritage Conservation. _Journal_ _of_ _Archaeological_ _Science_ : Reports 12. Elsevier Ltd, pp. 32–42. doi:10.1016/j.jasrep.2017.01.021. RUIZ, J.F., and PEREIRA, J., 2014. The Colours of Rock Art. Analysis of Colour Recording and Communication Systems in Rock Art Research. _Journal of Archaeological Science_ 50 (1), pp. 338–49. doi:10.1016/j.jas.2014.06.023. SEBASTIÁN, M., PALOMO, M., RINCÓN, J., ORMEÑO S. and VICENT, J.M., 2013. Métodos de documentación, análisis y conservación no invasivos para el arte rupestre postpaleolítico: radiometría de campo e imágenes multiespectrales. Ensayos en la cueva del tío Garroso (Alacón, Teruel). Madrid. _Jornadas La Ciencia y el Arte IV._ _Ciencias y tecnologías aplicadas a la conservación del patrimonio._ Min. de Educación Cultura y Deporte:, pp. 279287. SIGMA CORPORATION, 2010. _The SIGMA SD15 digital single lens reflex camera with Foveon ® full color sensor_ . Sigma corporation. VAN ROSSUM, G. and DRAKE, F.L., 2010. _The Python Library Reference_ . October, 1144 pages. VRHEL, M.J. and H.J. TRUSSELL, 1992. Color Correction Using Principal Components. _Color Research & Application_ 17 (5). Wiley Subscription Services, Inc., A Wiley Company: 328–38. doi:10.1002/col.5080170507. WESTLAND, S., RIPAMONTI, C. and CHEUNG, V., 2012. _Computational Colour Science Using MATLAB®._ Chichester, UK: John Wiley & Sons, Ltd. doi:10.1002/9780470710890.

섹션 본문 52문단 · 15,777자

(제목 없음)

1Archaeological documentation is a complex process where the technical measurement and specification of colour is a key aspect.In the last years heritage documentation processes have largely benefited from the application of digital recording methods, imagery analysis software and technologies that offers great advantages over the traditional methods.The rigorous processing of colourimetric data requires software packages with specific colourimetric technical characteristics.In this paper we report on our in-house pyColourimetry software that was developed and tested taking into account the recommendations of the Commission Internationale de l'Éclairage (CIE).The objective is to apply a rigorous procedure for the characterisation of cameras based a priori on polynomial models.Most of the digital cameras capture colour information in the well-known RGB format, but the signals generated by the digital camera are device dependent.By means of the characterisation we establish the relationship between device dependent RGB values and the tristimulus coordinates defined by the CIE standard colourimetric observer.Once the camera is characterised, users have the potential to obtain output images in the sRGB space that is independent of the sensor of the camera.pyColourimetry software allows users to control the entire digital image processing and the colourimetric data workflow proposed.We applied the methodology on a set of pictures targeting Levantine rock art motifs in Cova dels Cavalls (Castellón, Spain) which is considered part of a UNESCO World Heritage Site.The outcomes obtained are satisfactory and very promising for proper colour documentation in cultural heritage estudies.

Introduction

2Colour is a fundamental feature for proper cultural heritage documentation.The correct colour definition allows a more comprehensive graphic definition, a better understanding of the scene, and provides relevant technical information especially for study and preservation work (Ruiz and Pereira 2014).The problem is that colour is a matter of perception.Colour vision depends on the observer.A rigorous colourimetric technique is necessary to properly support rock art research (Korytkowski and Olejnik-Krugly 2017;Ohta and Robertson 2005).

3More and more it is becoming frequent to combine classical documentation techniques based on perceptual procedures with rigorous procedures, supported by colourimetric measurements and digital images (Apollonio et al. 2014;Palomar-Vazquez et al. 2017).

4Moreover, given the characteristics of archaeological rock art and the singularity of Levantine rock art in particular, a correct analysis of iron-based pigments is of great importance, where the colour is decisive.Such pigments show spectral properties that allow for their discrimination in the visible wavelengths (Hunt et al. 1971;Clark 1999).

5A correct calibration of the imaging system, geometrically as well as radiometrically, is important in order to obtain reliable data and analyse the corresponding information.This fact is important for instance while documenting rock art (Sebastián et al. 2013).

6The problem is that RGB signals generated by digital cameras are not colourimetrically sound, specifically, the output RGB values are device-dependent and do not directly correspond to the device independent tristimulus values based on the CIE standard colorimetric observer (CIE 2004).

7An approach to transform RGB dependent values into a independent colour space (such CIE XYZ or sRGB which is somehow based on CIE XYZ), is the digital camera characterisation by polynomial regression with least squares fitting (Balasubramanian 2003;Westland et al. 2012;Malacara 2011).Once the RGB to CIE XYZ transformation equations are obtained, a conventional digital camera could be used for rigorous colour determination as if it were a colourimeter (Martínez-Verdú et al. 2003).

8A final transformation from CIE XYZ to sRGB space is still necessary though.As a result, we obtain sRGB images in a well-known physically based colour space which can be rendered in compatible sRGB devices (International Electrotechnical Commission 1998).

9Software systems with very specific characteristics are required to apply the methodological process exposed.There are different software options for the processing of colourimetric samples and digital image processing.One considerable limitation is that they generally do not allow the user to have absolute control on the methodological process, raw data management or output postprocessing.

10We have developed our own software for the processing of colourimetric and spectral data, named pyColourimetry, which allows us to achieve a full control of the established methodological process.

Main features

11The computer software pyColourimetry consists of a set of modules (based on the main CIE colourimetric technical recommendations) that allows users to process colourimetric data, obtain the transformation equations for the characterisation of the camera, and apply the equations on the image to yield images in the final sRGB space (Fig. 1).

12The programming language used was Python, which has become a mature language and has all the features required for scientific computing (Oliphant 2007;Van Rossum and Drake 2010).

13Python is an interpreted, multiplatform programming language and has a GNU general public license that guarantees end users the freedom to use, study, share and modify the software.The main functionalities of each module are listed in Table 1.Using the serialPort.pymodule, we can connect the CS-100A colourimeter according to the communication specifications of the manufacturer to retrieve colourimetric data.

14Although there are Python libraries for colorimetric data processing, a module called myColour.pyhas been implemented to handle the main CIE colour spaces for the 2° standard observer and the D65 illuminant such as CIE XYZ, Yxy, RGB, CIELAB and CIELCH (CIE, 2004).

15The camera characterisation process is carried out in two steps.First, nonlinearity correction of the pixel values is computed (linearity.py).In the second step, the coefficients of the RGB to CIE XYZ transformation equations are obtained from the selected patches of the colour chart (characterisation.py).

16Once the characterisation is finished, we apply the RGB to CIE XYZ transformation equations on the input image.

Graphical User Interface

17The main module of the pyColourimetry software is undoubtedly the graphical user interface (GUI) called gui.py.It allows the user to apply the methodological process in a controlled manner to collect colourimetric data, to extract RGB data (in different fimage formats, RAW, JPEG and TIF), to characterise digital cameras and finally to apply the polynomial equations to obtain images in the device independent colour system sRGB.

18The GUI has been designed from the PyQt library, a multiplatform binding of the Qt graphical library for Python.It has been intended that the interface be simple, intuitive, easy-to-use and attractive with technical and professional appearance (Fig. 2).

Digital camera characterisation process

19The standard way to correctly describe colours with digital cameras is by processing images after the colourimetric camera characterisation.In pyColourimetry we implemented the polynomial method because it gives substantially the same results as other methods and offers lower pre-processing and computational cost.

20Results from previous experiences show that good results can be obtained using second order polynomial transformation equations (Westland et al. 2012;Balasubramanian 2003).

21By means of the camera characterisation we establish the relationship between the device dependent RGB data and the tristimulus values defined by the CIE standard colourimetric observer.

22In this process, we need several sets of samples with RGB data from the selected colour patches.A training sample will serve as reference for setting the characterisation parameter, which establishes the relationship between the RGB data and the CIE XYZ tristimulus coordinates.Additionally, a testing sample to evaluate the quality of the applied adjustments is required (Fig. 3).

23In this study, we used the CIE XYZ colour space to set the transformation parameters RGB-CIE XYZ, and the CIELAB colour space for the analysis of the accuracy achieved with the polynomial adjustments.

24Finally, once the transformation equations are determined, we can represent the output image in the sRGB colour space.

Case study

25We applied the methodology on a picture shot on a rock art site, called Cova dels Cavalls (Tirig, Castellón), one of the most singular rock art caves of the Mediterranean Basin on the Iberian Peninsula (Fig. 4).This site was included in the UNESCO World Heritage list in 1998.The picture contained a colour chart which acts as colour reference.In this case study we used the X-write ColorChecker SG Digital Colour Chart with 140 colour patches.From the image of the rock art scene with the colour chart we need to extract the raw RGB data and obtain the polynomial parameters for the camera characterisation (Fig. 5).Once the parameters are calculated, we apply the RGB to CIE XYZ transformation equations on the input image.

26A final transformation from CIE XYZ to sRGB space is still necessary to obtain the output image in a device independent, physically based colour space, which can be rendered in all devices compatible with the sRGB colour space.

27Three polynomial models were considered: linear, second and third order (Westland et al. 2012).The number of coefficients to be determined is 3, 10 and 19, respectively, depending on the degree of the polynomial (Table 2).The pyColourimetry software provides statistical estimators and residuals to analyse the quality assessment of the applied adjustments.It allows users to select the optimum coefficients for the device characterisation as well.

Results

28In order to evaluate the results obtained after characterisation, we analysed both the root mean square errors (RMSE) and ∆E #$ * mean colour differences for the three least squares adjustments using first, second and third order polynomials.The results obtained for each adjustment applied are shown in Table 3.

29The lowest RMSE were found in the second order polynomial adjustment.Considering the RMSE values only, we could conclude that both the first and second order transformations offered similar results.On the other hand, the adjustment with the major RMSE errors is found in the third order transformation.

30In addition to the RMSE errors it is required to analyse the values obtained for the colour differences.Values of ∆E #$ * colour differences less than 4 CIELAB units, can be considered to be hardly perceptible by the human eye (Mahy et al. 1994).In accordance with this last criterion, the optimal fit for the RGB to CIE XYZ transformation is the second order polynomial, where the mean colour difference is less than four CIELAB units (3.3 units).The third order transformation must be rejected due to the high value obtained in the RMSE errors (up to 6.3 in Z) and the ∆2 34 * colour differences (10.5 units).

31Once the camera was characterised, we obtained output images in the sRGB space (Fig. 6).We can visually compare the results obtained for the three adjustments applied in a specimen of the original image corresponding to a deer (Fig. 7).The visual differences between the first and second order with third order transformations are clearly perceived.

32The best results were obtained with the second order polynomial, where the mean colour difference was less than four CIELAB units.The pigment is clearly distinguished from the support.The third order polynomial is the one that offers the worst results.

Discussion

33Given the importance of an accurate colour recording in rock art, it is necessary to perform the digital camera characterisation to register colours as close as possible to understand the true cultural heritage site conditions.

34Different methods can be used to characterise digital devices, such as polynomial transformation, principal component analysis or artificial neural networks (Cheung et al. 2004;Vrhel and Trussell 1992).However, it is not Molada-Tebar, Lerma, Marqués-Mateu, 2017.This work is licensed under a Creative Commons 4.0 International License (CC BY-NC-ND 4.0)

35EDITORIAL UNIVERSITAT POLITÈCNICA DE VALÈNCIA usual to find software that simultaneously allows capturing raw RGB data, characterising digital cameras, and specially applying it on images to obtain output sRGB characterised images.

36The results obtained in this case study showed that the proposed workflow for digital camera characterisation is adequate and takes into account the most important technical colourimetric aspects.The exposed methodology combines the direct method based on colourimetric measurements, and the indirect method using raw images with RGB information (Westland et al. 2012;Martínez-Verdú et al. 2003).The software developed in this study (pyColourimetry) covers each of the steps required for proper camera characterisation, and gives the user full control on the overall computation process.It also facilitates the data acquisition and measurement tasks as well as processing of colourimetric samples, setting the polynomial parameters, and applying them to finally obtain the output image in the sRGB space (International Electrotechnical Commission, 1998).We can calculate the numerical relationships between the RGB device dependent colour space and the standard CIE XYZ colour space.Once transformations parameters are determined a conventional digital camera can be used to determine rigorous object colours simulating a colourimeter.

37With a second order polynomial characterisation, users can obtain accurate colour information, regardless the camera or sensor used in the data acquisition from welldefined colourimetric data using the pyColourimetry software.

Conclusion

38The accurate description of colour is a key aspect in heritage documentation.In recent decades, the use of digital images in heritage documentation with tradicional methods has become more frequent.Its use is widely justified since it is a low-cost, non-invasive technique, and a fast method to record data.

39In this paper, we showed that camera characterisation process whith pyColourimetry software allows the correct colour definition in a non-subjective way, following a low-cost solution for colour communication and dissemination.

40The results are satisfactory and very promising for proper colour documentation in archaeological rock art studies.The colour registration in rock art scenes was considered correct, as well as the comparison of sets of pictures acquired under different lighting conditions by means of a physically based sRGB colour space.

Figure 1 :

41Figure 1: pyColourimetry modules.

Figure 2 :

42Figure 2: pyColourimetry GUI showing a rock art specimen.

43Colour accuracy is measured by computing the CIE76 colour difference formula ∆E #$ * (CIE 2004) between the imaged results of the standard target patches and their theoretical colour values through Eq. (1):

Figure 3 :

44Figure 3: Digital camera characterisation workflow.

Figure 4 :

45Figure 4: Example of data acquisition on site in Cova dels Cavalls.Partial view of Shelter II.A single lens reflex (SLR) camera SIGMA SD15 was used to capture raw images.The main advantage of this camera is its three-layer Foveon®X3 direct image sensor.It directly collects all three primary RGB colours for each pixel without interpolation (Sigma Corporation 2010).

Figure 5 :

46Figure 5: Get RGB data with pyColourimetry software.

Figure 6 :

47Figure 6: sRGB output image (second order polynomial transformation).

Figure 7 :

48Figure 7: sRGB output images targetting a detail of an animal.

Table 1 :

49Functionalities of the pyColourimetry software.

Table 2 :

50Transformation coefficients matrix (first, second and third order).

51R G B R² G² B² RG RB GB 1 3rd Order R G B R² G² B² RG RB GB R³ G³ B³ R²G R²B G²R G²B B²R B²G 1

Table 3 :

52Adjustment results.RMSE and ∆E #$ * .

참고문헌 12건

  1. Evaluation of Uniform Color Spaces Developed after the Adoption of CIELAB and CIELUV Color Research & Application · Wiley · 1994 10.1111/j.1520-6378.1994.tb00070.x
  2. 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
  3. Color vision and colorimetry: Theory and applications Color Research & Application · Wiley · 2002 10.1002/col.10118
  4. Color correction using principal components Color Research & Application · Wiley · 1992 10.1002/col.5080170507
  5. 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
  6. 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
  7. Python Library Reference 1999
  8. Colorimetry: fundamentals and applications Choice Reviews Online · Association of College and Research Libraries · 2006 10.5860/choice.43-5951
  9. Computational Colour Science using MATLAB® 2012 10.1002/9780470710890
  10. Precise capture of colors in cultural heritage digitization Color Research & Application · Wiley · 2016 10.1002/col.22092
  11. Application of a combination of digital image processing and 3D visualization of graffiti in heritage conservation Journal of Archaeological Science Reports · Elsevier BV · 2017 10.1016/j.jasrep.2017.01.021
  12. Device Characterization Springer eBooks · Springer Nature · 2003 10.1007/978-1-4615-0321-7_5