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

Integer Norm for Difference Assessment of the Frame Elements Considering the White Balance

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Mykhailo V. Ivashchenko — Student of the Faculty of Applied Mathematics, National Technical University of Ukraine "Igor Sikorsky Kyiv PolitechnicI nstitute", 03056, Peremohy Ave, 37, Kyiv, Ukraine,
  2. Denys D. Okhrymchuk — Student of the Faculty of Applied Mathematics, National Technical University of Ukraine "Igor Sikorsky Kyiv PolitechnicI nstitute", 03056, Peremohy Ave, 37, Kyiv, Ukraine,
  3. Lesya A. Lyushenko — National Technical University of Ukraine "Igor Sikorsky Kyiv Politechnic Institute", 03056, Peremohy Ave, 37, Kyiv, Ukraine,
DOI
10.15407/csc.2019.04.027
저널
Control Systems and Computers
발행년도
2019
발행기관
National Academy of Sciences of Ukraine (Co. LTD Ukrinformnauka)
피인용수
0
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.15407/csc.2019.04.027
토픽
Color Science and Applications
OpenAlex ID
W2987303186

평가 내용

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

초록

The proposed concept suggests a method, based on which a synthesis of an integer norm can be performed, which takes into account the white balance of the camera when performing the evaluation of the difference between the elements of an image.This idea is based on modifying the internal calculations of the camera, aimed at assessing the colour of the element of the image, using the process of colour model reduction that is embedded inside the camera, to the colour model of the classical representation.The use of this approach provides a number of advantages within the framework of systems in which there is a solution of computer vision problems in terms of using both graphical processing and artificial intelligence.

본문 29,493자

