Metrological Evaluation of the Demosaicking Effect on Colour Digital Image Correlation with Application in Monitoring of Paintings
Abstract
:1. Introduction
2. Colour DIC and Data Processing
2.1. Colour DIC Fundamentals and Its Modification
2.2. Demosaicking Methods
- G0 includes two commercial solutions:
- −
- The monochrome baseline method corresponds to a pixel luminance estimation based on colour information from the nearest pixels on the CFA pattern. The values for each pixel are first converted to the YCbCr colour space. The Y component of this model represents a brightness value and is equivalent to the value that would be derived from a pixel in a monochrome sensor [24] (referred to as Monochrome for the rest of the document).
- −
- At the colour baseline format, each pixel is filtered to record only one of the colours red, green, and blue. The pixel data are then processed using the demosaicking method listed in [25]. Then, a linear interpolation is used for the conversion to monochrome images (referred to as rgb2gray Basler throughout this paper to differentiate it from Monochrome).
- G1—simple separate colour channel bilinear interpolation. The simplest way to restore the missing values is to interpolate each channel separately using neighbouring values. A bilinear interpolation is the most commonly used method. This method is efficient, but images would have colour artefacts at the edges [26].
- G2—methods using information about edges. EA (edge-aware) and VNG (variable number of gradients) reduce colour artefacts by using edge detection [27]. In this method, the gradients near the pixel of interest are computed. In the VNG method, a set of eight gradients is calculated for each pixel in a 5 × 5 neighbourhood. The edge-sensitive demosaicking methods select the interpolation direction or estimate the weights using the CFA samples, which may lead to erroneous results since the CFA image contains less information than the full-colour image.
- A principal components analysis (PCA) finds the vector in the direction where the variance is maximal;
- An independent component analysis (ICA) finds the vectorscorresponding to mixed signals.
- G3—directional interpolation and decision methods homogeneity. These strategies compute two or more estimation candidates for each missing component, and the decision for the best one is made a posteriori. Among the well documented representatives of G3 are adaptive homogeinity interpolation (AHD) and adaptive residual interpolation (ARI). AHD uses three different techniques to minimise the colour artefacts [28]. The filter bank technique allows the minimisation of the aliasing. The adaptive selection of the interpolation direction for misguidance colour artefacts is used. The solution for the interpolation artefacts is combining two separate interpolations (vertical and horizontal) based on a homogeneity matrix. ARI adaptively combines two residual interpolation-based algorithms and adjust the iteration number at each pixel [29]. The PPG, AAHD, DHT and DCB algorithms are undocumented, but they represented the same group [30].
- G4—APN (attention pyramid network). This method is based on a single pyramid attention mechanism [31]. This method was chosen due to the use of two mechanisms that reduce the formation of artefacts. The first is nonlocal attention, with minimise the aliasing effect. The second is scale-agnostic attention that improves the quality of the detail reconstruction. The pyramid attention is implemented using convolution and deconvolution operations. The patches are extracted from the transformed feature map to a deconvolution over the matching score.
3. Materials and Methods
3.1. Samples
3.2. Three-Dimensional DIC System and Experimental Details
3.3. Evaluation Criteria
4. Results
4.1. Correlation Coefficient Analysis
- The suggested pipeline resulted into an improved sigma distribution for the samples with less 3D local texture (Mock-up and Street), while it was not so evident for the sample with a high roughness (Flower).
- The methods with aggregation colour information (G0–G2) linear such as Monochrome or with dimension reduction such as EA PCA/ICA and VNG PCA/ICA allowed us to use the data from all channels simultaneously. Unfortunately, the methods based on dimension reduction depended on the context of the image.
- The commonly used demosaicking methods based on a homogeneity matrix (G3) were generally better than simple interpolation methods (G1), but they were also sensitive to the local (5 × 5 neighbourhood) configuration of elementary colour pixels (Flower and Street). The decrease of the interpolation quality could be caused by a mismatch in the structure of the homogeneity matrix. It should be noted that depending on the methods from this group, different colour components were preferred.
- The deep learning method (G4) showed the most significant potential compared to aggregating colour information and methods testing local consistency. The two main reasons were using data from a multiresolution representation and a nonlocal approach to the homogeneity determination. We can assume that it was not an effect of overfitting to the test images because the method was trained on data unrelated to the field of activity (DIV2K [33,34] and our own data set of 300 real and synthetic images).
4.2. Evaluation of Demosaicking Influence on Displacement Maps
- RMSE and mean of residual displacement maps
- The P/V of the modulation in the residual displacement maps
5. Discussion
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
AHD | Adaptive Homogeneity-Directed |
AoI | Area of interest |
APN | Pyramid attention network |
cDIC | colour digital image correlation |
CFA | colour filter array |
CH | Cultural heritage |
CHO | Cultural heritage object |
DIC | Digital image correlation |
EA | Edge-aware |
ICA | Independent component analysis |
ZNSSD | Zero-normalised sum of squared differences |
PCA | Principal components analysis |
P/V | Peak to valley |
RMSE | Root-mean-square error |
VNG | Variable number of gradients |
References
- Sutton, M.A.; Orteu, J.J.; Schreier, H.W. Image Correlation for Shape, Motion and Deformation Measurements: Basic Concepts, Theory and Applications; Springer: Berlin/Heidelberg, Germany, 2009; p. 321. [Google Scholar] [CrossRef]
- Pan, B. Recent Progress in Digital Image Correlation. Exp. Mech. 2011, 51, 1223–1235. [Google Scholar] [CrossRef]
- Malowany, K.; Piekarczuk, A.; Malesa, M.; Kujawińska, M.; Więch, P. Application of 3D Digital Image Correlation for Development and Validation of FEM Model of Self-Supporting Arch Structures. Appl. Sci. 2019, 9, 1305. [Google Scholar] [CrossRef]
- Chen, Y.; Wei, J.; Huang, H.; Jin, W.; Yu, Q. Application of 3D-DIC to characterize the effect of aggregate size and volume on non-uniform shrinkage strain distribution in concrete. Cem. Concr. Compos. 2018, 86, 178–189. [Google Scholar] [CrossRef]
- Kashfuddoja, M.; Ramji, M. Whole-field strain analysis and damage assessment of adhesively bonded patch repair of CFRP laminates using 3D-DIC and FEA. Compos. Part B Eng. 2013, 53, 46–61. [Google Scholar] [CrossRef]
- Malowany, K.; Tymińska-Widmer, L.; Malesa, M.; Kujawińska, M.; Targowski, P.; Rouba, B.J. Application of 3D digital image correlation to track displacements and strains of canvas paintings exposed to relative humidity changes. Appl. Opt. 2014, 53, 1739–1749. [Google Scholar] [CrossRef] [PubMed]
- Malesa, M.; Malowany, K.; Tymińska-Widmer, L.; Kwiatkowska, E.A.; Kujawńska, M.; Rouba, B.J.; Targowski, P. Application of digital image correlation (DIC) for tracking deformations of paintings on canvas. In Proceedings of the Optical Metrology, Munich, Germany, 23–24 May 2011. [Google Scholar]
- Papanikolaou, A.; Dzik-Kruszelnicka, D.; Kujawinska, M. Spatio-temporal monitoring of humidity induced 3D displacements and strains in mounted and unmounted parchments. Herit. Sci. 2022, 10, 15. [Google Scholar] [CrossRef]
- Alsayednoor, J.; Harrison, P.; Dobbie, M.; Costantini, R.; Lennard, F. Evaluating the use of digital image correlation for strain measurement in historic tapestries using representative deformation fields. Strain 2019, 55, e12308. [Google Scholar] [CrossRef]
- Wang, Z.; Zhao, J.; Fei, L.; Jin, Y.; Zhao, D. Deformation Monitoring System Based on 2D-DIC for Cultural Relics Protection in Museum Environment with Low and Varying Illumination. Math. Probl. Eng. 2018, 2018, 13. [Google Scholar] [CrossRef]
- Baldi, A. Digital Image Correlation and Color Cameras. Exp. Mech. 2017, 58, 315–333. [Google Scholar] [CrossRef]
- Curt, J.; Capaldo, M.; Hild, F.; Roux, S. Optimal digital color image correlation. Opt. Lasers Eng. 2020, 127, 105896. [Google Scholar] [CrossRef]
- Papanikolaou, A.; Garbat, P.; Kujawińska, M. Colour digital image correlation method for monitoring of cultural heritage objects with natural texture. In Proceedings of the Optics for Arts, Architecture, and Archaeology VIII, Online, 21–25 June 2021; Liang, H., Groves, R., Eds.; International Society for Optics and Photonics; SPIE: Bellingham, WA, USA, 2021; Volume 11784, pp. 166–177. [Google Scholar] [CrossRef]
- Stoffels, J.; Ambosius, A.; Bluekens, J.; Peters, M.; Jacobus, P. Color Splitting Prism Assembly. U.S. Patent 4,084,180, 11 April 1978. [Google Scholar]
- Slagle, T.M.; Lyon, R.F.; Ruda, M.C.; Stuhlinger, T.W.; Foveon Inc. Color Separation Prism with Adjustable Path Lengths. U.S. Patent 6,330,113, 11 December 2001. [Google Scholar]
- Bayer, B. Color Imaging Array. U.S. Patent 3,971,065, 20 July 1976. [Google Scholar]
- Forsey, A.; Gungor, S. Demosaicing images from colour cameras for digital image correlation. Opt. Lasers Eng. 2016, 86, 20–28. [Google Scholar] [CrossRef]
- Vic-3D v7 Reference Manual. Available online: http://www.correlatedsolutions.com/supportcontent/Vic-3D-v7-Manual.pdf (accessed on 27 June 2022).
- Pan, B.; Xie, H.; Wang, Z. Equivalence of digital image correlation criteria for pattern matching. Appl. Opt. 2010, 49, 5501–5509. [Google Scholar] [CrossRef] [PubMed]
- Pan, B.; Wang, B. Digital image correlation with enhanced accuracy and efficiency: A comparison of two subpixel registration algorithms. Exp. Mech. 2016, 56, 1395–1409. [Google Scholar] [CrossRef]
- Schreier, H.W.; Braasch, J.R.; Sutton, M.A. Systematic errors in digital image correlation caused by intensity interpolation. Opt. Eng. 2000, 39, 2915–2921. [Google Scholar] [CrossRef]
- Li, J.; Dan, X.; Xu, W.; Wang, Y.; Yang, G.; Yang, L. 3D digital image correlation using single color camera pseudo-stereo system. Opt. Laser Technol. 2017, 95, 1–7. [Google Scholar] [CrossRef]
- Li, X.; Gunturk, B.; Zhang, L. Image demosaicing: A systematic survey. In Proceedings of the Visual Communications and Image Processingl, San Jose, CA, USA, 29–31 January 2008; Pearlman, W.A., Woods, J.W., Lu, L., Eds.; International Society for Optics and Photonics; SPIE: Bellingham, WA, USA, 2008; Volume 6822, pp. 489–503. [Google Scholar] [CrossRef]
- Basler Pixel Format. Available online: https://docs.baslerweb.com/pixel-format.html?filter=Camera:acA4112-8gc (accessed on 21 June 2022).
- PGI Basler White Paper Kernel Description. Available online: https://www.baslerweb.com/en/downloads/document-downloads/pgi-feature-set/ (accessed on 15 May 2022).
- Rahim, A.N.A.; Yaakob, S.N.; Ngadiran, R.; Nasruddin, M.W. An analysis of interpolation methods for super resolution images. In Proceedings of the 2015 IEEE Student Conference on Research and Development (SCOReD), Piscataway, NJ, USA, 13–14 December 2015; pp. 72–77. [Google Scholar] [CrossRef]
- Losson, O.; Macaire, L.; Yang, Y. Chapter 5—Comparison of Color Demosaicing Methods. In Advances in Imaging and Electron Physics; Hawkes, P.W., Ed.; Elsevier: Amsterdam, The Netherlands, 2010; Volume 162, pp. 173–265. [Google Scholar] [CrossRef] [Green Version]
- Hirakawa, K.; Parks, T.W. Adaptive homogeneity-directed demosaicing algorithm. IEEE Trans. Image Process. 2005, 14, 360–369. [Google Scholar] [CrossRef] [PubMed]
- Monno, Y.; Kiku, D.; Tanaka, M.; Okutomi, M. Adaptive Residual Interpolation for Color and Multispectral Image Demosaicking. Sensors 2017, 17, 2787. [Google Scholar] [CrossRef] [PubMed]
- LibRaw Project. Available online: https://www.libraw.org/ (accessed on 30 June 2022).
- Mei, Y.; Fan, Y.; Zhang, Y.; Yu, J.; Zhou, Y.; Liu, D.; Fu, Y.; Huang, T.S.; Shi, H. Pyramid Attention Networks for Image Restoration. arXiv 2020, arXiv:2004.13824. Available online: https://arxiv.org/abs/2004.13824 (accessed on 27 June 2022).
- Liquitex. The Acrylic Book. Available online: https://www.liquitex.com/us/wp-content/uploads/sites/42/2018/12/LIQUITEX-ACRYLIC-BOOK.pdf (accessed on 27 June 2022).
- Agustsson, E.; Timofte, R. NTIRE 2017 Challenge on Single Image Super-Resolution: Dataset and Study. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Honolulu, HI, USA, 21–26 July 2017; pp. 1122–1131. [Google Scholar] [CrossRef]
- Ignatov, A.; Timofte, R.; Van Vu, T.; Minh, L.T.; Pham, T.X.; Van Nguyen, C.; Kim, Y.; Choi, J.S.; Kim, M.; Huang, J.; et al. PIRM challenge on perceptual image enhancement on smartphones: Report. In Proceedings of the European Conference on Computer Vision (ECCV) Workshops, Munich, Gernamy, 8–14 September 2018. [Google Scholar]
Group No. | Method | Interpolation Type | # Output Channels | Computational Complexity |
---|---|---|---|---|
0 | Baseline monochrome—Basler | Nearest neighbour | 1 | Small |
Baseline demosaicking—Basler | Multi. interpolation + enhancement | 3 | Small | |
1 | Bilinear ICA | Bilinear | 1 | Mid |
Bilinear PCA | Bilinear | 1 | Mid | |
2 | EA ICA | Edge adaptive bilinear | 1 | Mid |
EA PCA | Edge adaptive bilinear | 1 | Mid | |
VNG ICA | Gradients + bilinear | 1 | Mid | |
VNG PCA | Gradients + bilinear | 1 | Mid | |
3 | PPG | Adaptive | 3 | High |
AHD | Adaptive | 3 | High | |
AAHD | Adaptive | 3 | High | |
DHT | Adaptive | 3 | High | |
ARI | Adaptive | 3 | High | |
4 | APN | Deep learning | 3 | High |
Method and Shift | <Sigma> (NN) | RMSE Res. Disp. (mm) | <Res. Disp.> (mm) | P/V Amplitude Res. Disp. (mm) |
---|---|---|---|---|
Merged APN X5 | 0.0203 | 0.009 | ||
Monochrome X5 | 0.0215 | 0.031 | ||
rgb2gray Basler X5 | 0.0164 | 0.02 | ||
Merged APN X10 | 0.0311 | 0.007 | ||
Mononochrome X10 | 0.0319 | 0.033 | ||
rgb2gray Basler X10 | 0.0304 | 0.018 | ||
Merged APN XZ5 | 0.0322 | 0.009 | ||
Mononochrome XZ5 | 0.0329 | 0.034 | ||
rgb2gray Basler XZ5 | 0.0320 | 0.019 |
Method and Shift | <Sigma> (NN) | RMSE Res. Disp. (mm) | <Res. Disp.> (mm) | P/V Amplitude Res. Disp. (mm) |
---|---|---|---|---|
Merged APN X5 | 0.0117 | 0.019 | ||
Monochrome X5 | 0.0124 | 0.039 | ||
rgb2gray Basler X5 | 0.0121 | 0.035 | ||
Merged APN X10 | 0.0294 | 0.026 | ||
Monochrome X10 | 0.0299 | 0 .034 | ||
rgb2gray Basler X10 | 0.0296 | 0.031 | ||
Merged APN XZ5 | 0.0287 | 0.027 | ||
Monochrome XZ5 | 0.0291 | 0.046 | ||
rgb2gray Basler XZ5 | 0.0290 | 0.039 |
Method and Shift | <Sigma> (NN) | RMSE Res. Disp. (mm) | <Res. Disp.> (mm) | P/V Amplitude Res. Disp. (mm) |
---|---|---|---|---|
Merged APN X5 | 0.0208 | 0.017 | ||
Mononochrome X5 | 0.0381 | 0.039 | ||
rgb2gray RGB X5 | 0.0385 | 0.049 | ||
Merged APN X10 | 0.0655 | 0.017 | ||
Mononochrome X10 | 0.0759 | 0.041 | ||
rgb2gray RGB X10 | 0.075 | 0.057 | ||
Merged APN XZ5 | 0.0541 | 0.027 | ||
Mononochrome XZ5 | 0.0617 | 0.034 | ||
rgb2gray RGB XZ5 | 0.0634 | 0.065 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Papanikolaou, A.; Garbat, P.; Kujawinska, M. Metrological Evaluation of the Demosaicking Effect on Colour Digital Image Correlation with Application in Monitoring of Paintings. Sensors 2022, 22, 7359. https://doi.org/10.3390/s22197359
Papanikolaou A, Garbat P, Kujawinska M. Metrological Evaluation of the Demosaicking Effect on Colour Digital Image Correlation with Application in Monitoring of Paintings. Sensors. 2022; 22(19):7359. https://doi.org/10.3390/s22197359
Chicago/Turabian StylePapanikolaou, Athanasia, Piotr Garbat, and Malgorzata Kujawinska. 2022. "Metrological Evaluation of the Demosaicking Effect on Colour Digital Image Correlation with Application in Monitoring of Paintings" Sensors 22, no. 19: 7359. https://doi.org/10.3390/s22197359
APA StylePapanikolaou, A., Garbat, P., & Kujawinska, M. (2022). Metrological Evaluation of the Demosaicking Effect on Colour Digital Image Correlation with Application in Monitoring of Paintings. Sensors, 22(19), 7359. https://doi.org/10.3390/s22197359