Multifocus HDR VIS/NIR hyperspectral imaging and its application to works of art
필름·전자재료 · (15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.1364/oe.27.011323
- 저널
- Optics Express
- 발행년도
- 2019
- 발행기관
- Optica Publishing Group
- 피인용수
- 20
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1364/oe.27.011323
- 토픽
- Color Science and Applications
- OpenAlex ID
- W2936794775
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 82,976자
본문 펼치기
섹션 본문 93문단 · 80,395자
(제목 없음)
1This paper presents a complete framework for capturing and processing hyperspectral reflectance images of artworks in situ, using a hyperspectral line scanner. These capturing systems are commonly used in laboratory conditions synchronized with scanning stages specifically designed for planar surfaces. However, when the intended application domain does not allow for image capture in these controlled conditions, achieving useful spectral reflectance image data can be a very challenging task (due to uncontrolled illumination, high-dynamic range (HDR) conditions in the scene, and the influence of chromatic aberration on the image quality, among other factors). We show, for the first time, all the necessary steps in the image capturing and post-processing in order to obtain high-quality HDR-based reflectance in the visible and near infrared, directly from the data captured by using a hyperspectral line scanner coupled to a rotating tripod. Our results show that the proposed method outperforms the normal capturing process in terms of dynamic range, color and spectral accuracy. To demonstrate the potential interest of this processing strategy for on-site analysis of artworks, we applied it to the study of a vintage copy of the famous painting "Transfiguration" by Raphael, as well as a facsimile of "The Golden Haggadah" from the British Library of London. The second piece has been studied for the identification of highly reflective gold-foil covered areas.IntroductionSpectral imaging is creating a growing interest in many scientific and industrial fields. The new fast and light image capturing system architectures, together with powerful CPUs and GPUs, facilitate easier capturing and processing of spectral image data for several applications [1, 2]. Among these, recording spectral reflectance image data is crucial for some purposes. Spectral reflectance is a property of objects. When any spectral imaging device is used in raw mode (unprocessed), and under any arbitrary illuminant, the sensor responses retrieved are proportional not only to the spectral reflectance of the object being imaged, but also to the spectral responsivity of the device and the spectral power distribution of the illumination used. Therefore, in order to retrieve only reflectance data pixel-wise, both the influence of the responsivity of the device and the impact of the spectrally and spatially non-uniform illumination must be discounted (also pixel-wise). So far, hyperspectral image capturing systems and techniques present important limitations. From commercially available cameras and scanners[9], to ad hoc proposed prototypes [10], all spectral imaging systems are affected by a limited dynamic range, and the undesired effect of chromatic aberrations. The latter is more important the wider the captured spectral range is. Having a wide spectral range is relatively common in capture devices with silicon-based sensors, which cover not only the visible but also the near infrared range, typically from 400 up to 1000 nm.Regarding dynamic range, some researchers already proposed prototype HDR multispectral imaging systems. Brauers et al. proposed a filterwheel-based camera with 7 broad filters covering the visible spectral range from 380 to 780 nm and using 7 exposure times per filter[12]. Lapray et al. proposed a prototype sensor based on multispectral filter arrays with 8 broad-band channels (7
2in the visible range and 1 covering both part of the visible and the NIR range of the spectrum), and using 3 exposure times per capture [13]. Also Hirai et al. proposed a system based on two equal RGB video cameras, each one with a different color filter on top, and a programmable rotating stage [14]. They used this system to capture outdoor omnidirectional 6-bands multispectral HDR images by taking 15 shots per image and stitching them together with the proper geometric calibration and corrections.
3When capturing spectral images in completely uncontrolled illumination conditions including inter-reflections and even temporally variable illumination (so called out-of-the-lab situation), applying only HDR techniques may not suffice for the purpose of acquiring useful image data for scientific applications. Some authors also proposed methods for processing the captured image data in order to reduce the impact of the spectrally non-uniform illumination. These techniques originally applied for color images (chromatic adaptation), are also evolving to spectral imaging with proposed algorithms [15], and imaging systems [16,17] by estimating the illuminant present on the scene [18][19][20], and allowing the estimation of the reflectances of the non-planar objects present on it.
4All these systems and techniques are multispectral, and cover mainly the visible range. Spectral reflectance of the objects present on the scene can be estimated from few sensor responses (usually 6 to 8), by discounting the illumination present on the scene (which in many cases is also assumed spatially uniform), as well as using some spectral estimation algorithms to get the full spectral reflectance information. In this work we do not aim to tackle the complex problem of outdoor capture, which usually includes volumetric objects and spatial and temporal variations in the illumination present in the scene. The focus is rather on a particular application domain for which spectral information analysis has proven to provide very useful insights: analysis of artworks. The intended aim is to retrieve accurate spectral reflectance data of planar works of art (paintings, documents, posters, photographs...), in the visible and near infrared range, by discounting the spatially and spectrally non-uniform illuminant pixelwise. This is done using a commercial hyperspectral imaging system. In the conditions illustrated in this study, flat field can be performed to help discounting the spatially non-uniform illumination. However, on-site capture introduces other limitations (like chromatic aberration and dynamic range issues) which have not been sufficiently addressed in the previous studies related to hyperspectral capture in this domain.
Spectral imaging of pictorial artworks
5Recently, some applications related to the present study, like analysis, conservation and restoration of cultural heritage, are emerging as potentially expanding fields for the use of spectral imaging systems [3,4]. Spectral imaging is a very powerful technique which, when properly applied, can retrieve useful information from art objects in a non-invasive manner. This is especially important when the objects are very old and delicate [5][6][7].
6However, so far no art-related applications have applied high dynamic range multifocus hyperspectral imaging techniques able to capture high quality hyperspectral reflectance images in uncontrolled illumination conditions, or from highly reflective artworks (i.e. containing golden coatings). Even in completely controlled laboratory conditions, and with smaller samples able to be captured in a scanning stage, there is a lack of homogeneity in the way the different laboratories capture and process spectral reflectance images [8].
7One common system architecture used for hyperspectral imaging, is the hyperspectral line scanner [11]. These systems feature a two-dimensional sensor array. However, they do not capture a two-dimensional image in each shot. Due to their dispersive optic elements, the sensor is able to record spatial information in one dimension and narrow-band spectral information in the other dimension, in a single shot. In other words, the device only senses a single line of the scene at a time, but it does sense the full spectrum of the line. This is due to the push-broom scanning movement which records the spectral information of the whole two-dimensional scene. This system architecture is widely used for spectral imaging of artworks [9,21]. In some applications, a scanning linear stage can be used to easily capture the whole hyperspectral information of some samples by moving the samples (the scene) instead of the hyperspectral camera [5] (see Fig. 2, a). Thus, the scanner always senses the same line, where the illumination is kept fixed and controlled both in its spatial and spectral profiles. These conditions are very convenient for capturing a flat field sample. This flat field capture is later used for discounting illumination non-uniformities, as well as the contribution of the illumination spectrum and spectral responsivity of the capturing device for each spectral band. Thus, a hyperspectral reflectance image is captured which only contains information of the scene's spectral reflectance. This information serves as a powerful tool for pigment and material identification in works of art [6,9,10].
8However, some applications do not allow capture in such completely controlled conditions. This is the case for example of works of art, when they are frescoes affixed to a wall, or their size is big or else the preservation state of the work precludes it being moved from its location on the wall and fixing it to a linear stage [22]. Thus, the only available option in these cases is to transport the hyperspectral capture device to the site of the work of art. For these situations, manufacturers also offer the possibility of synchronizing the scanners to a rotating stage on a tripod (see Fig. 2, b). In this way, a scene can be scanned by rotating the camera instead of moving the sample or the scene.
9The main problem of this configuration is that the illumination is no longer so well controlled. Even if standard light sources are used to illuminate the painting, it is not homogeneously illuminated, presenting thus highlights and shadowy areas due to the common presence of high reflectivity binders, varnishes or materials. Hence, different spatial locations and spectral bands might register huge variations in intensity of the reflected light from the painting. This might exceed the dynamic range of the device, making it necessary to use HDR techniques to be able to recover useful information for each pixel and every spectral band [23,24]. This situation is still not the completely out-of-the-lab uncontrolled situation, since the imaged object is planar, and the light sources static with no inter-reflections, allowing the use of flat-field correction.
10Comparing extreme cases of possible sensor response values, wit would be likely to find on the one hand a very dimly illuminated area with a very dark reflectance in a wavelength with very low sensor responsivity and very low power of illumination which might need very long exposure times to generate any significant sensor response above the noise floor. On the other hand though, a very brightly illuminated area could be found, with a very high sample reflectance in a wavelength with high sensor responsivity and illumination power, which would require very short exposure times not to get saturated (clipped). In these two extreme cases, the light signal impinging on the sensor and its responsivity in the different wavelengths are so different that the dynamic range is very high. Unfortunately, hyperspectral scanners only allow one exposure time to be set for each complete capture. In other words: in a single scan, all wavelengths and areas of the scene are captured using the same single exposure time.
11In these conditions, performing flat field would mean either assuming uniform illumination for the whole scene (which is never the case), or using a flat-field sample big enough to cover the same extension as the region of interest to be recorded (in this case the whole painting). In Fig. 2 (c), such a situation is shown. A painting is being captured in situ, where the size is much bigger than the available scanning stage. Therefore, the illumination is set in front of the painting, and the painting is placed before a calibrated gray tarp of known reflectance. Fig. 2 (d) shows a map of relative irradiance impinging on the painting. The illumination is clearly not spatially uniform. It is also not spectrally uniform either across the entire scene. This makes an accurate illumination discount procedure more important. Some areas are more powerfully illuminated (red) than others (blue). An additional problem is also the difference in reflectance at different wavelengths and different spatial areas of the painting, which increases the high dynamic range of the scene.
12The literature shows that the near infrared region of the spectrum is important when dealing with art-related applications [6,9,10,21]. There is also an additional limitation due to chromatic aberration (different wavelengths focus at different distances). Therefore, if the system is focused while monitoring for instance the band of 500 nm, the images above 700 nm will probably be out of focus. This blur is even more severe when capturing near infrared images in the same scanning. This is why it would also be interesting to capture different regions of the spectrum using different focus positions and merge them in the same final spectral cube after performing registration to correct for the ensuing differences in magnification inherent to the different focus positions.
13In this paper, to the best of our knowledge a complete workflow is proposed for the first time which is able to overcome these limitations and capture and process multifocus HDR hyperspectral image data using a hyperspectral visible and near infrared line scanner, in order to extract a final hyperspectral reflectance image of a known painting, captured in uncontrolled illumination conditions.
14Promising potentials of the captured data are the non-invasive pigment identification in paintings and other works of art [6,9,10,21], and the accurate colorimetric analysis of the temporal evolution when submitted to aging processes after conservation actions [5,25].
Material and Methods
15In this section, the painting and the equipment used, as well as the methods proposed to retrieve the hyperspectral reflectance image through multifocus HDR hyperspectral image capture are described. In Fig. 1, a work-flow diagram is shown. On the left-hand side the multifocus HDR capture is represented (see section 3.5). Three focusing positions were needed to capture a sharp image of the whole spectral range from 400 to 1000 nm. Three exposure times per focus position have also been needed to correctly capture the whole dynamic range of the scene (as proposed in [23]). The processing steps are represented on the right-hand side. Firstly conversion from LDR raw to radiance images (mentioned in sections 3.2.2 and 3.7) is shown. After that the LDR reflectance cube building (see section 3.10) is shown, followed by the HDR cube building (explained in section 3.11). Additional steps such as weight map calculations, image registration and HDR flat-field cube building are explained in sections 3.6, 3.8, and 3.9 respectively.
The painting
16The Transfiguration is an oil painting (63.3x93.2 cm). It is a copy of the Transfiguration of Raphael Sanzio (1518-1520), which is displayed in the Vatican Pinacoteca and that was initially painted on a wood panel (405x278 cm) by order of Cardinal Julio de'Medici (1515), future Pope Clement VII. The Transfiguration of Jesus Christ is the posthumous work of Raphael, which was left unfinished and was completed by his disciple Giulio Romano. In addition to the painting studied in this paper (anonymous), to our knowledge there are 3 recognized copies painted by Giovanni Francesco Penni disciple of Raphael (1520-1528), Domingo Álvarez Enciso, (XVIII Century) and anonymous (XVI Century). The painting studied in this paper is the most similar to the original of Raphael.
Capturing system: raw and radiance modes
17The system used in this study is a hyperspectral line scanner model PikaL VNIR from Resonon Inc. (Canada). The sensor size is 900 pixels wide. The maximum spectral resolution is 2.1 nm (300 bands from roughly 384 to 1018 nm), but using hardware binning in the spectral dimension, it ends up as 4.1 nm (150 bands from 384 to 1016 nm). Using hardware binning increases the signal level at the cost of decreasing the spectral resolution. For this study, 150 spectral bands are enough to get accurate spectral reflectance data. This sampling interval is smaller than the usual 5 or 10 nm in hyperspectral imaging capture [8]. The optic angular field of view is 13 • , and the vertical size of the painting is 93.2 cm, thus the device was placed approximately 450 cm from the painting (see Fig. 2,c). In the horizontal dimension, any number of lines can be scanned. Since the horizontal size of the painting is 63.3 cm, the final hyperspectral image had a spatial resolution (after cropping edges) of 736 x 516 pixels. Higher spatial resolution could be achieved getting closer to the painting, but the whole painting would not fit in the field of view, so several scans would be needed to do it piecewise and stitch the different parts of the final spectral cube afterwards. This could be interesting for studying a particularly relevant detail of the painting, and it can always be done independently of the full artwork capture, and in exactly the same way. The captured image data can be in two main formats: raw and radiance. We explain these two formats and the influence of very low or very high values of raw responses on the image data in the following subsections.
Raw mode
18Image data in raw mode is the unprocessed image data from the sensor. These sensor responses ρ r aw (x, y, λ) are wavelength-wise proportional to the spectral power distribution of the illumination SPD illum (x, y, λ), the reflectance of the sample Re f sample (x, y, λ) and the responsivity of the sensor Resp sens (x, y, λ). Since this system has narrow spectral bands, the sensor responses can be calculated as shown in Eq. (1), where x and y correspond to spatial coordinates and λ to wavelength.
19This model is a simplification of the real situation since it is assuming lambertian surface of the painting, which is not the case. Therefore, the spectral reflectance calculated for both the painting and the facsimile studied in section 4.3 make this assumption. This fact was pointed out by MacDonald et al. [8]. They found that reflectances in the golden foil covered areas measured with different imaging systems were "similar in shape but varied in amplitude by factors of as much as 3x". Specular reflections due to some materials could be certainly an issue which is not solved by the approach presented in this paper.
20They are encoded with 12 bits and afterwards normalized in the range [0 -1] (float). A sensor response equal to 0 means it is underexposed (noise) and a sensor response equal to 1 means it is saturated (clipped). In both cases, a different exposure setting would be necessary for correctly exposing these pixels. This is the classical high dynamic range (HDR) problem [26,27]. In these cases, the most widely used strategy is to change the exposure settings (i.e. increasing or decreasing the exposure time) and capturing differently exposed images of the same scene or sample [28]. These images are then blended together into a single HDR image [29].
Radiance mode
21If the capturing device is properly radiometrically calibrated (its camera response function, CRF, is known), as is the case in this study, a radiance map can be calculated out of the raw images [23,24]. Otherwise, it is easy to extract the CRF by capturing differently exposed images of the same scene [29,30]. In this case, the raw sensor responses (ρ r ad (x, y, λ)) are back-mapped to exposure values (via inverse camera response function, CRF −1 [31,32]), as shown in Eq. (2).
22Thus, the influence of the camera responsivity is eliminated and only the information from the SPD illum (x, y, λ) and the Re f sample (x, y, λ) is left in the image data (radiance). Note that this new radiance image is the result of post-processing the initial raw image. Then, if the raw sensor response was underexposed or saturated, the radiance value given to those pixels would be the minimum or maximum radiance able to be correctly captured using the current exposure time. This of course would not be a correct value. In an intermediate exposure time capture for example, if there were saturated raw sensor responses, there would not be very bright saturated pixels in the final radiance image. However, detail would be lost in these areas since the original raw responses were clipped. This fact is shown in Fig. 3. On the right there is a detail of one of the LDR radiance images (584 nm). Over it, a green line is drawn, and the radiance profile is plotted on the left. Note that for the pixel positions between 307 and 334, the retrieved radiance value is clearly clipped. It should be a higher value, so detail in this region is lost. In other words, a radiance value is always obtained, but due to the LDR capture limitations, it may not be proportional to the real radiance coming from this area of the scene.
The gray tarp
23Flat-field correction needs to be performed using a gray tarp, in order to retrieve the reflectance image. When using the scanning stage for capturing (see Fig. 2, left), this is as easy as just capturing and averaging few lines of the white Teflon bar which is as long as the field of view of the camera. However, when capturing using the rotating tripod (see Fig. 2 center), the different scanned lines receive different illumination. Hence, the whole scene needs to be covered with a flat field sample. In this study, an airborne sensor calibration panel of size 1.2 x 1.2 m was used (model Resonon Inc. type 822, see Fig. 2, center, behind the tripod). This is a single level diffuse gray panel of 36% reflectance in the spectral range 400 to 1700 nm.
Illumination
24It is important to get enough light signal into the whole spectral range to be captured. Therefore, three halogen lamps (500 W each) and two LED panels (36 W each) model Cromalite Nanguan CN-600CSA were used. The light sources were placed at both sides of the painting, leaving the central region free for sensing (see Fig. 2, right). This arrangement introduced spatial lightness and chromatic inhomogeneities in the illumination, which will be discounted later on. These conditions mimic the natural conditions which can be found in museums, temples, walls, outdoors, or wherever a work of art could be placed.
HDR multifocus raw capture
25As mentioned in section 1, chromatic aberration is a limitation which is difficult to get rid of when using spectral imaging systems covering such a wide spectral range [33,34]. In the captures with the hyperspectral scanner, during the focusing step, whatever focus position is set, the entire spectral range can never be in focus at the same time. Roughly speaking, each focus position achieves around 200 nm range of sharp images, whilst the rest of them are blurrier the further we get from the focusing wavelength. An example of this is shown in Fig. 4, where 3 different spectral bands of the same capture are shown in grayscale (contrast stretched for better display). The hyperspectral scanner was roughly focused in the central region of the spectrum (close to 600 nm). It is evident that the band in the center is sharp, while much shorter and much longer wavelengths (left and right respectively) are clearly blurry. This limitation is overcome by capturing different spectral images using different focus positions for each of them. This hyperspectral system has manual focus optics, so the focus was manually changed between captures, using a live view mode and setting a lines-pattern target on scene of size 105 x 75 cm. In a system with automatic focusing optics, a method for assessing the sharpness of the bands and re-focusing automatically could be implemented [35][36][37]. Changing the focus means that a later registration step will be needed in the post-processing of the images because the magnification of the lens changes for different focus settings [38].
26Moreover, as mentioned earlier, the hyperspectral scanner only allows one exposure time for all spectral bands at the same time. The light signal varies highly both spectrally and spatially (the scene has a high dynamic range both spatially and spectrally). Then for each focus position, different exposure times have to be captured in order to combine those spectral low dynamic range (LDR) images into a single spectral HDR image. For each different exposure time used, a flat field cube was captured using the same exposure setting, as well as a dark image with the lens cap on, to discount the effect of dark current noise.
Building of raw weight maps
27During the raw capture, those pixels receiving a too high light signal and those receiving a too low light signal are saturated and underexposed respectively. All this information is lost. Since these sensor responses are going to be used for building the final hyperspectral reflectance cube, there is the need to control which sensor responses can be trusted and which ones cannot. For this aim, weight maps are built. For each pixel response, a weighting function is applied (see Fig. 5, left).
28This weighting function was proposed in [26], and previously successfully used in [31]. It assigns a value of 1 to each sensor response that can be fully trusted (usually the range where the camera response is linear), and a value of 0 to those responses that are saturated or underexposed. An example of a resulting weight map for one spectral band is shown in Fig. 5, center. In this image, higher weights are represented with lighter gray levels and lower weights with darker gray levels. Those regions where the sensor responses were too high or too low appear as dark pixels in the weight map. This is the reason why subsequent images with higher or lower exposure times were captured, until each pixel was correctly exposed in at least one shot [31]. For each focusing position, the summation and the mean weight cube of all exposures was calculated in order to check that all the regions were correctly exposed. If the sum weight cube presented any null values, it would mean that these areas were not correctly exposed in any shot. Moreover, the mean weight cube contains information of which areas are more reliable than others. An example of this can also be seen in Fig. 5, right. These weight cubes were built for both sample and flat field samples (which also presented saturation and under-exposure). No sum weight cube was found with null values, nor was any mean weight cube found with values lower than 0.8 (over 1). Hence, all the pixels were correctly exposed in each of the three focusing positions.
Calculation of radiance cubes
29Transforming raw sensor responses to radiance values is straightforward (using Eq. (2)), if the function relating incoming radiance with sensor response had been previously calculated. This function is called camera response function (CRF) and can be easily worked out by several methods [23,29,31]. In this case, the capturing system was already calibrated so that the radiance cubes needed were directly retrieved. Remember that, as explained in section 3.2.2, this calibration will yield a radiance value even if the raw sensor response is saturated or underexposed. There is no way of knowing which radiance value is valid or not unless the previously calculated weight cubes are used.
Registration of cubes
30Changing the focus leads to changes in the lateral magnification, which leads to a change in the effective field of view of the camera even if neither the camera nor the scene have moved at all. Moreover, for the correct capture of the furthest infrared bands (800 to 1000 nm), very high exposure times were needed due to the low responsivity values of the sensor. In this case, the continuous scanning mode did not work properly. Instead, the step mode scanning was set and the rotating stage moved step by step instead of continuously. For this reason, the aspect ratio of the final image changed noticeably. For these two main reasons, the registration of all captured cubes with either different focus settings or captured using the step size mode was a necessary step in the processing work-flow. Registration was performed using feature-based methods by automatic control-point detection and SURF feature extraction methods [39] implemented in the Matlab toolbox for image registration: Image Estimator (extracting SURF features to determine a set of control points with an affine transform type, which was the transformation giving the best registration quality among the ones implemented for feature-based registration in Matlab, as assessed by the SSIM metric index values). This registration kept both the global and local aspect ratios of the original painting. However, for bigger canvas sizes or closer capturing distances, there could be a need for geometrical corrections in order to compensate for the projection of the cylindrical focal plane on the painting plane. If this happens, non-rigid registration techniques can be applied on the final cube [33,38].
Building HDR flat field cubes
31Capturing the flat field samples with a non-uniform illumination, and using different exposure times in different wavelengths, also leads to underexposed and saturated values. Since the flat field radiance cubes are going to be used to retrieve the reflectance information, the radiance values for all pixels must be valid. Therefore a HDR radiance flat-field cube is built by blending the differently exposed LDR flat field cubes according to Eq. (3).
32where rad f f H DR (x, y, λ) is the HDR flat field radiance cube value. ω n (x, y, λ) is the weight map for the n th LDR flat field raw cube, and rad n, f f i (x, y, λ) is the n th LDR flat field radiance cube. λ represents the wavelength and x and y the pixel positions.
Calculation of LDR reflectance cubes
33Once the raw cubes have been converted into radiance cubes, and the HDR flat field cubes calculated, the LDR reflectance cubes are computed. All the raw cubes are automatically dark corrected after capturing. Thus, the reflectance cubes are computed as shown in Eq. (4).
34where re f LDR,n (x, y, λ) is the n th LDR reflectance cube. rad sample,n (x, y, λ) is the n th radiance cube for the sample, rad f f H DR (x, y, λ) is the HDR flat field radiance cube previously calculated using Eq. (3), and re f f f (λ) is the spectral reflectance of the gray tarp (uniform for the whole tarp).
35We have to take into account that this reflectance still has saturation and underexposure. Therefore, multiple LDR reflectance cubes are built for each focus position, each of them with different areas with valid reflectance values.
Building of HDR reflectance cubes
36After calculating the LDR reflectance cubes (re f LDR,n (x, y, λ)), they are blended together into an HDR reflectance cube. This is the step where the weight maps (ω n (x, y, λ)) previously calculated in the raw images (see sub-section 3.6) are important. They are used to compute the final HDR reflectance cubes (re f H DR (x, y, λ)) using Eq. (5).
37Note that, even though HDR capture has been used due to the high dynamic range of the radiances incoming from the scene captured (with highlights and shadowy areas), the final reflectance of the painting does not need to contain HDR information. Actually, the reflectance of a painting (and in general most reflectances), is rarely going to have any HDR content [26,27]. Rather, HDR is only present in radiances, where powerful light sources or dim shadowy areas are present in the same scene.
Results and discussion
38We built two reflectance cubes. The first is the multi-focus HDR version proposed in section 3 (Cube H DR ). The second is a LDR version of it (Cube LDR ), which is captured in the basic way to operate the system, using a single exposure time and a single focusing for the whole capture. After the final reflectance cubes were built (both the HDR and the LDR versions), different aspects of their qualities were evaluated. In the following sub-sections, the sharpness is evaluated as well as the color and spectral metrics using a Spectroradiometer model Spectrascan PR-745 (Photo Research Inc. USA), as ground truth. Besides, an example application is shown were highly reflective golden material is segmented from a real facsimile.
Focus evaluation
39This evaluation consisted of simulating RGB captures under D65 illumination, and rendering CIE 1976 L*a*b* images (Lab image) from the spectral reflectance cubes. Then a sharpness index (S) [35][36][37] was computed to the luminance channel (L*) as shown in Eq. (6), where h and v are image height and width respectively, i = 1...h; j = 1...v and G x , G y are the horizontal and vertical gradient vector components.
40An sRGB image was also computed for each one using a color conversion from the L*a*b* image to sRGB color space. Results of both images are shown in Fig. 6. Note that zoom-in details of the same area are included in both cases to better appreciate the effect of chromatic aberration on the colored edges of the LDR image. The higher the value of S, the sharper or better focused the image is. Three different sharpness values were computed in order to study separately the effect of using HDR imaging techniques and multifocus techniques. Those values were S LDRmono = 0.0280, S H DRmono = 0.0312, and S H DRmulti = 0.0421. They correspond to mono-focus LDR, mono-focus HDR and multi-focus HDR cases respectively. It can be seen that, only using HDR imaging techniques, the sharpness index improves 11.4%. Comparing mono-focus HDR and multifocus HDR, the improvement is 34.9%. Finally, the total improvement comparing mono-focus LDR with the proposed multi-focus HDR is 50.4%. This points out the fact that the sharpness improvement is due to both the use of HDR imaging techniques (which usually increase the signal to noise ratio), and the multiple focus approach which reduces the impact of chromatic aberrations. These results are in agreement with the less blurry appearance of the sRGB image computed from the HDR cube compared with the one computed from the LDR cube. How the LDR color image simulated is more blurry and suffers from chromatic aberration can be seen in Fig. 6. This introduces spatial color artifacts in the image by mixing information from different bands in the LDR reflectance cube, contributing to the final blur of the image.
Color and spectral evaluation
41This evaluation consisted of using different color and spectral metrics to compare the spectral reflectances obtained from both HDR and LDR spectral reflectance cubes, with those measured using a spectroradiometer in the exact same areas of the painting. For this purpose, a spectroradiometer was used to measure the spectral reflectance of the painting in 16 different areas as ground truth. These areas were selected to present a wide variety of colors within the gamut of the painting. Two spectral radiance signals were measured in each point from 400 to 1000 nm. The first was the sample radiance, directly from the painting. The second was the white radiance, from a Spectralon standard white patch (Sphere Optics GmbH) placed on top of the painting in the exact same areas. The final spectral reflectance was computed as shown in Eq. (7).
42where R ( n, λ) is the spectral reflectance at area sample number n, rad sample (n, λ) is the sample spectral radiance at the same sample area, rad white (n, λ) is the spectral radiance measured from the white patch placed at the same area, and re f white (λ) is the spectral reflectance of the white patch provided by the manufacturer.
43These reflectances were compared to those extracted from the same 16 areas in both Cube LDR and Cube H DR , averaging areas of equivalent size in the same points. Results plotted in Fig. 7 show that, especially in some samples (number 5,7,8,10,11,16), the reflectances calculated in the LDR approach differ more from the measured reference reflectances in the region around 600 nm. This is due to the fact that in those regions and wavelengths, the LDR capture was saturated either in the painting capture or in the gray tarp. Therefore, when doing the flat field correction, the calculated reflectance differs more from the measured one in those wavelengths. The quantitative metrics computed to compare the reflectances retrieved from the two spectral cubes and the spectroradiometer measurements in the 16 areas are shown in Tables 1 and 2. The reason for computing the spectral metrics twice is that, in color metrics, only the visible range is taken into account. Therefore, two spectra could be very similar in the visible range, but have differences in the infrared region, or the other way around. It is clear that the mean error metrics are much better for the Cube H DR , with a colorimetric performance improvement of 71.6%. Regarding the spectral metrics, in the visible range, the GFC is improved in 66.98%, and the RMSE in 36.96%. On the other hand, in the whole spectral range, the GFC is improved in 65.63% and the RMSE in 48.89%. Note that, since the GFC is a metric where the perfect match value is 1, the improvement is calculated using its complementary metric cGFC calculated as cGFC = 1−GFC. Only one sample area had a better performance in the Cube LDR . The remaining 15 sample areas yielded better results in the Cube H DR .
44It would not be a fair comparison without mentioning the issue of the capturing time. In the regular LDR capture, only one sample cube, one black cube and one flat field cube need to be captured, whilst in the proposed HDR capture, a total of 15 cubes were captured (9 sample cubes, 3 flat field cubes and 3 black cubes). This is the price to pay for retrieving a higher quality reflectance image data.
Additional example of application: identification of golden foil in a facsimile
45As a final experiment, an original facsimile from the British Library of London has been captured using the proposed framework. This facsimile (see Fig. 8), presents areas of golden highly reflective material. These kinds of materials always represent a challenge for image capturing systems. The problem is that depending on the illumination/observation geometry, the capturing device may receive specular reflections from the sample. If this happens, these areas would most probably saturate the sensor when using the exposure times needed to correctly capture the rest of the scene. Even if the illumination could be controlled, if the samples are not perfectly flat (as is the case in many artworks and illuminated manuscripts which have irregular texture), avoiding the saturated areas would not be possible by only manipulating the light sources. Therefore, even in controlled illumination laboratory conditions, the high dynamic range may still be a problem for this kind of samples. As in previous sections with the art painting, two spectral reflectance cubes of the facsimile were captured (one LDR and one HDR). These cubes were used for the automatic detection of those areas of the facsimile containing the highly reflective golden material. For such a purpose, the best results were found using the spectral metric goodness of fit coefficient (GFC) in both cases, in the near infrared spectral range from 700 to 1000 nm. The segmentations of the HDR and LDR cubes were compared with a manually segmented ground truth (shown in 8 center of bottom row). Since there are only two possible labels for each pixel (0 for non-golden material and 1 for golden material), the performance was compared as the percentage of matches between the automatic segmentations and the ground truth. In Fig. 8, the RGB renderizations show that the LDR cube was saturated in some golden areas of the facsimile (top left and bottom right scenes), while all the pixels in the HDR cubes were correctly exposed. This resulted in more false negatives and false positives found in the LDR cube compared to the HDR cube. The performance of the segmentations was: P H DR = 95.50% and P LDR = 83.78%. These results show a 11.72% improvement in performance for the given segmentation task. Note that those areas which were saturated in the LDR cube, were not correctly detected as golden material, but they were in the HDR cube. Hence, if due to illumination or a rougher texture of the artwork, more areas were specularly reflecting light to the capturing device, the difference in performance would be higher.
Conclusions and future work
46In this study, a complete framework is introduced for the hyperspectral reflectance capture of a painting in situ, and under high dynamic range conditions. Both the high dynamic range and the focusing problem due to chromatic aberrations have been overcome by using multiple captures with different focus positions and exposure times. A final hyperspectral reflectance cube has been computed using weighting maps calculated for both sample and flat fields and the quality of this cube has been tested and compared with a spectral cube captured in the usual LDR and single focus way. Our results show that the proposed method outperforms the best low dynamic range capture acquired. The sharpness index, as well as the color and spectral metrics show that it is possible to achieve good quality spectral reflectance images using a hyperspectral scanner in non-controlled illumination conditions. Moreover, as an example application, highly reflective golden material has been segmented from a facsimile. Our results show that by applying the proposed framework for capturing and processing, those areas which saturate the sensor in the usual capturing way, can be correctly exposed and segmented using the HDR multifocus capture. In future research, a new version of this framework will be developed including piecewise cube stitching for blending different cubes captured in different regions of big paintings. This will allow us to get closer to the painting and retrieve higher spatial resolution data, whilst still maintaining the spectral resolution and performance achieved in this study. Moreover, we will use the spectral reflectance images computed in this study, together with X-ray fluorescence measurements for the non-invasive pigment identification, in order to help the dating of ancient paintings and other works of art.
Funding
47Spanish Ministry of Economy and Competitiveness, DPI2015-64571-R, ECQM2018-004952-P
(제목 없음)
48in the visible range and 1 covering both part of the visible and the NIR range of the spectrum), and using 3 exposure times per capture [13]. Also Hirai et al. proposed a system based on two equal RGB video cameras, each one with a different color filter on top, and a programmable rotating stage [14]. They used this system to capture outdoor omnidirectional 6-bands multispectral HDR images by taking 15 shots per image and stitching them together with the proper geometric calibration and corrections.
49When capturing spectral images in completely uncontrolled illumination conditions including inter-reflections and even temporally variable illumination (so called out-of-the-lab situation), applying only HDR techniques may not suffice for the purpose of acquiring useful image data for scientific applications. Some authors also proposed methods for processing the captured image data in order to reduce the impact of the spectrally non-uniform illumination. These techniques originally applied for color images (chromatic adaptation), are also evolving to spectral imaging with proposed algorithms [15], and imaging systems [16,17] by estimating the illuminant present on the scene [18][19][20], and allowing the estimation of the reflectances of the non-planar objects present on it.
50All these systems and techniques are multispectral, and cover mainly the visible range. Spectral reflectance of the objects present on the scene can be estimated from few sensor responses (usually 6 to 8), by discounting the illumination present on the scene (which in many cases is also assumed spatially uniform), as well as using some spectral estimation algorithms to get the full spectral reflectance information. In this work we do not aim to tackle the complex problem of outdoor capture, which usually includes volumetric objects and spatial and temporal variations in the illumination present in the scene. The focus is rather on a particular application domain for which spectral information analysis has proven to provide very useful insights: analysis of artworks. The intended aim is to retrieve accurate spectral reflectance data of planar works of art (paintings, documents, posters, photographs...), in the visible and near infrared range, by discounting the spatially and spectrally non-uniform illuminant pixelwise. This is done using a commercial hyperspectral imaging system. In the conditions illustrated in this study, flat field can be performed to help discounting the spatially non-uniform illumination. However, on-site capture introduces other limitations (like chromatic aberration and dynamic range issues) which have not been sufficiently addressed in the previous studies related to hyperspectral capture in this domain.
Spectral imaging of pictorial artworks
51Recently, some applications related to the present study, like analysis, conservation and restoration of cultural heritage, are emerging as potentially expanding fields for the use of spectral imaging systems [3,4]. Spectral imaging is a very powerful technique which, when properly applied, can retrieve useful information from art objects in a non-invasive manner. This is especially important when the objects are very old and delicate [5][6][7].
52However, so far no art-related applications have applied high dynamic range multifocus hyperspectral imaging techniques able to capture high quality hyperspectral reflectance images in uncontrolled illumination conditions, or from highly reflective artworks (i.e. containing golden coatings). Even in completely controlled laboratory conditions, and with smaller samples able to be captured in a scanning stage, there is a lack of homogeneity in the way the different laboratories capture and process spectral reflectance images [8].
53One common system architecture used for hyperspectral imaging, is the hyperspectral line scanner [11]. These systems feature a two-dimensional sensor array. However, they do not capture a two-dimensional image in each shot. Due to their dispersive optic elements, the sensor is able to record spatial information in one dimension and narrow-band spectral information in the other dimension, in a single shot. In other words, the device only senses a single line of the scene at a time, but it does sense the full spectrum of the line. This is due to the push-broom scanning movement which records the spectral information of the whole two-dimensional scene. This system architecture is widely used for spectral imaging of artworks [9,21]. In some applications, a scanning linear stage can be used to easily capture the whole hyperspectral information of some samples by moving the samples (the scene) instead of the hyperspectral camera [5] (see Fig. 2, a). Thus, the scanner always senses the same line, where the illumination is kept fixed and controlled both in its spatial and spectral profiles. These conditions are very convenient for capturing a flat field sample. This flat field capture is later used for discounting illumination non-uniformities, as well as the contribution of the illumination spectrum and spectral responsivity of the capturing device for each spectral band. Thus, a hyperspectral reflectance image is captured which only contains information of the scene's spectral reflectance. This information serves as a powerful tool for pigment and material identification in works of art [6,9,10].
54However, some applications do not allow capture in such completely controlled conditions. This is the case for example of works of art, when they are frescoes affixed to a wall, or their size is big or else the preservation state of the work precludes it being moved from its location on the wall and fixing it to a linear stage [22]. Thus, the only available option in these cases is to transport the hyperspectral capture device to the site of the work of art. For these situations, manufacturers also offer the possibility of synchronizing the scanners to a rotating stage on a tripod (see Fig. 2, b). In this way, a scene can be scanned by rotating the camera instead of moving the sample or the scene.
55The main problem of this configuration is that the illumination is no longer so well controlled. Even if standard light sources are used to illuminate the painting, it is not homogeneously illuminated, presenting thus highlights and shadowy areas due to the common presence of high reflectivity binders, varnishes or materials. Hence, different spatial locations and spectral bands might register huge variations in intensity of the reflected light from the painting. This might exceed the dynamic range of the device, making it necessary to use HDR techniques to be able to recover useful information for each pixel and every spectral band [23,24]. This situation is still not the completely out-of-the-lab uncontrolled situation, since the imaged object is planar, and the light sources static with no inter-reflections, allowing the use of flat-field correction.
56Comparing extreme cases of possible sensor response values, wit would be likely to find on the one hand a very dimly illuminated area with a very dark reflectance in a wavelength with very low sensor responsivity and very low power of illumination which might need very long exposure times to generate any significant sensor response above the noise floor. On the other hand though, a very brightly illuminated area could be found, with a very high sample reflectance in a wavelength with high sensor responsivity and illumination power, which would require very short exposure times not to get saturated (clipped). In these two extreme cases, the light signal impinging on the sensor and its responsivity in the different wavelengths are so different that the dynamic range is very high. Unfortunately, hyperspectral scanners only allow one exposure time to be set for each complete capture. In other words: in a single scan, all wavelengths and areas of the scene are captured using the same single exposure time.
57In these conditions, performing flat field would mean either assuming uniform illumination for the whole scene (which is never the case), or using a flat-field sample big enough to cover the same extension as the region of interest to be recorded (in this case the whole painting). In Fig. 2 (c), such a situation is shown. A painting is being captured in situ, where the size is much bigger than the available scanning stage. Therefore, the illumination is set in front of the painting, and the painting is placed before a calibrated gray tarp of known reflectance. Fig. 2 (d) shows a map of relative irradiance impinging on the painting. The illumination is clearly not spatially uniform. It is also not spectrally uniform either across the entire scene. This makes an accurate illumination discount procedure more important. Some areas are more powerfully illuminated (red) than others (blue). An additional problem is also the difference in reflectance at different wavelengths and different spatial areas of the painting, which increases the high dynamic range of the scene.
58The literature shows that the near infrared region of the spectrum is important when dealing with art-related applications [6,9,10,21]. There is also an additional limitation due to chromatic aberration (different wavelengths focus at different distances). Therefore, if the system is focused while monitoring for instance the band of 500 nm, the images above 700 nm will probably be out of focus. This blur is even more severe when capturing near infrared images in the same scanning. This is why it would also be interesting to capture different regions of the spectrum using different focus positions and merge them in the same final spectral cube after performing registration to correct for the ensuing differences in magnification inherent to the different focus positions.
59In this paper, to the best of our knowledge a complete workflow is proposed for the first time which is able to overcome these limitations and capture and process multifocus HDR hyperspectral image data using a hyperspectral visible and near infrared line scanner, in order to extract a final hyperspectral reflectance image of a known painting, captured in uncontrolled illumination conditions.
60Promising potentials of the captured data are the non-invasive pigment identification in paintings and other works of art [6,9,10,21], and the accurate colorimetric analysis of the temporal evolution when submitted to aging processes after conservation actions [5,25].
Material and Methods
61In this section, the painting and the equipment used, as well as the methods proposed to retrieve the hyperspectral reflectance image through multifocus HDR hyperspectral image capture are described. In Fig. 1, a work-flow diagram is shown. On the left-hand side the multifocus HDR capture is represented (see section 3.5). Three focusing positions were needed to capture a sharp image of the whole spectral range from 400 to 1000 nm. Three exposure times per focus position have also been needed to correctly capture the whole dynamic range of the scene (as proposed in [23]). The processing steps are represented on the right-hand side. Firstly conversion from LDR raw to radiance images (mentioned in sections 3.2.2 and 3.7) is shown. After that the LDR reflectance cube building (see section 3.10) is shown, followed by the HDR cube building (explained in section 3.11). Additional steps such as weight map calculations, image registration and HDR flat-field cube building are explained in sections 3.6, 3.8, and 3.9 respectively.
The painting
62The Transfiguration is an oil painting (63.3x93.2 cm). It is a copy of the Transfiguration of Raphael Sanzio (1518-1520), which is displayed in the Vatican Pinacoteca and that was initially painted on a wood panel (405x278 cm) by order of Cardinal Julio de'Medici (1515), future Pope Clement VII. The Transfiguration of Jesus Christ is the posthumous work of Raphael, which was left unfinished and was completed by his disciple Giulio Romano. In addition to the painting studied in this paper (anonymous), to our knowledge there are 3 recognized copies painted by Giovanni Francesco Penni disciple of Raphael (1520-1528), Domingo Álvarez Enciso, (XVIII Century) and anonymous (XVI Century). The painting studied in this paper is the most similar to the original of Raphael.
Capturing system: raw and radiance modes
63The system used in this study is a hyperspectral line scanner model PikaL VNIR from Resonon Inc. (Canada). The sensor size is 900 pixels wide. The maximum spectral resolution is 2.1 nm (300 bands from roughly 384 to 1018 nm), but using hardware binning in the spectral dimension, it ends up as 4.1 nm (150 bands from 384 to 1016 nm). Using hardware binning increases the signal level at the cost of decreasing the spectral resolution. For this study, 150 spectral bands are enough to get accurate spectral reflectance data. This sampling interval is smaller than the usual 5 or 10 nm in hyperspectral imaging capture [8]. The optic angular field of view is 13 • , and the vertical size of the painting is 93.2 cm, thus the device was placed approximately 450 cm from the painting (see Fig. 2,c). In the horizontal dimension, any number of lines can be scanned. Since the horizontal size of the painting is 63.3 cm, the final hyperspectral image had a spatial resolution (after cropping edges) of 736 x 516 pixels. Higher spatial resolution could be achieved getting closer to the painting, but the whole painting would not fit in the field of view, so several scans would be needed to do it piecewise and stitch the different parts of the final spectral cube afterwards. This could be interesting for studying a particularly relevant detail of the painting, and it can always be done independently of the full artwork capture, and in exactly the same way. The captured image data can be in two main formats: raw and radiance. We explain these two formats and the influence of very low or very high values of raw responses on the image data in the following subsections.
Raw mode
64Image data in raw mode is the unprocessed image data from the sensor. These sensor responses ρ r aw (x, y, λ) are wavelength-wise proportional to the spectral power distribution of the illumination SPD illum (x, y, λ), the reflectance of the sample Re f sample (x, y, λ) and the responsivity of the sensor Resp sens (x, y, λ). Since this system has narrow spectral bands, the sensor responses can be calculated as shown in Eq. (1), where x and y correspond to spatial coordinates and λ to wavelength.
65This model is a simplification of the real situation since it is assuming lambertian surface of the painting, which is not the case. Therefore, the spectral reflectance calculated for both the painting and the facsimile studied in section 4.3 make this assumption. This fact was pointed out by MacDonald et al. [8]. They found that reflectances in the golden foil covered areas measured with different imaging systems were "similar in shape but varied in amplitude by factors of as much as 3x". Specular reflections due to some materials could be certainly an issue which is not solved by the approach presented in this paper.
66They are encoded with 12 bits and afterwards normalized in the range [0 -1] (float). A sensor response equal to 0 means it is underexposed (noise) and a sensor response equal to 1 means it is saturated (clipped). In both cases, a different exposure setting would be necessary for correctly exposing these pixels. This is the classical high dynamic range (HDR) problem [26,27]. In these cases, the most widely used strategy is to change the exposure settings (i.e. increasing or decreasing the exposure time) and capturing differently exposed images of the same scene or sample [28]. These images are then blended together into a single HDR image [29].
Radiance mode
67If the capturing device is properly radiometrically calibrated (its camera response function, CRF, is known), as is the case in this study, a radiance map can be calculated out of the raw images [23,24]. Otherwise, it is easy to extract the CRF by capturing differently exposed images of the same scene [29,30]. In this case, the raw sensor responses (ρ r ad (x, y, λ)) are back-mapped to exposure values (via inverse camera response function, CRF −1 [31,32]), as shown in Eq. (2).
68Thus, the influence of the camera responsivity is eliminated and only the information from the SPD illum (x, y, λ) and the Re f sample (x, y, λ) is left in the image data (radiance). Note that this new radiance image is the result of post-processing the initial raw image. Then, if the raw sensor response was underexposed or saturated, the radiance value given to those pixels would be the minimum or maximum radiance able to be correctly captured using the current exposure time. This of course would not be a correct value. In an intermediate exposure time capture for example, if there were saturated raw sensor responses, there would not be very bright saturated pixels in the final radiance image. However, detail would be lost in these areas since the original raw responses were clipped. This fact is shown in Fig. 3. On the right there is a detail of one of the LDR radiance images (584 nm). Over it, a green line is drawn, and the radiance profile is plotted on the left. Note that for the pixel positions between 307 and 334, the retrieved radiance value is clearly clipped. It should be a higher value, so detail in this region is lost. In other words, a radiance value is always obtained, but due to the LDR capture limitations, it may not be proportional to the real radiance coming from this area of the scene.
The gray tarp
69Flat-field correction needs to be performed using a gray tarp, in order to retrieve the reflectance image. When using the scanning stage for capturing (see Fig. 2, left), this is as easy as just capturing and averaging few lines of the white Teflon bar which is as long as the field of view of the camera. However, when capturing using the rotating tripod (see Fig. 2 center), the different scanned lines receive different illumination. Hence, the whole scene needs to be covered with a flat field sample. In this study, an airborne sensor calibration panel of size 1.2 x 1.2 m was used (model Resonon Inc. type 822, see Fig. 2, center, behind the tripod). This is a single level diffuse gray panel of 36% reflectance in the spectral range 400 to 1700 nm.
Illumination
70It is important to get enough light signal into the whole spectral range to be captured. Therefore, three halogen lamps (500 W each) and two LED panels (36 W each) model Cromalite Nanguan CN-600CSA were used. The light sources were placed at both sides of the painting, leaving the central region free for sensing (see Fig. 2, right). This arrangement introduced spatial lightness and chromatic inhomogeneities in the illumination, which will be discounted later on. These conditions mimic the natural conditions which can be found in museums, temples, walls, outdoors, or wherever a work of art could be placed.
HDR multifocus raw capture
71As mentioned in section 1, chromatic aberration is a limitation which is difficult to get rid of when using spectral imaging systems covering such a wide spectral range [33,34]. In the captures with the hyperspectral scanner, during the focusing step, whatever focus position is set, the entire spectral range can never be in focus at the same time. Roughly speaking, each focus position achieves around 200 nm range of sharp images, whilst the rest of them are blurrier the further we get from the focusing wavelength. An example of this is shown in Fig. 4, where 3 different spectral bands of the same capture are shown in grayscale (contrast stretched for better display). The hyperspectral scanner was roughly focused in the central region of the spectrum (close to 600 nm). It is evident that the band in the center is sharp, while much shorter and much longer wavelengths (left and right respectively) are clearly blurry. This limitation is overcome by capturing different spectral images using different focus positions for each of them. This hyperspectral system has manual focus optics, so the focus was manually changed between captures, using a live view mode and setting a lines-pattern target on scene of size 105 x 75 cm. In a system with automatic focusing optics, a method for assessing the sharpness of the bands and re-focusing automatically could be implemented [35][36][37]. Changing the focus means that a later registration step will be needed in the post-processing of the images because the magnification of the lens changes for different focus settings [38].
72Moreover, as mentioned earlier, the hyperspectral scanner only allows one exposure time for all spectral bands at the same time. The light signal varies highly both spectrally and spatially (the scene has a high dynamic range both spatially and spectrally). Then for each focus position, different exposure times have to be captured in order to combine those spectral low dynamic range (LDR) images into a single spectral HDR image. For each different exposure time used, a flat field cube was captured using the same exposure setting, as well as a dark image with the lens cap on, to discount the effect of dark current noise.
Building of raw weight maps
73During the raw capture, those pixels receiving a too high light signal and those receiving a too low light signal are saturated and underexposed respectively. All this information is lost. Since these sensor responses are going to be used for building the final hyperspectral reflectance cube, there is the need to control which sensor responses can be trusted and which ones cannot. For this aim, weight maps are built. For each pixel response, a weighting function is applied (see Fig. 5, left).
74This weighting function was proposed in [26], and previously successfully used in [31]. It assigns a value of 1 to each sensor response that can be fully trusted (usually the range where the camera response is linear), and a value of 0 to those responses that are saturated or underexposed. An example of a resulting weight map for one spectral band is shown in Fig. 5, center. In this image, higher weights are represented with lighter gray levels and lower weights with darker gray levels. Those regions where the sensor responses were too high or too low appear as dark pixels in the weight map. This is the reason why subsequent images with higher or lower exposure times were captured, until each pixel was correctly exposed in at least one shot [31]. For each focusing position, the summation and the mean weight cube of all exposures was calculated in order to check that all the regions were correctly exposed. If the sum weight cube presented any null values, it would mean that these areas were not correctly exposed in any shot. Moreover, the mean weight cube contains information of which areas are more reliable than others. An example of this can also be seen in Fig. 5, right. These weight cubes were built for both sample and flat field samples (which also presented saturation and under-exposure). No sum weight cube was found with null values, nor was any mean weight cube found with values lower than 0.8 (over 1). Hence, all the pixels were correctly exposed in each of the three focusing positions.
Calculation of radiance cubes
75Transforming raw sensor responses to radiance values is straightforward (using Eq. (2)), if the function relating incoming radiance with sensor response had been previously calculated. This function is called camera response function (CRF) and can be easily worked out by several methods [23,29,31]. In this case, the capturing system was already calibrated so that the radiance cubes needed were directly retrieved. Remember that, as explained in section 3.2.2, this calibration will yield a radiance value even if the raw sensor response is saturated or underexposed. There is no way of knowing which radiance value is valid or not unless the previously calculated weight cubes are used.
Registration of cubes
76Changing the focus leads to changes in the lateral magnification, which leads to a change in the effective field of view of the camera even if neither the camera nor the scene have moved at all. Moreover, for the correct capture of the furthest infrared bands (800 to 1000 nm), very high exposure times were needed due to the low responsivity values of the sensor. In this case, the continuous scanning mode did not work properly. Instead, the step mode scanning was set and the rotating stage moved step by step instead of continuously. For this reason, the aspect ratio of the final image changed noticeably. For these two main reasons, the registration of all captured cubes with either different focus settings or captured using the step size mode was a necessary step in the processing work-flow. Registration was performed using feature-based methods by automatic control-point detection and SURF feature extraction methods [39] implemented in the Matlab toolbox for image registration: Image Estimator (extracting SURF features to determine a set of control points with an affine transform type, which was the transformation giving the best registration quality among the ones implemented for feature-based registration in Matlab, as assessed by the SSIM metric index values). This registration kept both the global and local aspect ratios of the original painting. However, for bigger canvas sizes or closer capturing distances, there could be a need for geometrical corrections in order to compensate for the projection of the cylindrical focal plane on the painting plane. If this happens, non-rigid registration techniques can be applied on the final cube [33,38].
Building HDR flat field cubes
77Capturing the flat field samples with a non-uniform illumination, and using different exposure times in different wavelengths, also leads to underexposed and saturated values. Since the flat field radiance cubes are going to be used to retrieve the reflectance information, the radiance values for all pixels must be valid. Therefore a HDR radiance flat-field cube is built by blending the differently exposed LDR flat field cubes according to Eq. (3).
78where rad f f H DR (x, y, λ) is the HDR flat field radiance cube value. ω n (x, y, λ) is the weight map for the n th LDR flat field raw cube, and rad n, f f i (x, y, λ) is the n th LDR flat field radiance cube. λ represents the wavelength and x and y the pixel positions.
Calculation of LDR reflectance cubes
79Once the raw cubes have been converted into radiance cubes, and the HDR flat field cubes calculated, the LDR reflectance cubes are computed. All the raw cubes are automatically dark corrected after capturing. Thus, the reflectance cubes are computed as shown in Eq. (4).
80where re f LDR,n (x, y, λ) is the n th LDR reflectance cube. rad sample,n (x, y, λ) is the n th radiance cube for the sample, rad f f H DR (x, y, λ) is the HDR flat field radiance cube previously calculated using Eq. (3), and re f f f (λ) is the spectral reflectance of the gray tarp (uniform for the whole tarp).
81We have to take into account that this reflectance still has saturation and underexposure. Therefore, multiple LDR reflectance cubes are built for each focus position, each of them with different areas with valid reflectance values.
Building of HDR reflectance cubes
82After calculating the LDR reflectance cubes (re f LDR,n (x, y, λ)), they are blended together into an HDR reflectance cube. This is the step where the weight maps (ω n (x, y, λ)) previously calculated in the raw images (see sub-section 3.6) are important. They are used to compute the final HDR reflectance cubes (re f H DR (x, y, λ)) using Eq. (5).
83Note that, even though HDR capture has been used due to the high dynamic range of the radiances incoming from the scene captured (with highlights and shadowy areas), the final reflectance of the painting does not need to contain HDR information. Actually, the reflectance of a painting (and in general most reflectances), is rarely going to have any HDR content [26,27]. Rather, HDR is only present in radiances, where powerful light sources or dim shadowy areas are present in the same scene.
Results and discussion
84We built two reflectance cubes. The first is the multi-focus HDR version proposed in section 3 (Cube H DR ). The second is a LDR version of it (Cube LDR ), which is captured in the basic way to operate the system, using a single exposure time and a single focusing for the whole capture. After the final reflectance cubes were built (both the HDR and the LDR versions), different aspects of their qualities were evaluated. In the following sub-sections, the sharpness is evaluated as well as the color and spectral metrics using a Spectroradiometer model Spectrascan PR-745 (Photo Research Inc. USA), as ground truth. Besides, an example application is shown were highly reflective golden material is segmented from a real facsimile.
Focus evaluation
85This evaluation consisted of simulating RGB captures under D65 illumination, and rendering CIE 1976 L*a*b* images (Lab image) from the spectral reflectance cubes. Then a sharpness index (S) [35][36][37] was computed to the luminance channel (L*) as shown in Eq. (6), where h and v are image height and width respectively, i = 1...h; j = 1...v and G x , G y are the horizontal and vertical gradient vector components.
86An sRGB image was also computed for each one using a color conversion from the L*a*b* image to sRGB color space. Results of both images are shown in Fig. 6. Note that zoom-in details of the same area are included in both cases to better appreciate the effect of chromatic aberration on the colored edges of the LDR image. The higher the value of S, the sharper or better focused the image is. Three different sharpness values were computed in order to study separately the effect of using HDR imaging techniques and multifocus techniques. Those values were S LDRmono = 0.0280, S H DRmono = 0.0312, and S H DRmulti = 0.0421. They correspond to mono-focus LDR, mono-focus HDR and multi-focus HDR cases respectively. It can be seen that, only using HDR imaging techniques, the sharpness index improves 11.4%. Comparing mono-focus HDR and multifocus HDR, the improvement is 34.9%. Finally, the total improvement comparing mono-focus LDR with the proposed multi-focus HDR is 50.4%. This points out the fact that the sharpness improvement is due to both the use of HDR imaging techniques (which usually increase the signal to noise ratio), and the multiple focus approach which reduces the impact of chromatic aberrations. These results are in agreement with the less blurry appearance of the sRGB image computed from the HDR cube compared with the one computed from the LDR cube. How the LDR color image simulated is more blurry and suffers from chromatic aberration can be seen in Fig. 6. This introduces spatial color artifacts in the image by mixing information from different bands in the LDR reflectance cube, contributing to the final blur of the image.
Color and spectral evaluation
87This evaluation consisted of using different color and spectral metrics to compare the spectral reflectances obtained from both HDR and LDR spectral reflectance cubes, with those measured using a spectroradiometer in the exact same areas of the painting. For this purpose, a spectroradiometer was used to measure the spectral reflectance of the painting in 16 different areas as ground truth. These areas were selected to present a wide variety of colors within the gamut of the painting. Two spectral radiance signals were measured in each point from 400 to 1000 nm. The first was the sample radiance, directly from the painting. The second was the white radiance, from a Spectralon standard white patch (Sphere Optics GmbH) placed on top of the painting in the exact same areas. The final spectral reflectance was computed as shown in Eq. (7).
88where R ( n, λ) is the spectral reflectance at area sample number n, rad sample (n, λ) is the sample spectral radiance at the same sample area, rad white (n, λ) is the spectral radiance measured from the white patch placed at the same area, and re f white (λ) is the spectral reflectance of the white patch provided by the manufacturer.
89These reflectances were compared to those extracted from the same 16 areas in both Cube LDR and Cube H DR , averaging areas of equivalent size in the same points. Results plotted in Fig. 7 show that, especially in some samples (number 5,7,8,10,11,16), the reflectances calculated in the LDR approach differ more from the measured reference reflectances in the region around 600 nm. This is due to the fact that in those regions and wavelengths, the LDR capture was saturated either in the painting capture or in the gray tarp. Therefore, when doing the flat field correction, the calculated reflectance differs more from the measured one in those wavelengths. The quantitative metrics computed to compare the reflectances retrieved from the two spectral cubes and the spectroradiometer measurements in the 16 areas are shown in Tables 1 and 2. The reason for computing the spectral metrics twice is that, in color metrics, only the visible range is taken into account. Therefore, two spectra could be very similar in the visible range, but have differences in the infrared region, or the other way around. It is clear that the mean error metrics are much better for the Cube H DR , with a colorimetric performance improvement of 71.6%. Regarding the spectral metrics, in the visible range, the GFC is improved in 66.98%, and the RMSE in 36.96%. On the other hand, in the whole spectral range, the GFC is improved in 65.63% and the RMSE in 48.89%. Note that, since the GFC is a metric where the perfect match value is 1, the improvement is calculated using its complementary metric cGFC calculated as cGFC = 1−GFC. Only one sample area had a better performance in the Cube LDR . The remaining 15 sample areas yielded better results in the Cube H DR .
90It would not be a fair comparison without mentioning the issue of the capturing time. In the regular LDR capture, only one sample cube, one black cube and one flat field cube need to be captured, whilst in the proposed HDR capture, a total of 15 cubes were captured (9 sample cubes, 3 flat field cubes and 3 black cubes). This is the price to pay for retrieving a higher quality reflectance image data.
Additional example of application: identification of golden foil in a facsimile
91As a final experiment, an original facsimile from the British Library of London has been captured using the proposed framework. This facsimile (see Fig. 8), presents areas of golden highly reflective material. These kinds of materials always represent a challenge for image capturing systems. The problem is that depending on the illumination/observation geometry, the capturing device may receive specular reflections from the sample. If this happens, these areas would most probably saturate the sensor when using the exposure times needed to correctly capture the rest of the scene. Even if the illumination could be controlled, if the samples are not perfectly flat (as is the case in many artworks and illuminated manuscripts which have irregular texture), avoiding the saturated areas would not be possible by only manipulating the light sources. Therefore, even in controlled illumination laboratory conditions, the high dynamic range may still be a problem for this kind of samples. As in previous sections with the art painting, two spectral reflectance cubes of the facsimile were captured (one LDR and one HDR). These cubes were used for the automatic detection of those areas of the facsimile containing the highly reflective golden material. For such a purpose, the best results were found using the spectral metric goodness of fit coefficient (GFC) in both cases, in the near infrared spectral range from 700 to 1000 nm. The segmentations of the HDR and LDR cubes were compared with a manually segmented ground truth (shown in 8 center of bottom row). Since there are only two possible labels for each pixel (0 for non-golden material and 1 for golden material), the performance was compared as the percentage of matches between the automatic segmentations and the ground truth. In Fig. 8, the RGB renderizations show that the LDR cube was saturated in some golden areas of the facsimile (top left and bottom right scenes), while all the pixels in the HDR cubes were correctly exposed. This resulted in more false negatives and false positives found in the LDR cube compared to the HDR cube. The performance of the segmentations was: P H DR = 95.50% and P LDR = 83.78%. These results show a 11.72% improvement in performance for the given segmentation task. Note that those areas which were saturated in the LDR cube, were not correctly detected as golden material, but they were in the HDR cube. Hence, if due to illumination or a rougher texture of the artwork, more areas were specularly reflecting light to the capturing device, the difference in performance would be higher.
Conclusions and future work
92In this study, a complete framework is introduced for the hyperspectral reflectance capture of a painting in situ, and under high dynamic range conditions. Both the high dynamic range and the focusing problem due to chromatic aberrations have been overcome by using multiple captures with different focus positions and exposure times. A final hyperspectral reflectance cube has been computed using weighting maps calculated for both sample and flat fields and the quality of this cube has been tested and compared with a spectral cube captured in the usual LDR and single focus way. Our results show that the proposed method outperforms the best low dynamic range capture acquired. The sharpness index, as well as the color and spectral metrics show that it is possible to achieve good quality spectral reflectance images using a hyperspectral scanner in non-controlled illumination conditions. Moreover, as an example application, highly reflective golden material has been segmented from a facsimile. Our results show that by applying the proposed framework for capturing and processing, those areas which saturate the sensor in the usual capturing way, can be correctly exposed and segmented using the HDR multifocus capture. In future research, a new version of this framework will be developed including piecewise cube stitching for blending different cubes captured in different regions of big paintings. This will allow us to get closer to the painting and retrieve higher spatial resolution data, whilst still maintaining the spectral resolution and performance achieved in this study. Moreover, we will use the spectral reflectance images computed in this study, together with X-ray fluorescence measurements for the non-invasive pigment identification, in order to help the dating of ancient paintings and other works of art.
Funding
93Spanish Ministry of Economy and Competitiveness, DPI2015-64571-R, ECQM2018-004952-P
참고문헌 27건
- Nonrigid registration with free-form deformation model of multilevel uniform cubic B-splines: application to image registration and distortion correction of spectral image cubes Applied Optics · Optica Publishing Group · 2014 10.1364/ao.53.003764
- Autofocus using adaptive prediction approximation combined search for the fluorescence microscope in second-generation DNA sequencing system Applied Optics · Optica Publishing Group · 2014 10.1364/ao.53.004509
- Outdoor scene reflectance measurements using a Bragg-grating-based hyperspectral imager Applied Optics · Optica Publishing Group · 2015 10.1364/ao.54.000d15
- Combining transverse field detectors and color filter arrays to improve multispectral imaging systems Applied Optics · Optica Publishing Group · 2014 10.1364/ao.53.000c14
- Spectrogenic imaging: A novel approach to multispectral imaging in an uncontrolled environment Optics Express · Optica Publishing Group · 2014 10.1364/oe.22.009123
- Advances in multispectral and hyperspectral imaging for archaeology and art conservation Applied Physics A · Springer Science+Business Media · 2011 10.1007/s00339-011-6689-1
- Hyperspectral Imaging Applications in Agriculture and Agro-Food Product Quality and Safety Control: A Review Applied Spectroscopy Reviews · Taylor & Francis · 2013 10.1080/05704928.2012.705800
- Multispectral and hyperspectral imaging technologies in conservation: current research and potential applications Studies in Conservation · Taylor & Francis · 2006 10.1179/sic.2006.51.supplement-1.3
- Unsupervised illuminant estimation from natural scenes: an RGB digital camera suffices Applied Optics · Optica Publishing Group · 2008 10.1364/ao.47.003574
- Adaptive exposure estimation for high dynamic range imaging applied to natural scenes and daylight skies Applied Optics · Optica Publishing Group · 2015 10.1364/ao.54.00b241
- Camera and visual veiling glare in HDR images Journal of the Society for Information Display · Wiley · 2007 10.1889/1.2785205
- Identification of pigments by multispectral imaging; a flowchart method Heritage Science · Springer Science+Business Media · 2014 10.1186/2050-7445-2-8
- Correlated color temperature preferred by observers for illumination of artistic paintings Journal of the Optical Society of America A · Optica Publishing Group · 2008 10.1364/josaa.25.000623
- Color study of Mudejar paintings of the pond found in the palace of “Reales Alcazares” in Seville Color Research & Application · Wiley · 2007 10.1002/col.20351
- Visible and infrared imaging spectroscopy of paintings and improved reflectography Heritage Science · Springer Science+Business Media · 2016 10.1186/s40494-016-0075-4
- High Dynamic Range Spectral Imaging Pipeline For Multispectral Filter Array Cameras Sensors · Multidisciplinary Digital Publishing Institute · 2017 10.3390/s17061281
- Illuminant estimation in multispectral imaging Journal of the Optical Society of America A · Optica Publishing Group · 2017 10.1364/josaa.34.001085
- Non-destructive pigment characterization in the painting Little Madonna of Foligno by X-ray Powder Diffraction Microchemical Journal · Elsevier BV · 2017 10.1016/j.microc.2017.07.001
- Assessment of multispectral and hyperspectral imaging systems for digitisation of a Russian icon Heritage Science · Springer Science+Business Media · 2017 10.1186/s40494-017-0154-1
- Image processing pipeline for segmentation and material classification based on multispectral high dynamic range polarimetric images Optics Express · Optica Publishing Group · 2017 10.1364/oe.25.030073
- Automatic pigment identification from hyperspectral data Journal of Cultural Heritage · Elsevier BV · 2018 10.1016/j.culher.2018.01.003
- High-Dynamic-Range Spectral Imaging System for Omnidirectional Scene Capture Journal of Imaging · Multidisciplinary Digital Publishing Institute · 2018 10.3390/jimaging4040053
- Spectral Adaptation Transform for Multispectral Constancy Journal of Imaging Science and Technology · Society for Imaging Science and Technology · 2018 10.2352/j.imagingsci.technol.2018.62.2.020504
- Spectral adaptation Color Research & Application · Wiley · 2007 10.1002/col.20293
- IS&T/SPIE Electronic Imaging SPIE Professional · SPIE - International Society for Optical Engineering · 2013 10.1117/2.4201304.17
- Hyperspectral imaging applied to the analysis of Goya paintings in the Museum of Zaragoza (Spain), Technart 2015, 27-30 avril 2015, Catane HAL (Le Centre pour la Communication Scientifique Directe) · Centre National de la Recherche Scientifique · 2016 10.1016/j.microc.2015.11.044
- Illumination estimation from specular highlight in a multi-spectral image Optics Express · Optica Publishing Group · 2015 10.1364/oe.23.017008