본문 펼치기
DOI https://doi.org/10.15407/usim.2019.04.027 UDC 004.4 451 M.V. IVASHCHENKO, Student of the Faculty of Applied Mathematics, National Technical University of Ukraine "Igor Sikorsky Kyiv PolitechnicI nstitute", 03056, Peremohy Ave, 37, Kyiv, Ukraine, mivaschenko_51@lll.kpi.ua D.D. OKHRYMCHUK, Student of the Faculty of Applied Mathematics, National Technical University of Ukraine "Igor Sikorsky Kyiv PolitechnicI nstitute", 03056, Peremohy Ave, 37, Kyiv, Ukraine, den5096@gmail.com L.A. LYUSHENKO, PhD (Eng.), Senior Lecturer, National Technical University of Ukraine "Igor Sikorsky Kyiv Politechnic Institute", 03056, Peremohy Ave, 37, Kyiv, Ukraine, lyushenkol@gmail. com ### INTEGER NORM FOR DIFFERENCE ASSESSMENT OF THE FRAME ELEMENTS CONSIDERING THE WHITE BALANCE _The proposed concept suggests a method, based on which a synthesis of an integer norm can be performed, which takes into ac-_ _count the white balance of the camera when performing the evaluation of the difference between the elements of an image. This_ _idea is based on modifying the internal calculations of the camera, aimed at assessing the colour of the element of the image, using_ _the process of colour model reduction that is embedded inside the camera, to the colour model of the classical representation. The_ _use of this approach provides a number of advantages within the framework of systems in which there is a solution of computer_ _vision problems in terms of using both graphical processing and artificial intelligence._ _Keywords:_ _computer vision, white balance correction, colour sensors, colour model, reference colours, image point norm._ Introduction Human organism possesses the ability to see, determine and understand the environment using the visual information. The same idea was also formed and implemented in the computer vision technologies. Such technologies are usually used in surveillance systems, robotics, tracking mobile applications, engineering reliability and quality control etc. In every computer vision system, it is needed to track how the image has changed (or how the points of the image have changed). Computer vision systemsbuilt over modern CCD CMOS-sensors, allow adjust automatically the parameters of a frame according to the surrounding illumination, its position changesin space, integral characteristics of the frame, and other parameters that can indirectly influence the raster quality. The increase of the computational power in digital signal processorsbuilt in the sensor systems of computer vision allows on the one hand to significantly improve consumer and metrological characteristics of the finished device without tightening the technological requirements, but on the other hand requires specific processing algorithms that are attached to the architecture and scheme parameters of the specific device. In this paper are presented the results of the research based on the task of forming the difference assessment between two elements of a raster frame, that allows the conversion of the incoming data ISSN 2706-8145, Control Systems and Computers, 2019, № 4 27 _M.V. Ivashchenko, D.D. Okhrymchuk, L.A. Lyushenko_ and the results of the comparison on hypothetically arbitrary bit grids distributed to a set of individual raster points representation ways, including colour schemes and device configuration parameters. Nowadays computer vision is developing in a wide variety of fields, one of which is machine learning, specifically deep learning that manages the high-level data composed into the hierarchical structures. It improves the abilities of chipprogramming using relatively cheap computational equipment [1]. A distinctive feature of computer vision engineering and technology is the usage of adaptive algorithms and learning systems that are the basis for the practical computer vision usage in any valuable automation tasks. It leads to active implementation and development of the deep learning algorithms, weak artificial intelligence in terms of configuration and learning process, artificial intelligence for the recognition and classification tasks. The mentioned techniques that are used for solving the issues of signals digital processing in machine vision allow the active usage of phase-frequency and adaptive filtering, spectral analysis methods, wavelet transformation in the early stages of reading information from the matrix photo detectors on the programming and hardware levels. It also allows to reduce significantly the computational costs of image processing algorithms and distribute the processing between all links of machine vision chains. Nevertheless, all the tasks described above are reduced to the basic task of computer vision, namely: comparison of image points or series of images. This process is implemented in terms of work with the colour models. Each colour model defines the way of a point’s colour representation and the way of its encoding inside a device. The difference assessment between two elements of a frame is a very important block of all image processing algorithms. However, nowadays the most of the norms that are defined over the colour spaces, perform the operations with the float values. When implementing algorithms for calculating the norm into the hardware logic of sensors, the usage of float arithmetic is unacceptable as it significantly increases the computational costs and also the hardware requirements of the sensors causing a great reduce in the performance level of the norm computational algorithms in terms of impossibility of their paralleling. Thus, the development of integer norms over the colour spaces will allow to organize an efficient ima-ge processing using the means of a device. In this article RGB colour model is reviewed. This model applies the additive method of colour processing (a colour is obtained by adding to black). It is known that any colour can be represented as a combination of three colours: red (R), white (W), and blue (B). These colours are also known as the reference colours and are specified by values from 0 to 255. RGB colour model allows the usage of ima-ge points colour identification of implementing the three-channel colour representation. It allows to perform the image normalization process exclu-ding the set of operations that are specific for and are defined over the float arithmetic. Let us review the described approach. Problem Description Let there be a raster rectangular image of the resolution _W_ X _H_ X _C_, where _W_ is the number of pixels in the width of the image, _H_ - the number of pixels in the height of the image, _C_ - the colour depth of the image (the number of bits used for contacting the representation of a colour in terms of a pixel encoding process). The position of every point of the image is uniquely determined by a pair ### of coordinates ( X ; Y ), where X = 1.. W, Y = 1.. H . In this case the content of every point is represented by a colour that is encoded by the device. Let there be a point of animage that is determined by a pair ( _X_ 1; _Y_ 1), where _X_ 1 = 1.. _W_, _Y_ 1 = 1.. _H_ . It is needed to build an assessment, how this point differs from another point of the same image with a pair ### of coordinates ( X 2; Y 2 ), where X 2 = 1.. W, Y 2 = 1.. H . This task can be solved by finding the distance between the points on the colour surface. The content of a point of an image can be given as a linear combination of a colour model reference points that is assigned by a polygon on the colour surface. Thus, in general the difference between the two colors is to be defined according to the distance 28 ISSN 2706-8145, Системи керування та комп'ютери, 2019, № 4 _Integer Norm for Difference Assessment of the Frame Elements Considering the White Balance_ between the colours. This distance can be computed as the length of a segment which endpoints are the positions of the colours on the surface. Let us review the situation where each of the devices makes certain adjustments to the immediate appearance of the colour model when performing white balance correction by deforming it. As a result, both the appearance of the polygon that limits the area of the colour plane and determines the internal colour scheme of the device, and the appearance of the surface that describes the colour gamut can change. While image processing algorithms take into account only some standards [2] or use classical representations of colour schemes, matching them with the results obtained from the camera, it makes sense to perform the final distance calculations considering the changes of the colour model due to the camera's white balance corrections before obtaining every next frame. As a result, the colour channel component values will be converted according to the white balance factors calculated after shooting the scene, and subsequently represented in traditional RGB color model. Then the final task of finding the difference between the two points of an image can be decreased to the following actions: - performing the reduction of colour values obtained from the device to the values of the original color model; - computing the distance between the points by calculating the norm (the problem can be set as a synthesis of a different type of a norm in terms of working with integer values and consideration of the white balance corrections). Speaking of the problem of the device colour scheme structure, the solution is to use the reference colours system conversion and the resulting change in the appearance of the colour surface, as well as the color gamut. This step can be performed as a precomputed set of operations. Related Works. Colour Conversion The process of manufacturing, testing and automated adjustment of sensors involves the rejection and calibration of individual light-sensitive elements. The result of reading the image with some accuracy provides a representation of colours in a vector form, taking into account the calibrating parameters. Let us review the models of obtaining the image element data according to the results of measurements in individual photosensors. 1. Matrix Method This method is used if the assessment of several colours is needed. The method is based on the matrix ### equation: the values ( X ; Y ; Z ) represent the colours in the source colour model, the values ( R ; G ; B ) are the representation of the digital data of the colour sensor. The conversion matrix C is based on the output signals of the reference colour obtained during the calibration process. After the matrix ### coefficients are defined the values ( X ; Y ; Z ) can be computed from the conversion of the ( R ; G ; B ) sensor values. where ( _R_ 1, _G_ 1, _B_ 1) are the coordinates values of the ### investigated colour, ( R 0, G 0, B 0 ) — the coordinates values of the reference colour. The colours formed by the above methods lead to an incorrect result in terms of light conditions, ⎛ _X_ ⎞ ⎛ _C_ 11 _C_ 12 _C_ 13 ⎞ ⎛ _R_ ⎞ ⎜⎜ _Y_ ⎟⎟ = ⎜⎜ _C_ 21 _C_ 22 _C_ 23 ⎟⎟ ⋅ ⎜⎜ _G_ ⎟⎟ ⎝ _Z_ ⎠ ⎝ _C_ 31 _C_ 32 _C_ 33 ⎠ ⎝ _B_ ⎠ _X_ ⎞ ⎛ _C_ 11 _C_ 12 _C_ 13 ⎞ ⎛ _R_ _Y_ ⎟⎟ = ⎜⎜ _C_ 21 _C_ 22 _C_ 23 ⎟⎟ ⋅ ⎜⎜ _G_ _Z_ ⎠ ⎝ _C_ 31 _C_ 32 _C_ 33 ⎠ ⎝ _B_ 11 12 13 21 _C_ 22 _C_ 23 31 _C_ 32 _C_ 33 (1) 2. Table Method This method is used if it is needed to define several colours simultaneously. The first step is to determine how important the brightness is. For each colour the sensor uses brightness information that was obtained during calibration from the reference colours set. If the brightness information is not important, then a specifically selected colour channel is used for the search of the ratios between the reference colors obtained during calibration and the determined colour (taken as the basis for all measurement sets). The brightness matters: ### ( R 1 − R 0 )2 ⋅( G 1 − G 0 )2 ⋅( B 1 − B 0 )2 . The bright ness does not matter: (2) (3) 2 2 ⎛ _R_ _R_ ⎞ ⎛ _B_ _B_ ⎞ ⎜ _u_ - _<u>r</u>_ ⎟ - ⎜ _<u>u</u>_ - _<u>r</u>_ ⎟ ⎜ _G_ _G_ ⎟ ⎜ _G_ _G_ ⎟ ⎝ _u_ _r_ ⎠ ⎝ _u_ _r_ ⎠ _R_ _R_ ⎞ ⎛ _B_ _B_ ⎞ _u_ - _<u>r</u>_ ⎟ - ⎜ _<u>u</u>_ - _<u>r</u>_ ⎟, _G_ _G_ ⎟ ⎜ _G_ _G_ ⎟ _u_ _r_ ⎠ ⎝ _u_ _r_ ⎠ ISSN 2706-8145, Control Systems and Computers, 2019, № 4 29 _M.V. Ivashchenko, D.D. Okhrymchuk, L.A. Lyushenko_ the sensor temperature and the sampling frequency changes. Attempting to adjust the calibration data contributes to the accumulation of errors and processing algorithms complication [3]. Related Works. White Balance Correction Algorithms There are different approaches of white balance correction during the shooting of a scene (or scenes) using a device. The following section describes the basic versions of such algorithms. 1 _. Gray World Theory_ This method provides automatic white balance cor# rection by calculating the values ( Ravg ; Gavg ; Bavg ), such as _Ravg_ = _Gavg_ = _Bavg_, and is based on the fact that any scene can be converted into the gray channel. The coefficients are used for colour correction of the image points are obtained from the calcula# tions of the ratios between the ( Ravg ; Gavg ; Bavg ) va lues and the average value of the green channel. _Ravg_ = _Gavg_ = _Bavg_, _corrR_ = _G_ max _R_ max <sup>,</sup> _corrB_ = = _G_ max _B_ max <sup>,</sup> _corrG_ = 1. (4) 2 _. Retinex Theory_ Another possible method was produced by Edwin Land [4].This method is based on the principle that the white colour is a combination of three maximum values of the colour channels as it transmits the maximum possible level of signals into every channel. This method forms the white colour according to the component values of the brightest point of the image. At the same time, white balance correction factors can be obtained in two different ways: _corr R_ = _G_ max _R_ max, _corr B_ = _G_ max _B_ max, _corr G_ = 1, _corr R_ = _R_ _R_ max, _corr B_ = _B_ _B_ max, _corr G_ = _G_ _G_ max <sup>.</sup> (5) 3 _. Standard Deviation-Weighted Gray World_ Standard Deviation-Weighted Gray World method extends the representation of the Gray world method and was suggested by Lam [5].The image is divided into a certain number of blocks. For each block the standard deviations and values ### (μ R ; μ G ; μ B ) are calculated that correspond to the colour channels _R_,, _G_ _B_ .The value for each channel is computed using the weight coefficients for every where _Y_ max — maximum intensity value in a given colour space [7]. 5 _. White Balance Automated Correction Process_ In the process of shooting, the device (a camera) is able to change the way of white balance correction (this effect is achieved through a number of modes built in to the algorithms of the camera). The main advantage of this approach is its simplicity of implementation, as well as optimality in terms of the device usage. However, when shooting in RAW format, or solving computer vision issues aimed at searching the changes in the state of the image, and performing several images or several points of a specific image comparison in standard custom formats, such white balance correction implementation does not work properly (the white balance correction factors do not tend to unity). As a part of the image points representation comparison, such white balance adjustments can affect the loss of a certain number of colours, leading to failures in the accuracy of colour components calculations which leads to an incorrect com block. For the _k_ -th block an average deviation of the green channel can be evaluated using the formula: _p_ <u>σ</u> _pG_ <u>(σ</u> _<u>kG</u>_ <u>)(</u> _i_ ) ⋅μ _G_ ( _k_ ). _Std_ _Avg G_ = _p_ <u>σ</u> _pG_ <u>(</u> _<u>k</u>_ <u>)</u> ⋅μ _G_ ( _k_ ## ∑∑ k =1 i =1σ G ( i ) _<u>G</u>_ _p_ _G_ ## ∑∑ k =1 i =1σ G ( i ) (6) 1 _i_ =1 Based on the obtained values the correction factors for each colour channel are evaluated: _<u>Std</u>_ _<u>Avg R</u>_ <u>+</u> _<u>Std</u>_ _<u>Avg G</u>_ <u>+</u> _<u>Stv Avg B</u>_ _corr G_ =, 3⋅ _Std_ _Avg G_ _<u>Std</u>_ _<u>Avg R</u>_ <u>+</u> _<u>Std</u>_ _<u>Avg G</u>_ <u>+</u> _<u>Stv Avg B</u>_ _corr R_ =, 3⋅ _Std_ _Avg R_ _<u>Std</u>_ _<u>Avg R</u>_ <u>+</u> _<u>Std</u>_ _<u>Avg G</u>_ <u>+</u> _<u>Stv Avg B</u>_ _corr B_ = . 3⋅ _Std_ _Avg B_ (7) 4 _. White Patches in YCbCr Colour Space_ This method was introduced by Wang, Chen and Fuh [6]. The image is represented in the YCbCr colour space. White balance correction factors can be obtained from the following expressions: _corr R_ = _<u>Y</u>_ <u>max</u>, _corr G_ = _<u>Y</u>_ <u>max</u>, _corr B_ = _<u>Y</u>_ _Ravg_ _Gavg_ _B_ <u>max</u>, _corr G_ = <u>max</u>, _corr B_ = <u>max</u>, (8) _avg_ _avg_ _avg_ 30 ISSN 2706-8145, Системи керування та комп'ютери, 2019, № 4 _Integer Norm for Difference Assessment of the Frame Elements Considering the White Balance_ parison result. As a result, the computation of the distance between the representations of points on the colour surface that is performed by the means of the normalization process will return incorrect values, since the camera’s white balance correction for the selected scene (selected image) was not taken into account. Proposed Approach Let us review the process of assessing the difference between two points of the image working in terms of the issue described in paragraph 2 of this paper. The camera automatically adjusts the white balance in accordance with one of the modes set in the camera by default. The assessment of the difference between two points of the image is performed by normalization. The Euclidean norm is used as the calculation method. The incoming data for the calculation of the norm is represented by the colour values of the points obtained from the camera. At the same time, the obtained values are converted from the colour space of the camera to the traditional colour space by considering the white balance correction factors that were used during the image capture. This conversion allows to transform a polygon that is the colour representation of the camera on the surface into a polygon that is representation of the classical RGB model. This conversion uses the matrix method and has the following structure: ⎛ _x_ 1 ⎞ ⎜ ⎟ ⎛ _C_ 11 _C_ 12 _C_ 13 - _C_ 1 _m_ ⎞ ⎜ _x_ 2 ⎟ ⎛ _y_ 1 ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ _C_ 21 _C_ 22 _C_ 23 - _C_ 2 _m_ ⎟ ⋅⎜ _x_ 3 ⎟ = ⎜ _y_ 2 ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎝ _C_ 31 _C_ 32 _C_ 33 - _C_ 3 _m_ ⎠ ⎜ - ⎟ ⎝ _y_ 3 ⎠ ⎜ ⎟ ⎝ _xm_ ⎠ ⎛ _x_ 1 ⎞ ⎜ ⎟ _C_ 11 _C_ 12 _C_ 13 - _C_ 1 _m_ ⎞ ⎜ _x_ 2 ⎟ ⎛ _y_ 1 ⎟ ⎜ _C_ 21 _C_ 22 _C_ 23 - _C_ 2 _m_ ⎟ ⋅⎜ _x_ 3 ⎟ = ⎜ _y_ 2 ⎟ ⎜ ⎟ ⎜ _C_ 31 _C_ 32 _C_ 33 - _C_ 3 _m_ ⎠ ⎜ - ⎟ ⎝ _y_ 3 ⎜ ⎟ ⎝ _xm_ ⎠ 1 - _C_ 1 _m_ ⎞ ⎜ _x_ 2 ⎟ - _C_ 2 _m_ ⎟ ⋅⎜ _x_ 3 ⎟ ⎜ - _C_ 3 _m_ ⎠ ⎜ 11 12 13 1 _m_ ⎜ 2 ⎟ 1 ⎟ ⎜ 21 _C_ 22 _C_ 23 - _C_ 2 _m_ ⎟ ⋅⎜ _x_ 3 ⎟ = ⎜ _y_ 2 ⎟ ⎜ ⎟ ⎜ 31 _C_ 32 _C_ 33 - _C_ 3 _m_ ⎠ ⎜ - ⎟ ⎝ _y_ 3 _m_ (9) _m_ , _m_ _m_ where matrix _С_ is the matrix of conversion, that considers the white balance correction in terms of transition to the colour model RGB traditional look, vector x — point representation in the camera color space, vector у — the resulting representation of a point in the RGB color space. The calculations are performed in terms of working with integer values, and also can be used for direct implementation into the hardware logic of devices. This fact makes it possible to reduce both the overall cost of resources for the performing operations, as compared to the existing float arithmetic, and the requirements for the sensor configuration, thereby increasing the overall level of performance. Thus, we obtain a complex normalization algorithm that takes into account white balance correction factors, and can be used both in the devices that perform the shooting and in computers for the organization of computer vision systems. Conclusion In the absence of the possibility to calibrate sensors directly during the use of the device, existing methods of colour identification are not as efficient as possible in terms of working with the computer vision issues. This is due to the fact that each of the devices (or rather, each of the sensors of this device) "receives" the corresponding section of the colour model, which is deformed relative to the similar standardized section allocated to the RGB model. In addition, in the process of shooting the device performs white balance adjustment based on the parameters set for it by default (as a set of automatic correction modes). On the basis of such parameters as the scene illumination, the position of the shot object, the position of the device relative to the scene, – for each of the frames its own correction is formed which entails another deformation of the section of the colour surface corresponding to the sensors of the device. As a result, the accuracy of image point color representation assessment analysis drops significantly, making it impossible to apply standard methods of computing the differences between two pixels by performing normalization since the actual positions of their representations on the colour surface differ from the positions of the representations identified by the device. These facts are also supported by the situation where the implementation of the float arithmetic in the algorithms for calculating the norm in the hardware logic of sensors, is unacceptable since it significantly increases the overall costs not only for the norm computation, but also increases the level of requirements for the sensor ISSN 2706-8145, Control Systems and Computers, 2019, № 4 31 _M.V. Ivashchenko, D.D. Okhrymchuk, L.A. Lyushenko_ equipment, causing a significant drop in performance of normalizing algorithms due to the impossibility of their parallelization. The approach proposed in the article, aims to eliminate these drawbacks. Colours comparison in terms of using a standardized colour model (gamut) allows not only to obtain the same results regardless of the applied device, but also makes it possible to form a comparative analysis of the devices. This effect is achieved by the means of the data conversion REFERENCES that is obtained from the camera after performing automatic white balance correction to the traditional colour model. This allows to increase the accuracy of measurements in solving computer vision issues aimed at comparing points of one image or at a full comparison of two or a series of images. The algorithm can be wielded both in devices that shoot, and in computers that are used to perform image processing operations in computer vision systems. 1. _Sinha, R.K., Pandey, R., Pattnaik, R_ ., 2017. “Deep Learning for Computer Vision Tasks: A review”. Int. Conf. on Intelligent Computing and Control (I2C2), pp. 1–5, https://arxiv.org/ftp/arxiv/papers/1804/1804.03928.pdf. 2. _Stokes, M., Anderson, M., Chandrasekar, S., Motta, R._, 1996. A Standard Default Color Space for the Internet — sRGB. [online] Available at: <https://www.w3.org/Graphics/Color/sRGB.html> [Accessed 15 Apr. 2019]. 3. _Precise measurements are_ vital to colour sensor sensitivity”. EET India. [online] Available at: <https://www.embedded. com/design/mcus-processors-and-socs/4007122/Precise-measurements-are-the-key-to-color-sensor-sensitivity> [Accessed 2 Feb. 2019]. 4. _Land, E.H., McCann, J.J._, 1971. “Lightness and Retinex Theory”. Journal of the Optical Society of America, 61(1), pp. 1–11. 5. _Lam, Hong-Kwai, Au, Oscar C., Wong, Chi-Wah_, 2004. “Automatic white balancing using standard deviation of RGB components”. ISCAS ’04, DOI: 10.1109/ISCAS.2004.1328898. 6. _Weng, Ching-Chih, Chen, Homer, Fuh, Chiou-Shann_, 2005. “A Novel Automatic White Patch Method for Digital Cameras”. ISCAS 2005, DOI: 10.1109/ISCAS.2005.1465458. 7. _Zapryanov, G., Nikolova, I.,_ 2012. Automatic White Balance Algorithms for Digital Still Cameras – a Comparative Study. Information Technologies and Control, 1, pp. 16-22. Received 18.06.2019 32 ISSN 2706-8145, Системи керування та комп'ютери, 2019, № 4 _Integer Norm for Difference Assessment of the Frame Elements Considering the White Balance_ _М.В. Іващенко_, студент, факультет прикладної математики, Національний техн. ун-т України “Київський політехнічний інститут імені Ігоря Сікорського” (НТУУ «КПІ ім. І. Сікорського»), просп. Перемоги, 37, Київ, 03056, Україна, mivaschenko_51@lll.kpi.ua _Д.Д. Охримчук_, студент, факультет прикладної математики, НТУУ «КПІ ім. І. Сікорського», просп. Перемоги, 37, Київ, 03056, Україна, den5096@gmail.com _Л.А. Люшенко_, кандидат технічних наук, старший викладач, факультет прикладної математики, НТУУ «КПІ ім. І. Сікорського», просп. Перемоги, 37, Київ, 03056, Україна, lyushenkol@gmail. com КОНЦЕПЦІЯ ЦІЛОЧИСЛОВОЇ НОРМИ ОЦІНКИ РІЗНИЦІ МІЖ ЕЛЕМЕНТАМИ ЗОБРАЖЕННЯ З ВРАХУВАННЯМ БАЛАНСУ БІЛОГО Вступ. Оцінка різниці між двома елементами зображення є важливим блоком всіх алгоритмів графічної обробки. Проте на сьогоднішній день більшість норм, які визначаються за колірними просторами, виконують операції з плаваючою точкою і без врахування внутрішньої структури колірної моделі камери. Мета. Метою даної статті є дослідження запропонованого підходу, на основі якого можливо виконати синтез цілочислової норми, що враховує баланс білого камери при розрахуванні оцінки різниці між елементами зображення. Методи. Камера автоматично налаштовує баланс білого відповідно до одного з режимів, встановлених за замовчуванням. Оцінка різниці між двома точками зображення здійснюється за рахунок виконання нормалізації. Як метод розрахунку використовується евклідова норма. Результати. Запропоновано підхід до нормалізації, що враховує коефіцієнти корекції балансу білого. Розрахунки виконуються з точки зору здійснення операцій з цілими значеннями, що надає можливість їх використання для безпосереднього розгортання всередині апаратної логіки пристроїв. Цей факт дозволяє знизити як загальну вартість ресурсів для виконуваних операцій, по відношенню до існуючої арифметики з плаваючою крапкою, так і зниження вимог до конфігурації датчиків. Запропонований підхід дозволяє підвищити ефективність вимірювань при вирішенні задач комп'ютерного зору, спрямованих на порівняння точок одного зображення або при повному порівнянні відповідних елементів двох або серії зображень. Висновки. Запропонований у статті підхід спрямований на усунення недоліків сучасних систем, що використовують оцінку кольорів. Алгоритм може використовуватися як в пристроях, які здійснюють відеозйомку, так і в комп'ютерах, які використовуються для виконання операцій обробки зображень в системах комп'ютерного зору. _Ключові слова:_ _комп’ютерний зір, корекція балансу білого, датчики кольору, колірна модель, опорні кольори, норма_ _точки зображення._ ISSN 2706-8145, Control Systems and Computers, 2019, № 4 33 _M.V. Ivashchenko, D.D. Okhrymchuk, L.A. Lyushenko_ _М.В. Иващенко_, студент, факультет прикладной математики, Национальный техн. ун-т Украины «Киевский политехнический институт имени Игоря Сикорского» (НТУУ «КПИ им. И. Сикорского»), просп. Победы, 37, Киев, 03056, Украина, mivaschenko_51@lll.kpi.ua _Д.Д. Охримчук_, студент, факультет прикладной математики, НТУУ «КПИ им. И. Сикорского», просп. Победы, 37, Киев, 03056, Украина, den5096@gmail.com _Л.А. Люшенко_, кандидат технических наук, старший преподаватель, кафедра программного обеспечения компьютерных систем, факультет прикладной математики (ПОКС ФПМ), НТУУ «КПИ им. И. Сикорского», просп. Победы, 37, Киев, 03056, Украина, lyushenkol@gmail. com КОНЦЕПЦИЯ ЦЕЛОЧИСЛЕННОЙ НОРМЫ ОЦЕНКИ РАЗНИЦЫ МЕЖДУ ЭЛЕМЕНТАМИ ИЗОБРАЖЕНИЯ С УЧЕТОМ БАЛАНСА БЕЛОГО Введение. Оценка разницы между двумя элементами изображения является важным блоком всех алгоритмов графической обработки. Однако на сегодняшний день большинство норм, которые определяются по цветовым пространствам, выполняют операции с плавающей точкой и без учета внутренней структуры цветовой модели камеры. Цель. Целью данной статьи является исследование подхода к синтезу целочисленной нормы, которая учитывает баланс белого камеры при расчете оценки разницы между элементами изображения. Методы. Камера автоматически настраивает баланс белого в соответствии с одним из режимов, установленных по умолчанию. Оценка разницы между двумя точками изображения осуществляется путем выполнения нормализации. В качестве метода расчета используется евклидова норма. Результаты. Предложен подход нормализации, учитывающий коэффициенты коррекции баланса белого. Расчеты выполняются исходя из операций с целыми значениями, что дает возможность использования их для непосредственного развертывания внутри аппаратной логики устройств. Это позволяет снизить как общую стоимость ресурсов для выполняемых операций, по отношению к существующей арифметике с плавающей точкой, так и упростить требования к конфигурации датчиков. Это повышает эффективность измерений при решении задач компьютерного зрения, направленных на сравнение точек одного изображения или при полном сравнении соответствующих элементов двух или серии изображений. Выводы. Предложенный в статье подход направлен на устранение недостатков современных систем, использующих оценку цветов. Алгоритм может использоваться как в устройствах, видеосъемки, так и в компьютерах, используемых для выполнения операций обработки изображений в системах компьютерного зрения. _Ключевые слова:_ _компьютерное зрение, коррекция баланса белого, датчики цвета, цветовая модель, опорные цвета,_ _норма точки изображения._ 34 ISSN 2706-8145, Системи керування та комп'ютери, 2019, № 4

