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

A Method to Improve Robustness of the Gray World Algorithm

관련 필름·전자재료 · (15) 디스플레이 패널재료

기본 정보

저자
  1. Guanghua Chen — Microelectronics R&D center, Shanghai University, Shangahi, 200072, China
  2. Xiaolong Zhang — Microelectronics R&D center, Shanghai University, Shangahi, 200072, China
DOI
10.2991/iccmcee-15.2015.46
저널
–
발행년도
2015
발행기관
–
피인용수
9
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.2991/iccmcee-15.2015.46
토픽
Color Science and Applications
OpenAlex ID
W2164413325

평가 내용

관련도
관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
LLM(gemma-4-26b-a4b-it) 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The gray world algorithm is a popular white balance algorithm used for digital camera, but its effect is influenced by the wrong color temperature estimation result due to the incorrect assumption.To resolve this problem, an improved method of gray world algorithm is presented in this paper.Every patch in the picture is detected by edge detection, and weight value is set for each one according to the size of the patches.Then this weighted image is processed by the gray world algorithm to reduce the influence of big color patches in the image and promote the accuracy of color temperature estimate.The simulation results show that this algorithm can achieve more accurate white balance correction than other gray world algorithm.

본문 27,711자

본문 펼치기
# A Method to Improve Robustness of the Gray World Algorithm Chen Guanghua 1,a, Zhang Xiaolong 2.b 1,2 Microelectronics R&D center, Shanghai University, Shangahi, 200072, China achghua@shu.edu.cn, b787552372@qq.com Keywords: white balance, gray world algorithm, pixels weight, edge detection, image segmentation Abstract. The gray world algorithm is a popular white balance algorithm used for digital camera, but its effect is influenced by the wrong color temperature estimation result due to the incorrect assumption. To resolve this problem, an improved method of gray world algorithm is presented in this paper. Every patch in the picture is detected by edge detection, and weight value is set for each one according to the size of the patches. Then this weighted image is processed by the gray world algorithm to reduce the influence of big color patches in the image and promote the accuracy of color temperature estimate. The simulation results show that this algorithm can achieve more accurate white balance correction than other gray world algorithm. Introduction Color constancy of human eyes can make us recognize the true color of objects under complex illumination conditions. However, image sensor records the real color of objects, so a picture captured by image sensor depends not only on the color of the object, but also the color temperature of external light source. Such as, a white object under the low color temperature appears reddish. On the contrary, it is bluish in high color temperature environment. To correct this color deviation due to different color temperature of light source, white balance algorithm is necessary to adjust the image recorded by sensor. The aim of this adjustment is not only the appearance of the image, but also significant for the next use, such as object analysis, pattern recognition, medical imaging, etc. In the past years, several automatic white balance algorithms have been proposed [1]. Generally, these algorithms can be divided into two classes, algorithms based on direct pixel calculation and algorithms using information obtained by learning. The first class includes gray world algorithm [2], perfect reflect method [3] and so on. Because of its low computational complexity, it is suitable for situations with high real-time requirements such as digital camera and cell phone. But the large color patches in the scene seriously affect the algorithm's color temperature estimation accuracy, which has impaction on color adjustment result. Some methods have been proposed to resolve this problem, for example, the image regions based algorithm [4], the method searching color patches by machine learning [5], the method based on image feature [6] etc. The second class includes the algorithm based on Neural Network [7], the algorithm based on gamut mapping [8,9,10], the algorithm based on statistical analysis [11] etc. Although those algorithms can achieve good results, they are difficult to meet the requirements of real-time due to the large amount of calculation. An improved method of the gray world algorithm is presented in this paper, which improves the accuracy of gray world algorithm in the scene existing big uniform color objects. This algorithm reduces their interference by finding those out. In the algorithm, edge detection is applied to determine the edge line of objects, and image region segmentation is performed to find those color patches out. A weight value is set for every found color patch according to their sizes, which decreases these influence on color temperature estimation and improves color adjustment effect. Gray World Algorithm Von Kries Theory. Von Kries theory indicates that the transformation relationship between the two different light sources is actually an independent gain adjustment of the three color channels. Three gain coefficients to adjust three kinds of pyramidal signals (M, L, S) are different. In this model, the RGB channel is usually considered as an approximation of the M, L, and S retinal bands. That is, those three gain coefficients are used to adjust an image under one light source to another one. <sup>?</sup> ? <sup>?</sup> That is, those three gain coefficients are used to adjust an image under one light source to another one. An image I under light condition ??= (????, ????, ????) <sup>??</sup> can be converted to I’ under light ?? <sup>′</sup> = (?? <sup>′</sup> ?? <sup>, ??′</sup> ?? <sup>, ?</sup> <u>??′?</u> <sup><u>′?</u></sup> <u>??</u> <sup>)??by the following Eq. 1.</sup> ~~?~~ ? ~~?~~ <u>0</u> <u>0</u> ⎡ ? ⎤ ? ? ? ?? <sup>, ??′</sup> <sup>?</sup> ? <sup>?</sup> ? An image I under light condition ?? <sup>, ?</sup> <u>??′?</u> <sup><u>′?</u></sup> <u>??</u> <sup>)??by the following Eq. 1.</sup> ~~?~~ ? ~~?~~ <u>0</u> <u>0</u> ⎡ ? ⎤ ? ? ? ?′? <sup>?</sup> ? <sup>?</sup> ~~?~~ ? ~~?~~ <u>0</u> <u>??′?</u> ~~0~~ ~~?~~ ? ~~?~~ 0 ~~0~~ <sup>?</sup> ? <sup>?</sup> <u>0</u> <u>0</u> <u>??′?</u> ~~?~~ ? ~~?~~ <u>0</u> <u>??′</u> ~~0~~ ~~?~~ ? ? <sup>?</sup> ? <sup>?</sup> I <sup>′</sup> = ? ? = <sup>,</sup> <sup>?</sup> ? <sup>?</sup> ⎡ ⎢ ⎢ ⎢ ⎣ <sup><u>?</u></sup> <u>??′?</u> <sup><u>′?</u></sup> <u>??</u> <sup>)??</sup> ~~?~~ ? ~~?~~ <u>0</u> <u>0</u> <u>??′?</u> ~~0~~ ~~?~~ ? ~~?~~ <u>0</u> ? ? ? <sup><u>?</u></sup> <u>??′?</u> <sup><u>′?</u></sup> ? <sup>?</sup> ~~?~~ ? ~~?~~ ? <sup>?</sup> ? <sup>?</sup> ? <u>??′?</u> ~~0~~ ~~?~~ ? ~~?~~ <u>0</u> <u>??′?</u> 0 ~~0~~ ~~?~~ ? ~~?~~ ? <u>0</u> <u>??′?⎥</u> ⎥ ~~?~~ ? ~~?~~ ? ⎦ <sup>?</sup> ? <sup>?</sup> ⎤ ⎥ ⎥ ⎥ ? ? ⎦ <sup>?</sup> ? <sup>?</sup> ?? (1) ? ? The matrix D in the formula (1) is determined by the ratio of the three channels of the two light sources. Formula (1) shows that if the gain coefficient between the light source and the standard ? ? light source is known, the image can be adjusted to the standard light source, so the white balance algorithm is realized. In fact the theory is a very important theoretical basis for color constancy. Many white balance algorithms use different methods to get the gain coefficient. Then the image is adjusted by white balance according to the theory. Gray World Hypothesis. The gray world algorithm is proposed by G.Buchusbaum in 1980, which is a classic auto white balance algorithm. It is simple, effective and widely used. The gray world algorithm is based on an assumption that the average reflectance in the scene with rich color changes is achromatic. That is, the average of three color channels _Ravg_, _Gavg_, _Bavg_ should be equal. In the physical sense, the gray world algorithm assumes that the mean value of the average reflection of the natural scene in standard light is a constant value, which is approximately “gray”. In the given image, the gray world assumes that the reflection surface is rich enough, so it can be used as a microcosm of nature. But the average value of three channels is not equal in non-standard light source. That is, the means of three channels are greater or less than the grey value. And the deviation is used to estimate color temperature. The average value of RGB is chosen as grey value under standard light source, as Eq. 2. ? ? ? deviation is used to estimate color temperature. The average value of RGB is chosen as grey value under standard light source, as Eq. 2. The ratio between actual light source _e_ and standard light source _e’_ is calculated by Eq. 3–Eq. 5. <u>Gray = �R?</u> ? ?? + ??? ? ?? + ??? ? ??� (2) <u>??′?</u> <u>Gray</u> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <sup>=</sup> ~~<u>Ravg</u>~~ <sup>(3)</sup> ? ? ? ? ? ? ? <u>Gray</u> ? ? ? <u>??′?</u> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <sup>=</sup> ~~<u>e′</u>~~ <u>G</u> ~~<u>e</u>~~ ? ~~<u>G</u>~~ <sup>=</sup> ? ? ? ? ? <u>??′?</u> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <sup>=</sup> ~~<u>e′</u>~~ <u>G</u> ~~<u>?e</u>~~ ? ~~<u>′G</u>~~ <u>?</u> <sup>=</sup> ~~?~~ ? ~~?~~ ? <sup>=</sup> ~~<u>Gavg</u>~~ ~~<u>?</u>~~ ? ~~<u>?</u>~~ ~~<u>??</u>~~ ? ? ? ? ? ? ? ? ? ? ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? ~~<u>e′</u>~~ <u>G</u> ~~<u>e</u>~~ ? ~~<u>G</u>~~ ? ? ? ? ? ~~<u>e′</u>~~ <u>G</u> ~~<u>?e</u>~~ ? ~~<u>′G</u>~~ <u>?</u> <sup>=</sup> ~~?~~ ? ~~?~~ ? <sup>=</sup> ? ? ? The ratio between actual light source _e_ and standard light source _e’_ is calculated by Eq. 3–Eq. 5. ? ? ?? + ??? ? ?? + ??? ? ??� (2) <u>Gray</u> ~~<u>Ravg</u>~~ <sup>(3)</sup> ~~<u>Gray</u>~~ ~~<u>Gavg</u>~~ <sup>(4)</sup> ? ? ? ? ? ? ? <u>Gray</u> ~~<u>Ravg</u>~~ ? ? ? ? ? ? ? <u>Gray</u> ~~<u>Ravg</u>~~ <sup>(3)</sup> ~~<u>Gray</u>~~ ~~<u>Gavg</u>~~ <sup>(4)</sup> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ~~<u>??</u>~~ ? ? ~~?~~ ? <sup>(5)</sup> ? ? ? ~~<u>Ravg</u>~~ ~~<u>Gray</u>~~ ~~<u>Gavg</u>~~ ? ? ? ? ~~<u>Gray</u>~~ ~~<u>Gavg</u>~~ <sup>(4)</sup> ~~<u>?</u>~~ ? ~~<u>?</u>~~ Color Adjustment. According the Von Kries theory, partial color image is adjusted by the gain ~~<u>??</u>~~ ? ? ~~?~~ ? <sup>(5)</sup> ? ? ? ? ? ? ~~<u>?e</u>~~ ? ~~<u>′G</u>~~ <u>?</u> ~~?~~ ? ~~?~~ ? ? ? Color Adjustment. According the Von Kries theory, partial color image is adjusted by the gain ? ? ? ? ? coefficient from temperature estimate result, as the following formula: ? ? ? ? ? ? ? ? ? R’ = G’ = R’ = G’ = B’ = ? ? ? ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>Gray</u>~~ ~~??~~ ? ? ~~?~~ ? G’ = B’ = ? According the Von Kries theory, partial color image is adjusted by the gain ? ? ? ? ? coefficient from temperature estimate result, as the following formula: <u>Gray</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? <sup>?? (6)</sup> ~~<u>Gray</u>~~ ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? <sup>?? (7)</sup> ? ? ? ? ? ? ? ? <u>Gray</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ? ? ? ? ? ? <u>Gray</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? <sup>?? (6)</sup> ~~<u>Gray</u>~~ ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? <sup>?? (7)</sup> ~~<u>Gray</u>~~ ~~??~~ ? ? ~~?~~ ? <sup>?? (8)</sup> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>Gray</u>~~ ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ? ? ? ? ? ? ~~<u>Gray</u>~~ ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? <sup>?? (7)</sup> ~~<u>Gray</u>~~ So the white balance adjustment is realized. But the coefficient is obtained by the gray world ~~??~~ ? ? ~~?~~ ? <sup>?? (8)</sup> So the white balance adjustment is realized. But the coefficient is obtained by the gray world ? ? ? assumption. When the assumption doesn’t hold because of deficient color variations, the coefficient doesn’t represent the real relation between environment temperature and standard light source. So the adjustment with this coefficient can’t achieve the desired results. For this situation, image edge is used to decrease the weight of those regions and reduce the influence to gray world hypothesis. Then the more correct temperature estimate result and accuracy color adjustment is got. Edge Based Algorithm The algorithm based on image edge in this paper contains three steps. First, edge information of the image is detected by edge detection operator. Then the color patches in image are extracted by the edge information. Finally each pixel in image is weighted according to the pixel location, and the gain correction used for color adjustment is got by this weighted image. Edge Detection. The edge of the image is very important information, and the major basis for image segmentation, recognition and extraction. Edge is the image region with gray level discontinuity, and the edge contains a wealth of information (direction, step properties, shape, etc.). In essence, the image edge is the representative of the discontinuity of image local characteristics, which marks the end of a region and the beginning of another area (gray level mutation, color mutation, texture structure mutation, etc.). Because of the rich color information in the image edge, those areas are very suitable for color temperature estimation. The Sobel operator filters the noise by weighting influence of the pixels position, so it is chosen to detect image edge. The Sobel operator contains two matrixes which are used to detect the vertical and horizontal edges respectively. Each pixel in the image is operated with the two matrixes, and the maximum value is the pixel’s output. The last result is an edge image, as fig. 1 shows. (a) (b) Fig. 1. Edge detection result by Sobel operator: (a) Original image, (b) Sobel’s result Image Segmentation. Image segmentation algorithm based on image edge is used to locate color patches. The boundary search algorithm is used to divide image into color patches. After edge detection, edge connection algorithm is performed to ensure the extracted edge closed. Then based on detected image edge, the region filling and segmentation is completed by the four direction filling algorithm. This algorithm scans edge image from four directions respectively, from top to bottom, from left to right, from top to bottom, from right to left. Then the closed region surrounded by the closed edge is filtered out, and the color patches of the image are separated. The purpose of edge connections is to make the edge closed, and link the small gap in the middle of the two sides of the edge. It refers the idea of regional growth, and if a large gradient threshold is used, the important edge points are got. Let these edge lines grow along the ends until they meet the image edge or other edge points. Thus the important edge points are retained without many chaos trivial thin edges, and let them form closed contours and facilitate segmentation. After edge detection and edge connection, the edge image with closed edge is obtained with the maximum degree, and the color patches in original image are surrounded by these closed edges. At last, image segmentation algorithm filters those patches out. (a) (b) Fig. 2. (a) Image after edge connection, (b) Image segmentation result is set for every pixel according its location. White Balance Adjustment. After image is divided into many regions, a weight value δ(x, y) <u>1</u>, ??(??, ??) = 1 ? ? <u>1</u> <u>??(x,y)</u> �1 − ~~?~~ ? δ(x, y) = � ?(x,y) ~~?~~ ? <sup>�</sup> , ??(??, ??) = 1 , ??(??, ??) = 0 , ??(??, ??) = 1 , ??(??, ??) = 0 (9) <u>??(x,y)</u> �1 − ~~?~~ ? <sup>�</sup>, ??(??, ??) = 0 set to maximum value 1, for other pixels, those weights depend on those regions’ size, the larger the ??(??, ??) is edge image, S is the image size, ??(x, y) is the size of the region which the pixel (x, y)size, the smaller the weight. Using got weight value, the white balance process is completed as locates. By Eq. 9, the basic idea of weight setting is: the weight of pixels in the image edge is following steps. First, the weighted mean of the three channels are calculated by Eq. 10–Eq. 12. ? ? ? ? <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> ~~∑?~~ ? ~~(?,?~~ ? ~~)~~ ? ??? ? ??−?? = <sup><u>∑(??(?,??</u></sup> <sup><u>)∗??</u></sup> <sup><u>(??</u></sup> <sup><u>,??</u></sup> <sup><u>))?</u></sup> size, the smaller the weight. Using got weight value, the white balance process is completed as following steps. First, the weighted mean of the three channels are calculated by Eq. 10–Eq. 12. ~~∑?~~ ? ~~(?,?~~ ? ~~)~~ ? ? <sup>?(?,??</sup> <sup><u>)∗??</u></sup> <sup><u>(??</u></sup> <sup><u>,??</u></sup> <sup><u>))?</u></sup> (10) ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ??? ? ??−?? = <sup><u>∑(?(??</u></sup> <sup><u>,??</u></sup> <sup><u>)∗??</u></sup> <sup><u>(??</u></sup> <sup><u>,??</u></sup> <sup><u>))?</u></sup> ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ??? ? ??−?? = <sup>~~<u>∑(?</u>~~</sup> <sup>?</sup> <sup>~~<u>(?,?</u>~~</sup> <sup>?</sup> <sup>~~<u>)∗?</u>~~</sup> <sup>?</sup> <sup>~~<u>(?</u>~~</sup> <sup>?</sup> <sup>~~<u>,?</u>~~</sup> <sup>?</sup> <sup>~~<u>))</u>~~</sup> <sup>?</sup> ? ? ? ? ? ? ? ? ? ? ? ? ? ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ??? ? ??−?? = <sup><u>∑(?(??</u></sup> <sup><u>,??</u></sup> <sup><u>)∗??</u></sup> <sup><u>(??</u></sup> <sup><u>,??</u></sup> <sup><u>))?</u></sup> (11) Then, the weighted average gray value of the image is calculated by following formula: ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ??? ? ??−?? = <sup>~~<u>∑(?</u>~~</sup> <sup>?</sup> <sup>~~<u>(?,?</u>~~</sup> <sup>?</sup> <sup>~~<u>)∗?</u>~~</sup> <sup>?</sup> <sup>~~<u>(?</u>~~</sup> <sup>?</sup> <sup>~~<u>,?</u>~~</sup> <sup>?</sup> <sup>~~<u>))</u>~~</sup> <sup>?</sup> (12) <u>???</u> ? <u>??−??+ ???</u> ? <u>??−??+ ???</u> ? <u>??−?</u> ? ? ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ??? ? ??−?? = <sup><u>∑(?(??</u></sup> <sup><u>,??</u></sup> <sup><u>)∗??</u></sup> <sup><u>(??</u></sup> <sup><u>,??</u></sup> <sup><u>))?</u></sup> (11) Then, the weighted average gray value of the image is calculated by following formula: ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ??? ? ??−?? = <sup>~~<u>∑(?</u>~~</sup> <sup>?</sup> <sup>~~<u>(?,?</u>~~</sup> <sup>?</sup> <sup>~~<u>)∗?</u>~~</sup> <sup>?</sup> <sup>~~<u>(?</u>~~</sup> <sup>?</sup> <sup>~~<u>,?</u>~~</sup> <sup>?</sup> <sup>~~<u>))</u>~~</sup> <sup>?</sup> (12) <u>???</u> ? <u>??−??+ ???</u> ? <u>??−??+ ???</u> ? <u>??−?</u> ?Finally, the more accurate channel gain values are calculated by the Eq. 14 – Eq. 16. According ? ? ? ?? <u>=</u> ~~3~~ (13) ? ? ? ? ? ? ? ? ? ? <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> ~~<u>∑?</u>~~ ? ~~<u>(?,?</u>~~ ? ~~<u>)</u>~~ ? ? <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <u>???</u> ? <u>??−??+ ???</u> ? <u>??−??+ ???</u> ? <u>??−?</u> ~~3~~ ? ? ? ? ? ? ? ? ? ? ? Finally, the more accurate channel gain values are calculated by the Eq. 14 – Eq. 16. According ? ? to Von Kries theory, the gain is used to adjust the image with better results. Fig. 3 is the final result. ? ? ? ? ? ? ? ? ? ? ? ? ????−?? = ????−?? = ? <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> Then, the weighted average gray value of the image is calculated by following formula: ? <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> <sup>?</sup> ? ? ? ? ? ? <u>??−??+ ???</u> ? <u>??−?</u> Finally, the more accurate channel gain values are calculated by the Eq. 14 – Eq. 16. According ~~3~~ (13) ? ? ? ? ????−?? = ????−?? = ????−?? = ????−?? = ????−?? = Finally, the more accurate channel gain values are calculated by the Eq. 14 – Eq. 16. According ? ? to Von Kries theory, the gain is used to adjust the image with better results. Fig. 3 is the final result. <u>?</u> ? <u>?</u> ? <u>?</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>−?</u>~~ ? <sup>(14)</sup> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <u>?</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>−?</u>~~ ? <sup>(15)</sup> ? ? ? ? ? ? <u>?</u> ? <u>?</u> ? <u>?</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>−?</u>~~ ? <sup>(14)</sup> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <u>?</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>−?</u>~~ ? <sup>(15)</sup> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <u>?</u> ~~??~~ ? ? ~~?~~ ? ~~−?~~ ? <sup>(16)</sup> ? ? ? ? ? ? ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <u>?</u> ~~<u>??</u>~~ ? ? ~~<u>?</u>~~ ? ~~<u>−?</u>~~ ? <sup>(15)</sup> ~~<u>?</u>~~ ? ~~<u>?</u>~~ ? <u>?</u> ~~??~~ ? ? ~~?~~ ? ~~−?~~ ? <sup>(16)</sup> (a) (b) Fig. 3. White balance results: (a) original image (b) image after white balance Experimental Results Subjective Evaluation. In order to make subjective evaluation of the image white balance results, the ColorChecker image library from Simon Fraser University (SFU) Computer Vision Laboratory is used. Every image in this library has a ColorChecker (color testing standard card). Four different sets of images from the picture library are chosen to test algorithm’s effect. They are sky scene, grass scene, bright scene and common scene respectively. Fig. 5 is the results of four group images processed by gray world algorithm, regions based algorithm and this paper’s improved algorithm. (a) (b) (c) (d) Fig. 4. Results of four group image: (a) original image, (b) gray word algorithm, (c) region based algorithm, (d) Improved method The original image in Fig. 5 (a) has obvious bias because the white balance is improper. The gray world algorithm processed images are shown in Fig. 5 (b). Because the first three scenes don’t satisfy gray world assumption, the partial color doesn’t get a good correction. In sky scene and grass scene, the bluish original images are over-adjusted, so the results are reddish. The results of the paper [4] in Fig.5 (c) is better than gray word algorithm, but they are still not accurate enough. While the improved algorithm makes more accurate adjustment, processed images have natural color. In bright scenes, the gray world algorithm obviously doesn’t adjust the serious reddish image accurately, so the results in Fig.5 (b) are obviously still reddish. The proposed algorithm has more accuracy adjustment results, so the test card shows its true color. For common scene, because it meets the gray world assumption, so the gray world algorithm achieves the desired results, but it is not as accurate as the paper [4] and the improved algorithm. The simulation results show that the improved algorithm get more accurate white balance results. Especially for the scene in which the color is not rich, it effectively avoids the adjusting deviation of the traditional gray world algorithm and achieves better white balance effect under different color temperature. color is not rich, it effectively avoids the adjusting deviation of the traditional gray world algorithm and achieves better white balance effect under different color temperature. this space color is convenient and accurate to describe the deviation of test color to standard color. Objective Evaluation. CIE defined color space CIELUV in 1976, and the value ∆E based on ∆E = � ~~<u>??</u>~~ ? <sup>~~2~~</sup> ? ~~<u>+ ??</u>~~ ? ~~2~~ (17) ? ? ? ? ? this space color is con ∆E = � ~~<u>??</u>~~ ? <sup>~~2~~</sup> ? ~~<u>+ ??</u>~~ ? ~~2~~ ??? and ~~<u>?</u>~~ <u>??</u> ? ∆E <u>??</u> and <u>???</u> ? <u>∆E</u> this space color is convenient and accurate to describe the deviation of test color to standard color. Objective Evaluation. CIE defined color space CIELUV in 1976, and the value ∆E ∆E = � ~~<u>??</u>~~ ? <sup>~~2~~</sup> ? ~~<u>+ ??</u>~~ ? ~~2~~ (17) color space respectively. The smaller ??? and ~~<u>?</u>~~ <u>??</u> are the average of <u>???</u> and <u>???</u> in <u>?</u> ? <u>????</u> ∆E value is, the better the effect of the white balance algorithm is. <u>Table 1:</u> <u>∆E value of four group image</u> ∆E = � ~~<u>??</u>~~ ? <sup>~~2~~</sup> ? ? ? and ~~<u>?</u>~~ <u>??</u> ? ∆E ? ? ~~<u>+ ??</u>~~ ? ~~2~~ <u>??</u> are the average of <u>???</u> ? <u>Table 1:</u> <u>??</u> in <u>?</u> ? <u>?</u> ? ? <u>????</u> ∆E = � ~~<u>??</u>~~ ? <sup>~~2~~</sup> ? ~~<u>+ ??</u>~~ ? ~~2~~ (17) color space respectively. The smaller ??? and ~~<u>?</u>~~ <u>??</u> are the average of <u>???</u> and <u>???</u> in <u>?</u> ? <u>????</u> the ∆E value is, the better the effect of the white balance algorithm is.Original Gray World <u>Paper[4]</u> <u>Improved algorithm</u> <u>Table 1:</u> <u>∆E value of four group image</u> ? ? ? color space respectively. The smaller ??? and ~~<u>?</u>~~ <u>??</u> are the average of <u>???</u> and <u>???</u> in <u>?</u> ? <u>????</u> the ∆E value is, the better the effect of the white balance algorithm is.Original Gray World <u>Paper[4]</u> <u>Improved algorithm</u> <u>sky scene</u> <u>Table 1:</u> <u>11.63</u> <u>∆E value of four group image11.15</u> <u>7.62</u> <u>2.49</u> <u>grass scene</u> <u>25.10</u> <u>1.43</u> <u>2.60</u> <u>0.62</u> <u>bright scene</u> <u>57.39</u> <u>17.26</u> <u>11.40</u> <u>8.80</u> <u>common scene</u> <u>31.97</u> <u>3.012</u> <u>0.59</u> <u>1.59</u> algorithm [4] and the improved algorithm. The results are shown in Table 1. In the three scenes with large color patch, the adjustment for image by gray world is not obvious. Compared with the other ∆E is calculated on the four group result images of gray world algorithm, image regions based This is consistent with the subjective evaluation results of the last section. two algorithms, the improved algorithm significantly enhances the effect and reduces the ∆E value. Summary In this paper, the improved algorithm extracts color patches in the scene using edge information. Then weight value is set for every pixel according its location relation with the detected color patch. This method reduces the big color patches’ impaction on the results of gray world hypothesis, which makes the algorithm achieve better result. Compared with the gray world algorithm and image regions based algorithm, this algorithm significantly improves adjustment accuracy in different scenes. The simulation results show that the improved algorithm is effective. It can be implemented with FPGA and ASIC to use in ISP, which has good application and economic prospect. References [1] Hordley S D. Scene illuminant estimation: Past, present, and future[J]. Color Research & Applications, 2006, 31(4):303-314. [2] Xiao-Zhao X U, Cai Y H, Liu X M, et al. Improved Grey World Color Correction Algorithms[J]. Acta Photonica Sinica, 2010, 39(3):559-564. [3] Banic N, Loncaric S. Improving the white patch method by subsampling[C]. Image Processing (ICIP), 2014 IEEE International Conference on. IEEE, 2014: 605 - 609. [4] Gijsenij A, Gevers T. Color Constancy using Image Regions[C]. Image Processing, 2007. ICIP 2007. IEEE International Conference on. IEEE, 2007:III-501 - III-504. [5] Sofeikov K I, Romanenko I V, Tyukin I Y, et al. Scene analysis assisting for AWB using binary decision trees and average image metrics[C]. Consumer Electronics (ICCE), 2014 IEEE International Conference on. IEEE, 2014: 480-483. [6] Kim S, Kim W, Kim S D. Automatic white balance based on adaptive feature selection with standard illuminants[C]. Image Processing, 2008. ICIP 2008. 15th IEEE International Conference on. IEEE, 2008: 485-488. [7] Arathy, S., et al. "Auto White Balancing and comparison of Support Vector Machine and neural network classifiers in prediction of source camera." Control Communication and Computing (ICCC), 2013 International Conference on IEEE, 2013 : 96-101. [8] Gijsenij A, Gevers T, Weijer J. Generalized Gamut Mapping using Image Derivative Structures for Color Constancy[J]. International Journal of Computer Vision, 2010, 86(2-3): 127-139. [9] Hordley S. Reevaluation of color constancy algorithm performance.[J]. Journal of the Optical Society of America A, 2006, 23(5):1008-1020. [10] Forsyth D A. A novel algorithm for color constancy[J]. International Journal of Computer Vision, 1990, 5(1):5-35. [11] Zhang B, Batur A U. A real-time auto white balance algorithm for mobile phone cameras[C]. Consumer Electronics (ICCE), 2012 IEEE International Conference on. IEEE, 2012:1-4. [12] Moniga K, Arunkumar S. Evaluation of Various Edge Detection Algorithms–Review[J]. International Journal of Engineering Sciences & Research Technology, 2014, 3(11): 331-337. [13] Bianco, S., and R. Schettini. "Computational Color Constancy." Encyclopedia of Information Science & Technology Third Edition (2011):1-7.

