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

Colour Recognition Algorithm Based on Colour Mapping Knowledge for Wooden Building Image

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Siyi Jia — Guangxi Arts University, Nanning 530022, China
  2. Heng Chen — Guangxi Arts University, Nanning 530022, China
DOI
10.1155/2022/1313819
저널
Scientific Programming
발행년도
2022
발행기관
Hindawi Publishing Corporation
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1155/2022/1313819
토픽
Color Science and Applications
OpenAlex ID
W4206395235

평가 내용

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

초록

In the cross-media image reproduction technology, the accurate transfer and reproduction of colour between different media are an important issue in the reproduction process, and the colour mapping technology is the key technology to effectively maintain the image details and improve the level of colour reproduction. Wooden structure in the image colour and colour piece is different, the image of each colour of visual perception is not independent, and every colour in the image pixels is affected by the surrounding pixels, but in the process of image map, without thinking of the pixel space, adjacent pixels of mutual influence in particular, do not let a person particularly be satisfied with the resulting map figure. In the process of image processing by traditional colour mapping algorithm, the colour distortion caused by colour component is ignored and the block diagram of colour mapping system is constructed. With the continuous development of mapping recognition algorithms, the maximum and minimum brightness values in the image are mapped to the maximum and minimum brightness values of the display device by linear mapping algorithm according to the flow of the established recognition algorithm. By establishing the colour adjustment method of the colour mapping image, the processing effect of the mapping algorithm is analysed. The results show that the brightness deviation of the image is reduced and the colour resolution is improved by the colour brightness compensation.

본문 47,207자