섹션 본문 58문단 · 18,879자

(제목 없음)

1The proposed concept suggests a method, based on which a synthesis of an integer norm can be performed, which takes into account the white balance of the camera when performing the evaluation of the difference between the elements of an image. This idea is based on modifying the internal calculations of the camera, aimed at assessing the colour of the element of the image, using the process of colour model reduction that is embedded inside the camera, to the colour model of the classical representation. The use of this approach provides a number of advantages within the framework of systems in which there is a solution of computer vision problems in terms of using both graphical processing and artificial intelligence.

Introduction

2Human organism possesses the ability to see, determine and understand the environment using the visual information. The same idea was also formed and implemented in the computer vision technologies. Such technologies are usually used in surveillance systems, robotics, tracking mobile applications, engineering reliability and quality control etc. In every computer vision system, it is needed to track how the image has changed (or how the points of the image have changed).

3Computer vision systemsbuilt over modern CCD CMOS-sensors, allow adjust automatically the parameters of a frame according to the surrounding illumination, its position changesin space, integral characteristics of the frame, and other parameters that can indirectly influence the raster quality.

4The increase of the computational power in digital signal processorsbuilt in the sensor systems of computer vision allows on the one hand to significantly improve consumer and metrological characteristics of the finished device without tightening the technological requirements, but on the other hand requires specific processing algorithms that are attached to the architecture and scheme parameters of the specific device.