섹션 본문

섹션 본문이 없습니다.

참고문헌 13건

  1. A real-time auto white balance algorithm for mobile phone cameras 2023 IEEE International Conference on Consumer Electronics (ICCE) · 2012 10.1109/icce.2012.6161743
  2. Scene illuminant estimation: Past, present, and future Color Research & Application · Wiley · 2006 10.1002/col.20226
  3. Auto White Balancing and comparison of Support Vector Machine and neural network classifiers in prediction of source camera 2013 10.1109/iccc.2013.6731631
  4. Improving the white patch method by subsampling 2022 IEEE International Conference on Image Processing (ICIP) · 2014 10.1109/icip.2014.7025121
  5. Scene analysis assisting for AWB using binary decision trees and average image metrics 2023 IEEE International Conference on Consumer Electronics (ICCE) · 2014 10.1109/icce.2014.6776095
  6. Computational Color Constancy: Survey and Experiments IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2118224
  7. Reevaluation of color constancy algorithm performance Journal of the Optical Society of America A · Optica Publishing Group · 2006 10.1364/josaa.23.001008
  8. Generalized Gamut Mapping using Image Derivative Structures for Color Constancy International Journal of Computer Vision · Springer Science+Business Media · 2008 10.1007/s11263-008-0171-3
  9. Computational color constancy 2011 10.1109/euvip.2011.6045557
  10. Automatic white balance based on adaptive feature selection with standard illuminants 2008 10.1109/icip.2008.4711797
  11. Color Constancy using Image Regions 2007 10.1109/icip.2007.4379356
  12. A novel algorithm for color constancy International Journal of Computer Vision · Springer Science+Business Media · 1990 10.1007/bf00056770
  13. Improved Grey World Color Correction Algorithms ACTA PHOTONICA SINICA · Chinese Optical Society · 2010 10.3788/gzxb20103903.0559