본문 펼치기
Hindawi Scientific Programming Volume 2022, Article ID 1313819, 11 pages [https://doi.org/10.1155/2022/1313819](https://doi.org/10.1155/2022/1313819) # _Research Article_ Colour Recognition Algorithm Based on Colour Mapping Knowledge for Wooden Building Image Siyi Jia and Heng Chen _Guangxi_ _Arts_ _University,_ _Nanning_ _530022,_ _China_ [Correspondence should be addressed to Heng Chen; 20030022@gxau.edu.cn](mailto:20030022@gxau.edu.cn) Received 15 November 2021; Revised 3 December 2021; Accepted 7 December 2021; Published 12 January 2022 Academic Editor: Le Sun [Copyright © 2022 Siyi Jia and Heng Chen. *is is an open access article distributed under the Creative Commons Attribution](https://creativecommons.org/licenses/by/4.0/) [License,](https://creativecommons.org/licenses/by/4.0/) which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. In the cross-media image reproduction technology, the accurate transfer and reproduction of colour between different media are an important issue in the reproduction process, and the colour mapping technology is the key technology to effectively maintain the image details and improve the level of colour reproduction. Wooden structure in the image colour and colour piece is different, the image of each colour of visual perception is not independent, and every colour in the image pixels is affected by the surrounding pixels, but in the process of image map, without thinking of the pixel space, adjacent pixels of mutual influence in particular, do not let a person particularly be satisfied with the resulting map figure. In the process of image processing by traditional colour mapping algorithm, the colour distortion caused by colour component is ignored and the block diagram of colour mapping system is constructed. With the continuous development of mapping recognition algorithms, the maximum and minimum brightness values in the image are mapped to the maximum and minimum brightness values of the display device by linear mapping algorithm according to the flow of the established recognition algorithm. By establishing the colour adjustment method of the colour mapping image, the processing effect of the mapping algorithm is analysed. *e results show that the brightness deviation of the image is reduced and the colour resolution is improved by the colour brightness compensation. 1. Introduction *e 21 <sup>st</sup> century is the information age. Computer technology changes with each passing day, and people’s access to information, processing information, and the way of transmitting information also have a qualitative development. 83% of the information acquired by human beings comes from the visual system, and the image is the carrier of visual information, so the image plays an important role in information transmission. Image processing is to use computer to process the image information, so as to achieve the desired effect. Image processing technology can make people understand the world more objectively and accurately. In many cases, the image people get is fuzzy; through image enhancement, blurred image can be made clear. Image processing technology has achieved rapid development; all kinds of digital images are also widely used in various fields of production and life. Usually, digital image in the used process will involve the image data processing, such as image information acquisition and transmission. In these processes, the quality of the image itself must be guaranteed to meet the requirements of use [1]. Pattern recognition technology can identify the target in the image and retrieve and classify the image. Colour mapping is to solve the problem of large contrast attenuation to transform the brightness of the scene to the range that can be displayed, while maintaining the image details and colour information which is very important for the performance of the original scene. *e colour mapping algorithm maps the range of the image to the range that the general display device can display. On the one hand, the mapping of high dynamic range images must map large range to display device range through compression, which will inevitably lead to the loss of details. On the other hand, it is necessary to enhance the detail information in order to keep the high light and low dark, which will lead to the contradiction between the compression of scope and the enhancement of detail, and easily cause visual defects, such as halo phenomenon and 2 Scientific Programming gradient inversion. Just because of these contradictions and difficulties, image colour mapping algorithm has always been the focus of image processing and display research. With the rapid development of human science and technology, a variety of buildings with different styles, materials, and uses have emerged. So many architectural landscapes not only enrich human life but also provide a broad space for choice. However, in today’s highly developed human civilization, humanistic thought has received great attention, which has invisibly increased human troubles. We explore from the perspective of image, use image processing knowledge and computer technology to get valuable data, and find the essential difference hidden behind the image. Although there are a large number of articles with similar purposes in previous studies, the analysis of various architectural images is rarely done. In the field of image processing, the analysis results of architectural images are mainly applied in image retrieval and image classification [2]. With the rapid development of database system and computer vision, basic low-level features, such as colour, line, and texture, are generally selected for image classification based on image features. In daily life, all the wonderful visual presentation comes from colour. Colour is an important language and factor in architectural design. Cleverly applying the rules of colour emotion in the design and giving full play to the implication of colour can attract extensive attention and interest of the public and easily produce various associations and imaginations. As an independent subject, chronology has its basic laws and attributes. Although colour perception varies from person to person, it has a common side. When people are opposite calorific experience and understanding mix after complex thought feeling and rich life experience, colour becomes rich human nature and emotional appeal. Architectural colour, as an important factor of urban landscape, directly affects people’s visual and spiritual feelings. Different colour can produce different psychological feeling, and the association that colour place introduces and feeling concern the creation of environmental atmosphere directly. *e same colour can also produce different psychological feelings in different architectural environments. Orderly architectural colour collocation not only can bring people a pleasant and unforgettable feeling but also makes the city more unique charm. Otherwise, the chaotic architectural colour can only bring colour pollution; in the long run, it will cause people’s visual fatigue but also cause damage to the image of the city. Architectural colour, as an important factor of urban landscape, directly affects people’s visual and spiritual feelings. Different colour can produce different psychological experience, and the association that colour place introduces and feeling, the creation that concerns environmental atmosphere directly. *e same colour can also produce different psychological feelings in different architectural environments. Orderly architectural colour collocation not only can bring people a pleasant and unforgettable feeling but also makes the city more unique charm. Otherwise, the chaotic architectural colour can only bring colour pollution; in the long run, it will cause people’s visual fatigue but also cause damage to the image of the city. *e information conveyed by colour plays an irreplaceable role. People no longer only stay in the visual level but begin to pay more attention to the impact of colour on people’s spiritual world [3]. Under the impetus of lacquer craft development, wooden structure utensils represented by black and red eventually replaced bronze utensils and were widely used. For the purpose of protecting wood, with the development of lacquer technology and colouring technology, Chinese wood structure architecture slowly presents rich colours. Wooden structure building gradually from the original colour to a variety of colour development, from architectural colour to material colour, as well as architectural colour painting, reflect a huge difference. *e main colours of traditional wooden structure buildings reflect two extremes due to different architectural functions, namely, “low-key and elegant” and “rich and colourful.” Under the influence of the view of nature, Chinese traditional wooden structure buildings also reflect the characteristics of respecting nature. Wooden structure residential buildings often use local materials and make use of the colour of building materials themselves. Due to the difference of natural environment, human environment, and social background, the application of colour in Chinese traditional wooden structure architecture reflects different characteristics in different air. *e traditional wooden structure architecture has experienced thousands of years of development. Under the interweaving of regional culture and national culture with different characteristics in China, the colour system of wooden structure architecture with national characteristics has been developed, and its differences are reflected in different wooden structure architecture. Wood construction is a kind of art, image colour regulation is also an important part of architectural art, and how to obtain real colour through colour regulation has become the primary problem to be solved at present. 2. Related Work Colour mapping algorithm will use different mapping functions for different local areas of the image according to the neighbourhood information of the image pixels in the process of mapping. In the process of local colour mapping, the values of two pixels with the same gray value may be different after mapping, and the values of two pixels with different gray value may be the same after mapping. *is can enhance the local contrast of the image, but there may be visual defects such as gradient inversion and halo phenomenon. Fan et al. proposed a multiscale Retinex colour mapping algorithm based on human visual model. *e algorithm can achieve dynamic range compression of images by eliminating the influence of illumination to obtain the reflected images reflecting the essential features of images. However, this method will produce halo phenomenon at the high-contrast edge of the image. Colour mapping using multiscale algorithm can reduce the halo phenomenon but will not completely eliminate it [4]. Haindl and Mikes proposed a colour mapping algorithm that is processed in the gradient domain. Firstly, the gradient domain of image brightness component is calculated, and then the larger Scientific Programming 3 gradient in the attenuation gradient domain is worth the modified gradient domain. Finally, the compressed image is obtained by solving the Poisson equation. *is method can effectively compress the dynamic range of images and avoid visual defects such as gradient inversion and halo phenomenon, but it does not consider the accuracy of human visual system. Areas that are too dark become lighter or areas that are too bright become darker. *e scale selection of the local area of the algorithm has a great influence on the mapping result and is prone to halo [5]. Zheng proposed a colour mapping algorithm based on fast bilateral filtering. Fast bilateral filtering is an improvement of bilateral filtering, which greatly improves the time efficiency. Fast bilateral filtering is obtained by piecewise linear approximation and spatial downsampling in the intensity domain of bilateral filtering. Fast bilateral filter is used to divide the image into basic layer and detail layer. Dynamic range compression is performed on the basic layer, and then it is added to the detail layer for subsequent processing to obtain the image after dynamic range compression [6]. Colour mapping using bilateral filtering is easy to produce visual defects such as halo and gradient inversion. Bilateral filter which can effectively filter out image details while preserving image edges is called edge preserving filter. Colour mapping algorithms based on edge preserving filter have been developed vigorously in the following years. *is algorithm first transforms the image into a brightness channel and then scales it with an edge preserving filter. *e filtering result of the original image is the basic layer, and the difference between the original image and the basic layer is the detail layer. *e dynamic range of the base layer is compressed, and the dynamic range of the detail layer is enhanced. Finally, after combining the basic layer and detail layer, colour restoration is carried out to get the image after colour mapping. In the colour mapping algorithm, it is necessary to maintain the spatial relationship of the image as a basic principle, that is, the details obtained by the filter must be returned to the image by certain technical means. *e colour mapping algorithm based on edge preserving filter has a very good image effect. Spreitzer et al. proposed the weighted least squares filter, which is an edge-preserving filter based on the weighted least squares framework, which can extract details of any scale while preserving edges and avoid halo effect and gradient inversion [7]. Masaoka et al. proposed the guidance filter, which processes the input image through a guidance image, so that the output image is similar to the input image in general but similar to the guidance image in texture. Guided filtering can overcome the problem of gradient inversion of bilateral filtering, but image processing will have halo phenomenon [8]. Sikudova et al. proposed the 0L smoothing filter, which performs edge preservation and smoothing on the image under the constraint of the minimum norm of 0L [9]. Lee et al. proposed the local edgepreserving filter, which defined the prominent edge as a relatively large local gradient, defined the detail as the local extreme value of the image, and then calculated the filtered value through energy function operation [10]. Pytlarz et al. proposed the gradient domain guided filter, which is an edge-preserving filter based on the guided filter and combined with explicit first-order edge perception constraints. *e gradient domain guided filtering can maintain the edge of the image better than the guided filtering and reduce the halo phenomenon in the image [11]. Wan et al. proposed a local colour mapping algorithm based on photographic model while proposing a global colour mapping algorithm based on average logarithmic brightness. *ey partitioned the dynamic range of the scene and the display device. Firstly, the dynamic range of the display device was divided into 11 regions, and then the average log value of the scene brightness was corresponding to region 5, and the dynamic range of the scene was divided into regions according to the maximum and minimum brightness values in the scene [12]. At present, there are many filtering technologies, but there is still no one to achieve a wide range of applications, so the problem that needs to be considered is how to enhance the adaptive filter, so that the filter noise elimination effect is improved and tends to be stable. *e edge structure filtering technique can eliminate the noise and save the structure information of the image, which is beneficial to the subsequent processing of the image. *e edge preserving filtering technique is such a filtering method that can best preserve edge and detail while removing noise. Masaoka et al. proposed a colour mapping algorithm based on histogram, which can maintain visibility in various scenes with high dynamic range. *is algorithm adds a new histogram adjustment technique on the basis of local adaptive brightness of scene. *e luminance histogram is first created, and then the cumulative probability density function is calculated, which is mapped according to the maximum and minimum luminance after histogram and mapping. At the same time, the algorithm combined the human contrast sensitivity, glare, spatial sensitivity, and colour sensitivity models to make the mapped image have a better visual experience [13]. Zhang et al. proposed a global colour mapping algorithm based on mean logarithmic compression. *e method first calculates the average logarithmic brightness value of the image. In practice, they find that the average pixel brightness is always mapped to 18% of the average scene display range, thus establishing the compression equation. *en the image is linearly compressed, and the dynamic range of the image is mapped to the dynamic range that can be displayed by the display device [14]. Xu et al. proposed an adaptive logarithmic colour mapping algorithm based on base number. Human eyes have a similar sensitivity to luminance changes as logarithmic function, so logarithmic mapping can achieve good results. *e algorithm simulates the human eye’s response to light and compresses the luminance logarithmically. *e deviation energy function is used to change the logarithmic base adaptively so that the mapped image has good detail information and contrast. Meanwhile, gamma correction was used to enhance the contrast of dark areas [15]. Poppiel et al. proposed a colour mapping algorithm based on linear mapping and histogram equalization, which combined linear mapping and histogram equalization, taking into account both the pixel value of the image and the pixel distribution of the image, achieving good results. 4 Scientific Programming Firstly, global histogram mapping is used to compress the dynamic range; then the image is segmented, and the local area of the image is adjusted adaptively to enhance the local contrast, so as to obtain better image quality [16]. Xu et al. proposed a colour mapping algorithm based on histogram and human visual model. *e algorithm uses brightness histograms to build lookup tables for colour mapping. Firstly, the high dynamic range image is transformed into brightness channel, and then the histogram is constructed according to the threshold and intensity curve of human visual model. At the same time, in order to avoid excessive compression and excessive enhancement, the improved histogram is obtained by removing the pixels in the histogram that cannot be distinguished by HVS in consideration of the visual contribution of each pixel in the histogram. Combined histograms are obtained by weighting original histograms and improved histograms. Finally, LUT is created and the mapping process and colour restoration are carried out to obtain the corresponding low dynamic range image. Colour mapping algorithms based on histogram and human visual model are relatively simple and efficient and can produce visually pleasing colour mapping images [17]. Kim et al. proposed an image adjustment method based on Gaussian pyramid. By calculating the average difference and standard deviation of RGB images; the colour emission equation is constructed to compensate the colour and complete the colour adjustment of the image [18]. *is paper will study how to extract the colour features of the building image and analyse the processing effect of the mapping algorithm by establishing the colour mapping image colour adjustment method to provide reference for the subsequent research. It overcomes the phenomenon of colour distortion caused by ignoring colour component guide in traditional colour mapping algorithm. 3. Research on Colour Mapping Knowledge Recognition Algorithm _3.1._ _Overview_ _of_ _Colour_ _Map_ _Recognition_ _Algorithm._ Colour mapping compresses the high dynamic range of the real world so that it can be optimally displayed on low dynamic range devices. Colour mapping is established from high dynamic range to low dynamic range, and the compressed dynamic can optimize the brightness information of the actual scene, which is displayed on the common low dynamic range equipment, giving the observer a matching observation experience. *is is the essence of all colour mapping algorithms. It can be defined mathematically as follows: _T_ : _Ld_ - _T_ - _Lw_ ? _, Ld_ ∈ _D, Lw_ ∈ _W._ (1) In the above formula, _T_ represents the colour mapping operator, namely TMO; _D_ is the set of luminance values of the display device; _W_ is the set of luminance values of the actual scene; _Ld_ and _Lw_ represent the luminance values of the display device and the actual scene, respectively. *e colour mapping framework based on image detail preservation firstly uses image filtering technology to filter the input image, which is decomposed into low frequency image corresponding to image edge contour information (also known as base layer image) and high frequency image corresponding to image texture detail information (also known as detail layer image). *e first mapping results are added, and the final mapping result is obtained by the second mapping of the merged image. *e two-colour mapping processes in the framework all use colour mapping methods, and different algorithms can be selected according to the actual mapping effect. Figure 1 shows a block diagram of a typical colour mapping system. Colour mapping algorithms can be divided into two types: one is spatial invariant algorithm, also known as global dynamic range compression. *is algorithm applies the same transformation curve to each pixel when transforming the dynamic range of the image [19]. *e transformation curve can be specified in advance or obtained according to the content of the image. Exponential transformation or logarithmic transformation are commonly used, because these two kinds of curves are more consistent with the human visual model curve. Different visual effects can be obtained according to different transformation curves. *is mapping algorithm is relatively simple and efficient. Compared with traditional mapping algorithms, it uses the same transformation curve for each pixel in the image, which is actually a point processing that separates each pixel without considering the influence of the neighbourhood on the pixel. Fixed transformation curve cannot adapt to different regions of the image, resulting in a certain loss of detail, brightness, and colour of the mapped image. *e other is spatial correlation algorithm, also known as local dynamic range compression algorithm. *is kind of algorithm is not for a single pixel processing, but according to the pixel neighbourhood different transformation. When transforming the gray value of a point in the image, the spatial information of the point is also taken into account. *erefore, two pixels with the same value in an image may have different mapping values after mapping, and originally different pixel values may be mapped to the same value after mapping. _3.2._ _Identify_ _the_ _Flow_ _of_ _Algorithms._ *e recognition algorithm firstly transforms the high dynamic range image into luminance channel and takes logarithm and normalization for preprocessing. *en, scale decomposition process, using filter for filtering, get the basic layer and the details of the corresponding layer, using the basic layer recognition algorithm based on histogram and the method of human visual model to create dynamic range compression, both efficient and effective compression basic layer, and accord with human visual characteristic, making the compressed image contrast effect very good; it is superior to other s-shaped curves for basic layer compression. *e detail layer is enhanced by S-curve processing, which not only stretches the contrast but also conforms to human visual characteristics [20]. At the same time, there is no gradient inversion, which makes the detail information of the resulting image richer. *e treated basic layer and detail layer are combined Scientific Programming 5 Spatial correlation algorithm Spatial invariant algorithm Scene radiation Filter Color processing Conversion Display Low frequency image High frequency image Mapping model input Monitor Figure 1: Tone mapping system framework diagram. to obtain the treated brightness channel value. At last, after postprocessing, abnormal pixels were removed to remove noise; normalization and colour correction were carried out to obtain the low dynamic range image. *e process of identifying the algorithm is shown in Figure 2. In the colour mapping algorithm, independent dynamic range compression for R, G, and B channels can produce better colour reproduction and mapping results. *e local colour mapping algorithm compresses the three channels independently, which leads to colour distortion. *erefore, the local colour mapping algorithm can effectively separate the colour information and brightness information of the image, while preserving the colour information of the image. For the preprocessing of the algorithm, we first transform it into grayscale image, then perform a preliminary logarithmic compression transformation, and finally normalize the brightness channel. _3.3._ _Linear_ _Mapping_ _Algorithm._ Linear mapping is the simplest mapping method, which maps the maximum and minimum brightness values in the high dynamic image to the maximum and minimum brightness values of the display device, respectively, and the brightness values in the middle are mapped to this range according to the corresponding mapping relationship [21]. A linear transformation method is given in this paper. *e transformation formula used is as follows: _Ld_ - _mLw,_ (2) Linear mapping operator has a small amount of calculation, and this algorithm can achieve good results when the dynamic range of the scene is not much different from that of the display device. However, for high dynamic images, many highlights and dark scene details will be lost. In addition, this method does not consider the absolute radiation intensity of the scene at all, so it may lead to the same image mapped to the same scene under sunlight in the day and weak light at night, and the overall impression information of brightness of the scene is lost. Because the change of logarithmic relation is very close to the pattern of human eye’s response to the change of light intensity, the logarithmic relation equation can be used to compress the data of high dynamic range image to achieve a better effect. *is paper proposes a logarithmic mapping relation: <u>log�</u> _Lw_ - <u>1?</u> _Ld_ - (5) log� _Lw_ max − 1? <sup>_~~.~~_</sup> For each pixel, _Ld_ is the light intensity displayed by the display device, _Lw_ is the light intensity of the actual scene, and _L_ max is the maximum light intensity in the actual scene. *is mapping ensures that no matter what the dynamic range of the actual scene is, the highest light intensity is always mapped (white) and the rest of the light intensity is smoothly mapped onto the display device. *is method is good for high dynamic range images with high contrast, but it cannot reproduce very dark and very bright image scenes simultaneously. *erefore, this mapping operator is suitable for high dynamic images without extreme brightness scenes. *is paper improved the formula and proposed a new logarithm equation: <u>log�</u> _<u>Lw</u>_ <u>−</u> <u>1?</u> _Ld_ - <sup>_<u>Ld</u>_</sup> <sup><u>max × 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>01</u></sup> (6) log� _Lw_ max − 1? <sup>×</sup> log� 2 _Lw_ + _Lw_ max? <sup>_~~.~~_</sup> *e equation is adaptive and the mapping factor varies with the brightness pairwise relationship. *e basic idea is to use a user control parameter to control the shape of the mapping factor curve and the corresponding brightness range. If there is extreme brightness scene in high dynamic image, the user can adjust the appropriate control parameters according to the characteristics of the image and also get ideal results. In the above formula, _Lw_ max is the maximum brightness value of the actual scene, and _Ld_ max is the maximum brightness value that can be displayed by the display device and is used as the quantization parameter for display. Generally, _Lw_ is the brightness value of the actual scene. _<u>d</u>_ _m_ - ? <sup><u>1</u></sup> <sup>_._</sup> <sup><u>219 −</u></sup> <sup>_L_</sup> <sup>0</sup> <sup>_._</sup> <sup>4</sup> ~~?~~ 1 _._ 219 − _L_ <sup>0</sup> _w_ <sup>_._</sup> <sup>4</sup> 2 _._ 5 _._ (3) _Ld_ and _Lw_ indicate the brightness that can be represented by the display device and the illumination value of the actual scene, respectively. In the implementation of this system, two linear mapping operators are compared. One is to set _m_ in formula (2) as a constant, which is valued as 150 here, and the other is to use the following linear mapping operators: _<u>h</u>_ _ξ_ - <sup><u>log</u></sup> <sup>_<u>ξh</u>_</sup> <sup><u>−</u></sup> <sup><u>log</u></sup> <sup>_<u>ξ</u>_</sup> <sup>min</sup> _<u>h</u>_ <sup><u>log</u></sup> <sup>_<u>ξh</u>_</sup> <sup><u>−</u></sup> <sup><u>log</u></sup> <sup>_<u>ξ</u>_</sup> log _ξ_ <sup><u>max</u></sup> _h_ - log _ξ_ _h_ <sup><u>max</u></sup> _h_ - log _ξ_ <sup><u>max</u></sup> _h_ × 255 _._ (4) *e above mapping operator is to map all the brightness values of the actual scene to and then multiply to restore to the dynamic range of the common display device. 6 Scientific Programming Input image Wooden architecture Color correction Output image Remove transformation noise channel noise Take logarithmic normalization Base layer Transformation of the channel Smoothing Show details Posttransformation Curve to Lookup table enhance compression Figure 2: Identify the flow chart of the algorithm. In order to enable the algorithm to automatically adjust the radix of the logarithm equation for brightness values of different pixels and make it change between 2 and 10, the algorithm adopts an adaptive logarithm radix calculation equation: _S_ ( _t_ ) � _t_ <sup>log(</sup> <sup>_b_</sup> <sup>)/log(0</sup> <sup>_._</sup> <sup>5)</sup> _._ (7) Here is the parameter that can be adjusted by user _B_, which has a significant influence on the bright area and dark area of the image. *e recommended value range is 0.5–1.0. Another point to note about this algorithm is that the data used to map highly dynamic images is done in colour space. In the algorithm, firstly, to the input of high dynamic image data from colour space conversion, for the space in the space, the channel value is the brightness of the original image; the channel into the formula (6) to calculate the value of the generation _Y_ compressed the brightness values of high dynamic, and then brightness value data is converted to RGB colour space; you can get the final output effect. _3.4._ _Colour_ _Mapping_ _Image_ _Colour_ _Adjustment_ _Method._ On the basis of the image correction results, the response curves of channels R, G, and B were set, and the illuminance value of each image pixel point in the corresponding channel was obtained through the response curve [9, 10]. *e gain coefficient was extracted from the illuminance value by the colour mapping algorithm, and the colour adjustment was completed through the gain parameters. *e specific process is as follows. *e global colour mapping algorithm is adopted to compress the illumination value of the wooden building into the gray value of the image: <u>�</u> <u>?</u> _D_ ( _E_ ) � - _D_ max − _D_ min? × <sup><u>log</u></sup> <sup>_<u>E</u>_</sup> <sup><u>min −</u></sup> <sup><u>1</u></sup> (8) log� _E_ max − 1? <sup>_~~.~~_</sup> In the formula, _E_ represents the illuminance value of wood-framed buildings, and _D_ represents the Gray value of wood-framed buildings. _E_ max represents the maximum illuminance of wood structure buildings, and _E_ min represents the minimum illuminance of wood structure buildings. _D_ max represents the maximum and _D_ min the minimum of wood construction gray scale. According to the above formula, the average illuminance can be obtained as _E_ - exp⎡⎢⎢⎣ <sup><u>1</u></sup> ⎡⎢⎢⎣ _N_ <sup><u>1</u></sup> <sup>?</sup> log − _E_ ( _x, y_ )⎤⎥⎥⎦ _,_ (9) <sup><u>1</u></sup> _N_ <sup>?</sup> _x,y_ _x,y_ where _N_ represents the total number of pixel points in the image and _E_ ( _x_, _y_ ) represents the illuminance value of a certain point. Determine the median value as shown in _k_ - _A_ × _B_ [ <sup>log</sup> <sup>_E_</sup> <sup>max−</sup> <sup>log</sup> <sup>_E_</sup> ] _,_ (10) where the value of _k_ is [0,1] and _A_ and _B_ represent constants. *e offset at the solution of formula (10) is calculated by Newton iteration method: <u>log(</u> _<u>E</u>_ <u>−</u> _<u>τ</u>_ <u>) −</u> <u>log�</u> _<u>E</u>_ <u>min −</u> _<u>τ</u>_ <u>?</u> _k_ - (11) log� _E_ max − _τ_ ? - log� _E_ min − _τ_ ? <sup>_,_</sup> where _τ_ represents the offset. Colour level mapping is performed by offsets of retro architectural images: _DR_ - _DR_ max − _DR_ min _._ (12) Extract the level mapping image of the colour channel: <sup>_N_</sup> _j_ �1 <sup>_R_</sup> _ij_ <sup>+ ?</sup> <sup>_M_</sup> _i_ <sup>?</sup> <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ �1 <sup>_G_</sup> _ij_ <sup>+ ?</sup> <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ �1 <sup>_B_</sup> _ij_ ? <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ �1 <sup>_R_</sup> _ij_ <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ <sup>_N_</sup> _j_ �1 <sup>_G_</sup> _ij_ <sup>+ ?</sup> <sup>_M_</sup> _i_ <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ _~~.~~_ (13) (14) _kr_ ? <sup>_M_</sup> _i_ <sup>_M_</sup> _i_ �1 <sup>?</sup> <sup>_N_</sup> _j_ <sup>_N_</sup> _j_ �1 <sup>_R_</sup> _ij_ Use gain coefficient to adjust colour: ⎪⎧⎪⎪⎨ ⎪⎪⎪⎩ _DR_ <sup>′</sup> - _DR_ × _kr,_ _DG_ <sup>′</sup> - _DG_ × _kg,_ _DB_ <sup>′</sup> - _DB_ × _kb._ 4. Research and Analysis of Colour Mapping Knowledge Recognition Algorithm for Wooden Building Image _4.1._ _Image_ _Brightness_ _Deviation._ In order to prove the effectiveness of the proposed method of automatic colour adjustment of wooden building image based on colour Scientific Programming 7 0.10 0.08 0.06 0.04 0.02 0.00 Max deviation Standard deviation Average deviation 0 100 200 300 400 500 600 Collection quantity Figure 3: Result diagram of automatic colour adjustment method for wooden building image. mapping algorithm, a simulation is needed. *e simulation environment is as follows. *e platform of MATLAB R2015b is used, and the experimental data is OTB-50 standard dataset. *e brightness deviation of the proposed colour mapping algorithm was compared with that of the gradient region segmentation method. *e results of automatic colour adjustment method for wood-frame building image based on colour mapping algorithm are shown in Figure 3. *e result of colour regulation method based on gradient region segmentation is shown in Figure 4. It can be seen from the figure that the brightness deviation of the image colour adjustment method based on the colour mapping algorithm is relatively low. When the number of experiments is 30, the brightness deviation of the proposed method is 0.29 cd/m <sup>2</sup>, and that of the colour adjustment method based on the gradient region segmentation is 0.78 cd/m <sup>2</sup> . *e proposed method compensates the brightness of the colour. *e image brightness deviation is reduced and the colour resolution is improved. *e colour adjustment method based on colour mapping is obviously superior to the colour adjustment method based on gradient region segmentation in terms of average and maximum chromatic aberration. Image solving colour correction function reduces colour distortion so that the original image retains the structural characteristics and improves the colour node effect. *rough intuitive visual experience and integrated image details, the algorithm in this chapter has well expanded the dynamic range of the image, made the image have more details, and performed well in colour without colour deviation. _4.2.ColourAdjustmentTime._ A large number of experiments were conducted on 40 wood-framed building images, and the traditional colour adjustment method and colour mapping recognition algorithm were used to conduct the colour adjustment time. *e statistical results are shown in Figure 5. As can be seen from the figure, the average time of the proposed image colour adjustment method based on colour mapping algorithm is 3.25 s, the shortest colour adjustment time is 2.98 s, and the longest colour adjustment time is 3.34 s. Compared with traditional algorithms, the proposed method can effectively reduce the time of colour adjustment by correcting the image colour. _4.3._ _Peak_ _Signal-to-Noise_ _Ratio._ In the process of system testing, 40 wooden building images were selected for a large number of experiments, and several building colour template coefficients were obtained. After the relevant template is obtained, the colour component can be encoded, and the obtained colour component can be inverted to obtain the reconstructed image, which is matched with each feature region, and the peak signal-to-noise ratio can be calculated. *e calculation formula is as follows: _P_ - lg <sup><u>2552</u></sup> (15) _δ_ <sup>_~~,~~_</sup> where _δ_ represents the mean square error of the original image. *e sample pattern was analysed and its peak signalto-noise ratio was compared. *e analysis results of the statistical system are shown in Figure 6. It can be seen from the figure that the results of peak SNR analysed by traditional system and this paper differ greatly in different feature areas of wood-frame building images, and the fundamental reason lies in the coding elements corresponding to the correlation template coefficients. In the traditional system, there is no step to encode the image, which leads to high channel pressure. *e mean square error of the encoded region and the original region becomes 8 Scientific Programming 2.0 1.8 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 0 100 200 300 400 500 600 Collection quantity Max deviation Standard deviation Average deviation Figure 4: Results of colour regulation method based on gradient region segmentation. 6.0 5.5 5.0 4.5 4.0 3.5 3.0 2.5 0 10 20 30 40 Order number Mapping l algorithm Traditional algorithm Figure 5: Results of colour regulation method based on gradient region segmentation. smaller, and the signal-to-noise ratio after coding will be higher, and the mining degree of visualization of colour attribute information of wooden buildings will be higher. _4.4._ _Quality_ _Factor._ In order to more objectively compare the application effect of the traditional algorithm with that of the algorithm in this paper, 10 classical wood-framed building pictures are used for the experiment, and the results obtained are shown in Figure 7. As can be seen from the figure, the average value of the obtained images is the highest, indicating that the image quality after the algorithm mapping is the best. *e time complexity of guided filtering is low, but some images after mapping have halo phenomenon. On the basis of guided filtering, filtering can better maintain the image edge and reduce the halo phenomenon. *e efficiency of the mapping algorithm is improved by 50%, especially the efficiency of the large image. *e recognition algorithm can effectively maintain the details of the image, have good brightness and Scientific Programming 9 60 50 40 30 20 10 90 80 70 60 50 0.960 0.955 0.950 0.945 0.940 0.935 0.930 0.925 Figure 6: Peak signal to noise ratio statistical analysis result diagram. 0 2 4 6 8 10 Traditional algorithm This algorithm 0.990 0.985 0.980 0.975 0.970 0.965 A11 A12 A13 A11 A12 A13 0 10 20 30 40 Image sequence number 0 10 20 30 40 Image sequence number Figure 7: Comparison diagram of application effect between traditional algorithm and this algorithm. 10 Scientific Programming contrast, display the information of the image highlighting and low dark at the same time, and obtain good image quality. 5. Conclusion With the update and iteration of multimedia equipment, more and more image capture equipment can capture the high dynamic range of natural scenes more accurately. Colour mapping algorithm emerges as *e Times require. Colour mapping is a key technology in cross-media image replication. Images store nearly real scene information with rich details and can truly represent various rich information in the natural world. In this paper, the hue mapping algorithm is implemented to enable the mapped image to be displayed on the monitor. In the process of colour mapping, we should try to keep more details, enhance the information with small contrast, keep the corresponding cooler information, and avoid visual defects such as halo. *rough the analysis of the tone-mapping algorithm for wooden building image, the effectiveness of the algorithm is verified by subjective and objective experiments. *e existing image colour mapping algorithm is studied in detail from the realization principle and application effect of the algorithm. By using the method of colour mapping image colour adjustment, the time of colour adjustment can be reduced effectively. *e efficiency of the mapping algorithm is improved by 50%, especially the efficiency of the large image. *e recognition algorithm can effectively maintain the details of the image, compared with the traditional algorithm which has better brightness and contrast, while displaying the image highlighting and low dark information, and obtain good image quality. Compared with traditional mapping, algorithm is improved and achieved great success, but the colour mapping algorithm remains a technical problem; how to maintain the effect of improving the efficiency of the algorithm, how to enlarge the scope of the same kind of algorithm, and making it in different brightness of the image can produce good effect, where it is also needed to follow up on constant innovation and improvement. Data Availability *e labeled dataset used to support the findings of this study is available from the corresponding author upon request. Conflicts of Interest *e authors declare that there are no conflicts of interest. Acknowledgments *is study was sponsored by Guangxi Arts University. References [1] M. Arashpour, T. Ngo, and H. Li, “Scene understanding in construction and buildings using image processing methods: a comprehensive review and a case study,” _Journal_ _of_ _Building_ _Engineering_, vol. 33, Article ID 101672, 2021. [2] M. Alam, D. Toslak, J. I. Lim, and X. Yao, “Color fundus image guided artery-vein differentiation in optical coherence tomography angiography,” _Investigative Opthalmology & Visual_ _Science_, vol. 59, no. 12, pp. 4953–4962, 2018. [3] C. Liu, S. Shirowzhan, S. M. E. Sepasgozar, and A. Kaboli, “Evaluation of classical operators and fuzzy logic algorithms for edge detection of panels at exterior cladding of buildings,” _Buildings_, vol. 9, no. 2, p. 40, 2019. [4] L. Fan, L. Chen, and C. Zhang, “Collaborative three-di mensional completion of color and depth in a specified area with superpixels,” _IEEE Transactions on Industrial Electronics_, vol. 66, no. 8, pp. 6260–6269, 2018. [5] M. Haindl and S. Mikeˇs, “A competition in unsupervised color image segmentation,” _Pattern_ _Recognition_, vol. 57, pp. 136–151, 2016. [6] D. Zheng, “A new method for automatic separation of fabric color,” _Textile Research Journal_, vol. 85, no. 14, pp. 1520–1538, 2015. [7] G. Spreitzer, J. Tunnicliffe, and H. Friedrich, “Large wood (LW) 3D accumulation mapping and assessment using structure from Motion photogrammetry in the laboratory,” _Journal_ _of_ _Hydrology_, vol. 581, Article ID 124430, 2020. [8] K. Masaoka, Y. Kusakabe, T. Yamashita, Y. Nishida, T. Ikeda, and M. Sugawara, “Algorithm design for gamut mapping from UHDTV to HDTV,” _Journal_ _of_ _Display_ _Technology_, vol. 12, no. 7, pp. 760–769, 2016. [9] E. Sikudova, T. Pouli, and A. Artusi, “A gamut-mapping framework for color-accurate reproduction of HDR images,” _IEEE_ _computer_ _graphics_ _and_ _applications_, vol. 36, no. 4, pp. 78–90, 2015. [10] D. Dohyoung Lee and K. N. Plataniotis, “Towards a full reference quality assessment for color images using directional statistics,” _IEEE_ _Transactions_ _on_ _Image_ _Processing_, vol. 24, no. 11, pp. 3950–3965, 2015. [11] J. Pytlarz, K. *urston, D. Brooks, P. Boon, and R. Atkins, “Realtime cross-mapping of high dynamic range images,” _SMPTE_ _Motion_ _Imaging_ _Journal_, vol. 126, no. 3, pp. 37–44, 2017. [12] Y. Wan, Y. Cao, C. Chen et al., “Active phase error sup pression for color phase-shifting fringe projection based on hue pre-correction,” _Optics_ _&_ _Laser_ _Technology_, vol. 118, pp. 102–108, 2019. [13] K. Masaoka, T. Yamashita, Y. Nishida, and M. Sugawara, “Color management for wide-color-gamut UHDTV production,” _SMPTE_ _Motion_ _Imaging_ _Journal_, vol. 124, no. 3, pp. 19–27, 2015. [14] T. Zhang, H.-M. Hu, and B. Li, “A naturalness preserved fast dehazing algorithm using HSV color space,” _IEEE_ _Access_, vol. 6, Article ID 10644, 2018. [15] L. Xu, B. Zhao, and M. R. Luo, “Color gamut mapping be tween small and large color gamuts: part II gamut extension,” _Optics_ _Express_, vol. 26, no. 13, Article ID 17335, 2018. [16] R. R. Poppiel, M. P. C. Lacerda, R. Rizzo et al., “Soil color and mineralogy mapping using proximal and remote sensing in midwest Brazil,” _Remote Sensing_, vol. 12, no. 7, p. 1197, 2020. [17] L. Xu, B. Zhao, and M. R. Luo, “Colour gamut mapping between small and large colour gamuts: Part I gamut compression,” _Optics Express_, vol. 26, no. 9, Article ID 11481, 2018. [18] S. Kim and D. S. Han, “Real time traffic light detection al gorithm based on color map and multilayer HOG-SVM,” _Journal_ _of_ _Broadcast_ _Engineering_, vol. 22, no. 1, pp. 62–69, 2017. [19] Y. Wan, Y. Cao, C. Chen, G. Fu, Y. Wang, and C. Li, “Single shot real-time three dimensional measurement based on hue Scientific Programming 11 height mapping,” _Optics Communications_, vol. 416, pp. 10–18, 2018. [20] T. H. Khan, S. K. Mohammed, and M. S. Imtiaz, “Color reproduction and processing algorithm based on real-time mapping for endoscopic images,” _SpringerPlus_, vol. 5, no. 1, pp. 1–16, 2016. [21] B. K. Kim, R. H. Park, and S. Chang, “Tone mapping with contrast preservation and lightness correction in high dynamic range imaging,” _Signal,_ _Image_ _and_ _Video_ _Processing_, vol. 10, no. 8, pp. 1425–1432, 2016.

섹션 본문

섹션 본문이 없습니다.

참고문헌 22건

  1. Towards a Full-Reference Quality Assessment for Color Images Using Directional Statistics IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2456419
  2. Color Management for Wide-Color-Gamut UHDTV Production SMPTE Motion Imaging Journal · Society of Motion Picture and Television Engineers · 2015 10.5594/j18528
  3. A new method for automatic separation of fabric color Textile Research Journal · SAGE Publishing · 2014 10.1177/0040517514561920
  4. Color reproduction and processing algorithm based on real-time mapping for endoscopic images SpringerPlus · Springer International Publishing · 2016 10.1186/s40064-015-1612-4
  5. A competition in unsupervised color image segmentation Pattern Recognition · Elsevier BV · 2016 10.1016/j.patcog.2016.03.003
  6. Algorithm Design for Gamut Mapping From UHDTV to HDTV Journal of Display Technology · Institute of Electrical and Electronics Engineers · 2016 10.1109/jdt.2016.2527039
  7. A Gamut-Mapping Framework for Color-Accurate Reproduction of HDR Images IEEE Computer Graphics and Applications · Institute of Electrical and Electronics Engineers · 2015 10.1109/mcg.2015.116
  8. Tone mapping with contrast preservation and lightness correction in high dynamic range imaging Signal Image and Video Processing · Springer Science+Business Media · 2016 10.1007/s11760-016-0942-1
  9. Realtime Cross-Mapping of High Dynamic Range Images SMPTE Motion Imaging Journal · Society of Motion Picture and Television Engineers · 2017 10.5594/jmi.2017.2665298
  10. Real Time Traffic Light Detection Algorithm Based on Color Map and Multilayer HOG-SVM Journal of Broadcast Engineering · The Korean Institute of Broadcast and Media Engineers · 2017 10.5909/jbe.2017.22.1.62
  11. A Naturalness Preserved Fast Dehazing Algorithm Using HSV Color Space IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2806372
  12. Single-shot real-time three dimensional measurement based on hue-height mapping Optics Communications · Elsevier BV · 2018 10.1016/j.optcom.2018.01.042
  13. Colour gamut mapping between small and large colour gamuts: Part I gamut compression Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.011481
  14. Color gamut mapping between small and large color gamuts: part II gamut extension Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.017335
  15. Color Fundus Image Guided Artery-Vein Differentiation in Optical Coherence Tomography Angiography Investigative Ophthalmology & Visual Science · Cadmus Press · 2018 10.1167/iovs.18-24831
  16. Evaluation of Classical Operators and Fuzzy Logic Algorithms for Edge Detection of Panels at Exterior Cladding of Buildings Buildings · Multidisciplinary Digital Publishing Institute · 2019 10.3390/buildings9020040
  17. Collaborative Three-Dimensional Completion of Color and Depth in a Specified Area With Superpixels IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tie.2018.2873474
  18. Active phase error suppression for color phase-shifting fringe projection based on hue pre-correction Optics & Laser Technology · Elsevier BV · 2019 10.1016/j.optlastec.2019.05.014
  19. Large wood (LW) 3D accumulation mapping and assessment using structure from Motion photogrammetry in the laboratory Journal of Hydrology · Elsevier BV · 2019 10.1016/j.jhydrol.2019.124430
  20. Soil Color and Mineralogy Mapping Using Proximal and Remote Sensing in Midwest Brazil Remote Sensing · Multidisciplinary Digital Publishing Institute · 2020 10.3390/rs12071197
  21. Scene understanding in construction and buildings using image processing methods: A comprehensive review and a case study Journal of Building Engineering · Elsevier BV · 2020 10.1016/j.jobe.2020.101672
  22. A Gamut-Mapping Framework for Color-Accurate Reproduction of HDR Images IEEE Computer Graphics and Applications · Institute of Electrical and Electronics Engineers · 2015 10.1109/mcg.2015.116