5In this paper are presented the results of the research based on the task of forming the difference assessment between two elements of a raster frame, that allows the conversion of the incoming data ISSN 2706-8145, Системи керування та комп'ютери, 2019, № 4 and the results of the comparison on hypothetically arbitrary bit grids distributed to a set of individual raster points representation ways, including colour schemes and device configuration parameters.

6Nowadays computer vision is developing in a wide variety of fields, one of which is machine learning, specifically deep learning that manages the high-level data composed into the hierarchical structures. It improves the abilities of chipprogramming using relatively cheap computational equipment [1].

7A distinctive feature of computer vision engineering and technology is the usage of adaptive algorithms and learning systems that are the basis for the practical computer vision usage in any valuable automation tasks.

8It leads to active implementation and development of the deep learning algorithms, weak artificial intelligence in terms of configuration and learning process, artificial intelligence for the recognition and classification tasks. The mentioned techniques that are used for solving the issues of signals digital processing in machine vision allow the active usage of phase-frequency and adaptive filtering, spectral analysis methods, wavelet transformation in the early stages of reading information from the matrix photo detectors on the programming and hardware levels. It also allows to reduce significantly the computational costs of image processing algorithms and distribute the processing between all links of machine vision chains.

9Nevertheless, all the tasks described above are reduced to the basic task of computer vision, namely: comparison of image points or series of images. This process is implemented in terms of work with the colour models. Each colour model defines the way of a point's colour representation and the way of its encoding inside a device.

