기본 정보
- 저자
- DOI
- 10.5201/ipol.2021.391
- 저널
- Image Processing On Line
- 발행년도
- 2021
- 발행기관
- Image Processing On Line
- 피인용수
- 2
- 라이선스
- cc-by-nc-sa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.5201/ipol.2021.391
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4200301688
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 31,586자
본문 펼치기
섹션 본문 73문단 · 16,857자
(제목 없음)
1The Retinex perception theory tries to mimic the human ability to cope with the high dynamic range of natural scenes.In 1986 E. Land proposed a formulation of this model in terms of a Center/Surround operation involving two steps, a local adaptation and a global transform.This model gave rise to the so-called Center/Surround tone-mapping algorithms.In this paper we unify the different Center/Surround algorithms proposed in the literature using a common framework and analyze several possibilities for the local and global operations involved.Source CodeThe reviewed and documented source code and an online demo are available at the web page of this article 1 .Compilation and usage instructions are included in the README.txtfile of the archive.
Introduction
2The adaptation of the human visual system (HVS) to several orders of magnitude of light intensity permits us to perceive a wide spectrum of lights and contrasts which, in general, a camera is unable to capture.The reason is that the eye is a contrast detector, not an absolute detector like the sensor in a digital camera.Edwin Land proposed, in 1964, a complex algorithm involving image paths to compute relative lightness values from the absolute values captured by the camera [6].
3Later, he published [7] an alternative formulation of the original algorithm in which the relative lightness was computed as the ratio between the value of a pixel and the weighted average of the surrounding values.This operation was followed by a logarithmic mapping of the ratios in order to mimic the non-linear behaviour of the HVS with respect to low and high values of the illumination.
4where I(x) is the light intensity captured by the camera at pixel x (we are considering here a single-channel image), F is a surround radial kernel, and f is a global scaling function.Equation (1) defines a Center/Surround model of image perception.In this paper we shall analyze different alternatives both for the kernel and the scaling function, and we will give algorithmical details of the implementation of the model.For a more detailed analysis we refer the reader to [10].
5The paper is organized as follows: in Section 2 different alternatives for the kernel function are analyzed; similarly, several possible scaling functions are examined in Section 3. The main center/surround algorithm is described in Section 4, together with some technical details.Several experiments are displayed in Section 5, and some conclusions are drawn in Section 6.
Kernel Functions
6Mathematically, two conditions should be imposed to the kernel: scale invariance and integrability.As proved in [14], the only radial kernel which is scale invariant is F (r) = K r 2 , which is the (nonintegrable) kernel proposed by Land in [7].Several other radial kernels have been proposed in the literature [7,13,5,4,3,12,14,17].In [10] an exhaustive analysis of these kernels is performed, and some new ones are proposed.The authors unify all these kernels into five models, which are summarized in Table 1 and described next:
7• F AG is the generalization of the Gaussian kernel and a linearized version of the multiscale Retinex (MSR) [4].It is a weighted average of Gaussian kernels at different scales and it is defined as
8where N is the number of scales, σ i is the scale parameter of the i-th kernel and w i is its corresponding weight factor.
9Following [4], the scales are distributed following a geometric series
10The initial scale σ 1 is a parameter.Since convolutions with Gaussians whose σ is of the order of the image size or bigger yield a constant result, the final scale σ N can be chosen depending on the image dimensions
11where S is also a parameter.
12Finally, we propose to define the weights as w i = 1 N .In this way, we have reduced the parameters of the kernel to N , σ 1 and S.
13• F IG was first introduced in [14] to find a compromise between scale invariance and integrability.
14It is a continuous average of Gaussians from scale σ 1 to σ 2 .
154π log(σ 2 /σ 1 ) , r = 0.
16(
17where the initial scale σ 1 is a parameter, and the final scale σ 2 is chosen depending on the image size as in the previous case
18where S is also a parameter.
19• F 2,σ is the continuous version of the Land kernel
20where C is a normalization constant such that
21• F IE is a continuous average of exponentials
22It is inspired by an early work by Moore et al. [13], which proposed an exponential kernel
23that permitted a real-time implementation in analog VLSI.
24In F IE the weight of the central point in the convolution kernel is of order O( 1 σ 1 σ 2 ) showing the inverse proportionality of both parameters.As is analyzed in [10], to obtain good results the product between σ 1 and σ 2 must be constant.Since the kernel is not scale invariant, the values of the initial and final scales σ 1 and σ 2 are chosen depending on the image size as σ 1 = s/min(image width, image height),
25where s and S are parameters.
26• F 1,σ is the continuous version of the ACE kernel [17]
27where C is a normalization constant such that
28This kernel is not scale invariant, therefore the scale σ is chosen depending on the image size as
29where s is a parameter.
Kernel Parameters
30The five models of surround kernels that summarize the state of the art.
Optimum Values of the Kernel Parameters
31In [10] the authors studied, in terms of some distortion measures, the range of values of the parameters of the different kernels.In this study they observed that kernels F AG , F IG and F 2,σ , which are differentiable at r = 0, produce more halo distortion than F IE and F 1,σ which are non-differentiable at r = 0.This is because the halo becomes more visible as the size of the kernel decreases, and the non-differentiable kernels have a less local behavior.Table 2 presents the recommended parameter values.In Section 5 several examples illustrate how these parameters influence the obtained results.
32Kernel Recommended parameter values
Scaling Functions
33The human visual system (HVS) is able to discount the effect of the illumination in the perception of the scenes.The Retinex theory tries to mimic the HVS, with the center/surround formulation.Moreover, Land in [8] observed that the function which relates reflectance with lightness sensation can be approximated by a logarithmic function.Naka and Rushton [15] were the first to model the contrast sensitivity as a sigmoid function.Reinhard in [16] noticed the mathematical properties of sigmoid functions to model the HVS.On the other hand digital images suffer several camera processes, such as gamma-corrections and white balance, which these mapping functions must take into account.In [10] different options for these mapping functions (also known as scaling functions) were analyzed.Table 3 summarizes them.Note that these functions are defined for single channel images.For color images they are applied on a channel-by-channel basis.
34In what follows, M in and M ax refer to the minimum and maximum values of the range of the center/surround operation I F * I , which shall be mapped to the usual [0, 255] range.• Linear mapping.It consists in just a linear stretching of the input range to the desired output range.
35• Logarithmic mapping.Inspired by the tone curve proposed by Drago et al. [1], which produces better results (less noisy in dark areas) than simply replacing the linear values by logarithms in Equation (8).
36• Power function.
37The parameter α can take positive and negative values.In our implementation, we have the option to automatically fix α so that the median of the input values is mapped to the center of the output range, i.e. 127.52 .
38• Naka-Rushton function.Naka and Rushton [15] modeled the contrast sensitivity in the human visual system as the sigmoid function f (x) = x x+s , where s is the value which is mapped to 0.5.We modify this function such that M in is mapped to 0 and M ax is mapped to 255.
39where A > 0 is a constant that controls the steepness of the function.For large values of A f N R tends to a linear function f L .
40In our implementation, we have the option to automatically fix A so that the median of the input values is mapped to the center of the output range, i.e. 127.53 .Note that this can only be achieved for positive values of A when the median is below M in+M ax
2
41. If this is not the case, A is fixed automatically to a large value, so f N R becomes linear.
42• Taking into account the shape of the histogram of the center/surround operation I F * I , we consider a histogram-based function, which is adapted to the pixel distribution of the values.It is a generalization of the one proposed by Mai et al. [11].The function is computed as the minimizer of the functional
43where h denotes the normalized histogram and p > 0 is a parameter.
44The closed-form solution of the minimizing problem is
45where C is such that f E (M ax) = 255.Observe that for p = 0 f E is a histogram equalization.
46In general, the parameter is fixed to p = 2, as proposed in [11].
47Definition of M in and M ax.The values defining the range of the center/surround operation I F * I could simply be computed as the minimum and maximum values of this operation.However, in order to increase the dynamic range of the final output, it is sometimes useful to clip to either 0 (black) or 255 (white) some of the lowest (resp.highest) values of the original range.Therefore, M in and M ax are computed by selecting the percentages of image pixels that will be clipped to black (s black %) or white (s white %).Algorithm 1 describes how these values are computed.This algorithm is an adaptation of the algorithm for robust normalization proposed in [2], which itself is a variant of the simplest color balance algorithm proposed in [9].
48Algorithm 1: Compute Min-Max (adapted from [2]) Input : input image u with N pixels Input : percentage of saturation in the white and the black, respectively s white and s black Output : Min, Max The complete algorithm for the computation of the center/surround operation on an image is presented in Algorithm 2.
49Computation of the convolution I * F .The convolution between the original image and the kernel function is computed in the Fourier domain.By using the FFT and IFFT functions of the FFTW software library4 the original image is extended symmetrically across its sides, so that the extended image, which is four times bigger, becomes symmetric and periodic.In fact, with the FFTW library the symmetrization is implicit and performed directly as a cosine transform.By using these functions the convolution is computed as
Experiments
50In a previous article [10], we carried out an analysis for different combinations of kernel and global mappings, using quantitative and qualitative criteria, over HDR images.For these images, most of the values were concentrated on the lower part of their dynamic range.This is not usually the case for the LDR images studied in the current paper.For this reason the conclusions of our analysis are slightly different from the ones in [10].In general, we have observed that, for these images, the recommended ranges of values of the parameters of the kernels, shown in Table 2, are correct, but some minimum values must be increased.
51In Figure 1 we compare the value of different parameters for the F AG kernel, with a fixed scaling function (f log ).In this image, we can observe that we obtain better results with the number of scales greater or equal to 5. We also observe that values of S smaller than 0.5 produce artifacts in the image.The tests show that the variation of the σ 1 parameter does not produce meaningful changes in the results.
52In the case of the F IG kernel, the minimum recommended value of the σ 1 parameter in Table 2 is 0.125, however, for most LDR images it produces excessively bright results.A value greater or equal to 0.5 produces better results in this case.This fact can be observed in Figure 2.
53The recommended values for the parameters of the kernel F IE in Table 2 are valid for the tested LDR images.However, the parameter of the kernel F 1,σ must be increased.In Figure 3, we can observe that values smaller than 0.5 may enhance excessively the bright parts of the image.
54Finally, the σ parameter for the kernel F 2,σ should be set to values greater than 0.5, as it can be seen in the experiments of Figure 4.
55In Figure 5, we can compare the results obtained with the different kernels on the same input image and with a fixed scaling function (f log ).The parameters of the kernels are fixed to their optimum values according to the previous comments.We observe that the non-differentiable kernels, F IE and F 1,σ obtain much better results, in terms of creation of halo artifacts.This is because the halo becomes more visible as the size of the kernel decreases, and the non-differentiable kernels have a less local behavior than the differentiable ones.Finally, in Figure 6, we can see another example.In this case, the halo artifacts are not detectable, but we can observe an excessive saturation in the window when using non-differentiable kernels.
56If we analyze the scaling functions and their parameters, we observe that most of them have no parameters, or these can be fixed automatically to obtain that the median of the values of the C/S output is mapped to 127.5.Some results obtained with different values of the parameters for Calobra image F AG with N = 5, σ 1 = 1, S = 1 F IE with S = 1, s = 1 functions f α and f N R are displayed in Figure 7. Figures 8, 9 and 10 show results obtained with the different scaling functions (using the automatically estimated parameters when necessary) and three different kernels.In general, the results are brighter for f and f N R , and better contrasted for f E .In some images (e.g. Figure 9) the results with the f α scaling are excessively dark.
Conclusions
57The center/surround formulation of the Retinex theory has been thoroughly analyzed in this paper.Several alternatives, both for kernel and scaling functions, have been considered.
58Experiments conducted on several images show that non-differentiable kernels at r = 0 (F IE F 1,σ ), being less local, produce fewer visual artifacts (e.g.halos) than differentiable ones (F AG , F IG , F 2,σ ).On the other hand, the rendition of image details is better for the latter.Regarding the scaling functions, f E produces the better contrasted results.
59The reader is invited to test the different options with the online demo associated to the article.
1
60https://doi.org/10.5201/ipol.2021.391A generalization of this formulation leads to the following model for the computation of the image lightness L L(x) = f I(x) F * I(x) ,
2 ifF 3 I ′ ←− 0 4 for 5 I 6 else//Compute convolution 7 I 8 I 12 I
61percentages of black and white saturated pixels (s black and s white ), parameters of kernels and scaling functions1 for each image channel I from u do //Compute I ′ = I * F == F AG then //Compute weighted sum of Gaussian convolutions each i ∈ {1, . . ., N } do ′ ←− I ′ + w i • I * F G,σ i ′ ←− I * F //Compute center/surround image CS = I I ′ +ε //Add small constant value (ε = 10 −8 ) to avoid division by zero //Compute range [M in, M 9 Min, Max ←− Compute Min Max(u, s 1 , s 2 ) //Algorithm 1 //Map range [M in, M ax] to [0, 255] using scaling function f 10 v ←− ∅ //Initialize output image 11 for each image channel I CS do out ←− f (I CS ) 13 v ←− v ∪ I out //Add processed channel to output image 14 return v
1 N = 5 ,
62Calobra image N = 2, σ 1 = 0.5, S = 1 N = 5, σ 1 = 0.5, S = 1 N = 10, σ 1 = 0.5, S = σ 1 = 1, S = 0.125 N = 5, σ 1 = 1, S = 0.5 N = 5, σ 1 = 1, S = 2
Figure 1 :
63Figure 1: Comparison between the different parameters with the F AG kernel with f log scaling function.
σ 1 1 σ 1 = 1 , S = 1 σ 1 = 4 ,
64= 0.125, S = 1 σ 1 = 0.5, S = S = 1
Figure 2 :
65Figure 2: Comparison between the different parameters with the F IG kernel with f log scaling function applied to the image Calobra in Figure 1.
Figure 3 :
66Figure 3: Comparison between the different parameters with the F 1,σ kernel with f log scaling function applied to the image Calobra in Figure 1.
Figure 4 :
67Figure 4: Comparison between the different parameters with the F 2,σ kernel with the f log scaling function applied to the image Calobra in Figure 1.
Figure 5 :
68Figure 5: Comparison between the different kernels with the f log scaling function.
4 7:
69Swam image f α with automatic value f α with α = 0.5 f α with α = 2 f N R with automatic value f N R with A = 2 f N R with A = Comparison between the results obtained with different parameters for the f α and f N R scaling functions, with fixed F IG kernel.Swam image f E with p = 2 L f log f α with automatic value f N R with automatic value 8: Comparison between the results obtained with different scaling functions, using a fixed F IE kernel.Horses f E with p = 2 f L f log f α with automatic value f N R with automatic value
Figure 9 :
70Figure 9: Comparison between the results obtained with different scaling functions, using a fixed F AG kernel.
Figure 10 :
71Figure 10: Comparison between the results obtained with different scaling functions, using a fixed 1,σ kernel.
Table 2 :
72Recommended ranges of values of the parameters of the kernels that guarantee a minimum degree of visual distortion in the results.
Table 3 :
73Scaling functions reviewed in Section 3.
참고문헌 16건
- High Dynamic Range Imaging: Acquisition, Display, and Image-Based Lighting 2010
- S‐potentials from colour units in the retina of fish (Cyprinidae) The Journal of Physiology · Wiley · 1966 10.1113/jphysiol.1966.sp008001
- Simplest Color Balance Image Processing On Line · Image Processing On Line · 2011 10.5201/ipol.2011.llmps-scb
- An alternative technique for the computation of the designator in the retinex theory of color vision. Proceedings of the National Academy of Sciences · National Academy of Sciences · 1986 10.1073/pnas.83.10.3078
- What is the right center/surround for Retinex? 2022 IEEE International Conference on Image Processing (ICIP) · 2014 10.1109/icip.2014.7025923
- The Retinex Theory of Color Vision Scientific American · Springer Nature · 1977 10.1038/scientificamerican1277-108
- Formal connections between lightness algorithms Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001684
- A new algorithm for unsupervised global and local color correction Pattern Recognition Letters · Elsevier BV · 2003 10.1016/s0167-8655(02)00323-9
- Properties and performance of a center/surround retinex IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1997 10.1109/83.557356
- A real-time neural system for color constancy IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1991 10.1109/72.80334
- Optimizing a Tone Curve for Backward-Compatible High Dynamic Range Image and Video Compression IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2010 10.1109/tip.2010.2095866
- A multiscale retinex for bridging the gap between color images and the human observation of scenes IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1997 10.1109/83.597272
- Adaptive Logarithmic Mapping For Displaying High Contrast Scenes Computer Graphics Forum · Wiley · 2003 10.1111/1467-8659.00689
- Bio-inspired color image enhancement Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2004 10.1117/12.526545
- An Implementation of the Exposure Fusion Algorithm Image Processing On Line · Image Processing On Line · 2018 10.5201/ipol.2018.230
- Analyzing center/surround retinex Information Sciences · Elsevier BV · 2019 10.1016/j.ins.2019.10.009