10The difference assessment between two elements of a frame is a very important block of all image processing algorithms. However, nowadays the most of the norms that are defined over the colour spaces, perform the operations with the float values. When implementing algorithms for calculating the norm into the hardware logic of sensors, the usage of float arithmetic is unacceptable as it significantly increases the computational costs and also the hardware requirements of the sensors causing a great reduce in the performance level of the norm computational algorithms in terms of impossibility of their paralleling.

11Thus, the development of integer norms over the colour spaces will allow to organize an efficient ima-ge processing using the means of a device.

12In this article RGB colour model is reviewed. This model applies the additive method of colour processing (a colour is obtained by adding to black). It is known that any colour can be represented as a combination of three colours: red (R), white (W), and blue (B). These colours are also known as the reference colours and are specified by values from 0 to 255. RGB colour model allows the usage of ima-ge points colour identification of implementing the three-channel colour representation. It allows to perform the image normalization process exclu-ding the set of operations that are specific for and are defined over the float arithmetic.

13Let us review the described approach.

Problem Description

14Let there be a raster rectangular image of the resolution X X W H C, where W is the number of pixels in the width of the image, H -the number of pixels in the height of the image, C -the colour depth of the image (the number of bits used for contacting the representation of a colour in terms of a pixel encoding process). The position of every point of the image is uniquely determined by a pair of coordinates ( )

15In this case the content of every point is represented by a colour that is encoded by the device.

16Let there be a point of animage that is determined by a pair ( )

17It is needed to build an assessment, how this point differs from another point of the same image with a pair of coordinates ( )

18= This task can be solved by finding the distance between the points on the colour surface.

19The content of a point of an image can be given as a linear combination of a colour model reference points that is assigned by a polygon on the colour surface. Thus, in general the difference between the two colors is to be defined according to the distance between the colours. This distance can be computed as the length of a segment which endpoints are the positions of the colours on the surface.

20Let us review the situation where each of the devices makes certain adjustments to the immediate appearance of the colour model when performing white balance correction by deforming it. As a result, both the appearance of the polygon that limits the area of the colour plane and determines the internal colour scheme of the device, and the appearance of the surface that describes the colour gamut can change. While image processing algorithms take into account only some standards [2] or use classical representations of colour schemes, matching them with the results obtained from the camera, it makes sense to perform the final distance calculations considering the changes of the colour model due to the camera's white balance corrections before obtaining every next frame. As a result, the colour channel component values will be converted according to the white balance factors calculated after shooting the scene, and subsequently represented in traditional RGB color model.

21Then the final task of finding the difference between the two points of an image can be decreased to the following actions:

22performing the reduction of colour values obtained from the device to the values of the original color model;

23computing the distance between the points by calculating the norm (the problem can be set as a synthesis of a different type of a norm in terms of working with integer values and consideration of the white balance corrections).

24Speaking of the problem of the device colour scheme structure, the solution is to use the reference colours system conversion and the resulting change in the appearance of the colour surface, as well as the color gamut. This step can be performed as a precomputed set of operations.

Related Works. Colour Conversion

25The process of manufacturing, testing and automated adjustment of sensors involves the rejection and calibration of individual light-sensitive elements. The result of reading the image with some accuracy provides a representation of colours in a vector form, taking into account the calibrating parameters.

26Let us review the models of obtaining the image element data according to the results of measurements in individual photosensors.

Matrix Method

27This method is used if the assessment of several colours is needed. The method is based on the matrix (1)

Table Method

28This method is used if it is needed to define several colours simultaneously. The first step is to determine how important the brightness is. For each colour the sensor uses brightness information that was obtained during calibration from the reference colours set. If the brightness information is not important, then a specifically selected colour channel is used for the search of the ratios between the reference colors obtained during calibration and the determined colour (taken as the basis for all measurement sets).

29The brightness matters:

30The bright ness does not matter:

31where ( )

32the sensor temperature and the sampling frequency changes. Attempting to adjust the calibration data contributes to the accumulation of errors and processing algorithms complication [3].

Related Works. White Balance Correction Algorithms

33There are different approaches of white balance correction during the shooting of a scene (or scenes) using a device. The following section describes the basic versions of such algorithms.

Gray World Theory

34This method provides automatic white balance cor-

Retinex Theory

35Another possible method was produced by Edwin Land [4].This method is based on the principle that the white colour is a combination of three maximum values of the colour channels as it transmits the maximum possible level of signals into every channel. This method forms the white colour according to the component values of the brightest point of the image. At the same time, white balance correction factors can be obtained in two different ways:

Standard Deviation-Weighted Gray World

36Standard Deviation-Weighted Gray World method extends the representation of the Gray world method and was suggested by Lam [5].The image is divided into a certain number of blocks. For each block the standard deviations and values ( ) μ ; μ ; μ R G B are calculated that correspond to the colour channels , , R G B.The value for each channel is computed using the weight coefficients for every block. For the k-th block an average deviation of the green channel can be evaluated using the formula:

37Based on the obtained values the correction factors for each colour channel are evaluated:

38. 3

Std Avg R Std Avg G Stv Avg B corr B

39Std Avg B + + = ⋅

White Patches in YCbCr Colour Space

40This method was introduced by Wang, Chen and Fuh [6]. The image is represented in the YCbCr colour space. White balance correction factors can be obtained from the following expressions:

41where max Y -maximum intensity value in a given colour space [7].

White Balance Automated Correction Process

42In the process of shooting, the device (a camera) is able to change the way of white balance correction (this effect is achieved through a number of modes built in to the algorithms of the camera).

43The main advantage of this approach is its simplicity of implementation, as well as optimality in terms of the device usage. However, when shooting in RAW format, or solving computer vision issues aimed at searching the changes in the state of the image, and performing several images or several points of a specific image comparison in standard custom formats, such white balance correction implementation does not work properly (the white balance correction factors do not tend to unity).

44As a part of the image points representation comparison, such white balance adjustments can affect the loss of a certain number of colours, leading to failures in the accuracy of colour components calculations which leads to an incorrect com-parison result. As a result, the computation of the distance between the representations of points on the colour surface that is performed by the means of the normalization process will return incorrect values, since the camera's white balance correction for the selected scene (selected image) was not taken into account.

Proposed Approach

45Let us review the process of assessing the difference between two points of the image working in terms of the issue described in paragraph 2 of this paper. The camera automatically adjusts the white balance in accordance with one of the modes set in the camera by default. The assessment of the difference between two points of the image is performed by normalization. The Euclidean norm is used as the calculation method.

46The incoming data for the calculation of the norm is represented by the colour values of the points obtained from the camera. At the same time, the obtained values are converted from the colour space of the camera to the traditional colour space by considering the white balance correction factors that were used during the image capture. This conversion allows to transform a polygon that is the colour representation of the camera on the surface into a polygon that is representation of the classical RGB model. This conversion uses the matrix method and has the following structure:

47where matrix С is the matrix of conversion, that considers the white balance correction in terms of transition to the colour model RGB traditional look, vector x -point representation in the camera color space, vector у -the resulting representation of a point in the RGB color space.

48The calculations are performed in terms of working with integer values, and also can be used for direct implementation into the hardware logic of devices. This fact makes it possible to reduce both the overall cost of resources for the performing operations, as compared to the existing float arithmetic, and the requirements for the sensor configuration, thereby increasing the overall level of performance.

49Thus, we obtain a complex normalization algorithm that takes into account white balance correction factors, and can be used both in the devices that perform the shooting and in computers for the organization of computer vision systems.

Conclusion

50In the absence of the possibility to calibrate sensors directly during the use of the device, existing methods of colour identification are not as efficient as possible in terms of working with the computer vision issues. This is due to the fact that each of the devices (or rather, each of the sensors of this device) "receives" the corresponding section of the colour model, which is deformed relative to the similar standardized section allocated to the RGB model. In addition, in the process of shooting the device performs white balance adjustment based on the parameters set for it by default (as a set of automatic correction modes). On the basis of such parameters as the scene illumination, the position of the shot object, the position of the device relative to the scene, -for each of the frames its own correction is formed which entails another deformation of the section of the colour surface corresponding to the sensors of the device. As a result, the accuracy of image point color representation assessment analysis drops significantly, making it impossible to apply standard methods of computing the differences between two pixels by performing normalization since the actual positions of their representations on the colour surface differ from the positions of the representations identified by the device. These facts are also supported by the situation where the implementation of the float arithmetic in the algorithms for calculating the norm in the hardware logic of sensors, is unacceptable since it significantly increases the overall costs not only for the norm computation, but also increases the level of requirements for the sensor equipment, causing a significant drop in performance of normalizing algorithms due to the impossibility of their parallelization.

51The approach proposed in the article, aims to eliminate these drawbacks. Colours comparison in terms of using a standardized colour model (gamut) allows not only to obtain the same results regardless of the applied device, but also makes it possible to form a comparative analysis of the devices. This effect is achieved by the means of the data conversion that is obtained from the camera after performing automatic white balance correction to the traditional colour model. This allows to increase the accuracy of measurements in solving computer vision issues aimed at comparing points of one image or at a full comparison of two or a series of images.

52The algorithm can be wielded both in devices that shoot, and in computers that are used to perform image processing operations in computer vision systems. Вступ. Оцінка різниці між двома елементами зображення є важливим блоком всіх алгоритмів графічної обробки. Проте на сьогоднішній день більшість норм, які визначаються за колірними просторами, виконують операції з плаваючою точкою і без врахування внутрішньої структури колірної моделі камери.

53Мета. Метою даної статті є дослідження запропонованого підходу, на основі якого можливо виконати синтез цілочислової норми, що враховує баланс білого камери при розрахуванні оцінки різниці між елементами зображення.

54Методи. Камера автоматично налаштовує баланс білого відповідно до одного з режимів, встановлених за замовчуванням. Оцінка різниці між двома точками зображення здійснюється за рахунок виконання нормалізації. Як метод розрахунку використовується евклідова норма.

55Результати. Запропоновано підхід до нормалізації, що враховує коефіцієнти корекції балансу білого. Розрахунки виконуються з точки зору здійснення операцій з цілими значеннями, що надає можливість їх використання для безпосереднього розгортання всередині апаратної логіки пристроїв. Цей факт дозволяє знизити як загальну вартість ресурсів для виконуваних операцій, по відношенню до існуючої арифметики з плаваючою крапкою, так і зниження вимог до конфігурації датчиків.

56Запропонований підхід дозволяє підвищити ефективність вимірювань при вирішенні задач комп'ютерного зору, спрямованих на порівняння точок одного зображення або при повному порівнянні відповідних елементів двох або серії зображень.

57Висновки. Запропонований у статті підхід спрямований на усунення недоліків сучасних систем, що використовують оцінку кольорів. Алгоритм може використовуватися як в пристроях, які здійснюють відеозйомку, так і в комп'ютерах, які використовуються для виконання операцій обробки зображень в системах комп'ютерного зору.

58Ключові слова: комп'ютерний зір, корекція балансу білого, датчики кольору, колірна модель, опорні кольори, норма точки зображення.

참고문헌 5건

  1. A Standard Default Color Space for the Internet - sRGB 2005
  2. A Novel Automatic White Balance Method For Digital Still Cameras 1993 IEEE International Symposium on Circuits and Systems · 2005 10.1109/iscas.2005.1465458
  3. Automatic white balancing using standard deviation of RGB components 2004 10.1109/iscas.2004.1328898
  4. Lightness and Retinex Theory Journal of the Optical Society of America · Optica Publishing Group · 1971 10.1364/josa.61.000001
  5. Deep Learning For Computer Vision Tasks: A review arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1804.03928