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

Thangka Image Retrieval Method Based on Sub-block Dominant Color

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

기본 정보

저자
  1. Wanpin Gao — College of Math and Computer Science ,Northwest University for Nationalities, 730030, China
  2. Wentao Shen — College of Math and Computer Science ,Northwest University for Nationalities, 730030, China
  3. Weilan Wang — College of Math and Computer Science ,Northwest University for Nationalities, 730030, China
DOI
10.2991/icmmcce-15.2015.106
저널
–
발행년도
2015
발행기관
–
피인용수
3
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.2991/icmmcce-15.2015.106
토픽
Color Science and Applications
OpenAlex ID
W2258280827

평가 내용

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

초록

In the light of the problem of lacking spatial knowledge of global color histogram and the characteristics of Thangka images, a method based on overlapping partition dominant color is presented.Translating color space from RGB to HSV, it designs overlapped sub-block to get the dominant color in each block.According overlapping partition model, the weight of every sub-block can be computed.Meanwhile, the reduced quadratic form distance method is applied to decrease arithmetic complexity.Similarity is calculated based on the dominant color feature of each partition.Experimental results show this approach is better than the method based on global dominant color; it can greatly reduce the dimension of color feature, and keep high retrieval precision simultaneity.

본문 19,940자

본문 펼치기
### Thangka Image Retrieval Method Based on Sub-block Dominant Color Wanpin Gao 1, a, Wentao Shen 2,b and Weilan Wang 3,c,* 1 College of Math and Computer Science,Northwest University for Nationalities, 730030, China 2 College of Math and Computer Science,Northwest University for Nationalities, 730030, China 3 College of Math and Computer Science,Northwest University for Nationalities, 730030, China a gaowanpinlll@163.com, [b shenwentao54321@163.com,c wangweilan@xbmu.edu.cn,* Corresponding](mailto:shenwentao54321@163.com) Author Keywords: Image retrieval; Overlapped sub-block; Dominant color; Thangka image. Abstract. In the light of the problem of lacking spatial knowledge of global color histogram and the characteristics of Thangka images, a method based on overlapping partition dominant color is presented. Translating color space from RGB to HSV, it designs overlapped sub-block to get the dominant color in each block. According overlapping partition model, the weight of every sub-block can be computed. Meanwhile, the reduced quadratic form distance method is applied to decrease arithmetic complexity. Similarity is calculated based on the dominant color feature of each partition. Experimental results show this approach is better than the method based on global dominant color; it can greatly reduce the dimension of color feature, and keep high retrieval precision simultaneity. Introduction Color is an important feature describing image content, and it is also the people’s main perception of image. It is that color has merits of rotation and scale invariance and high computation speed with low requirements on storage space for complex images, so it is widely used in image classification and retrieval technologies based on content. At present, many scholars home and abroad have put forward various color-based image retrieval technologies. For example, Swain early realized an image retrieval system using color histogram, and the similarity between images was measured by histogram intersection [1]. The calculation of global color histogram is quite simple, however, it does not involve the spatial information of colors. Stricker M proposed the block-based color histogram and color moment method [2]. Namely, segment image into several sub-blocks, and then compute every sub-block’s color histogram respectively. This approach is simple and feasible, but the unsatisfactory is that it increases the cost of time and space and fails to find rotated or translated images that are similar to query images. Main color matching method is proposed by Kankahalli [3]. Extract image’s main color with cluster analysis, and apply the dominant color to similarity matching between images. Like literature [1], this method does not reflect colors’ space content, although it is simple. In order to overcome the defects existing in methods above, achieve a better retrieval results, the approach based on sub-block dominant color is put forward by many scholars [4-8]. Divide image into fixed sub-blocks, and then calculate the distance between two sub-blocks according to corresponding dominant color feature. Then the distance between two images can be computed using weighted summation. Compare with natural landscape and building pictures, Thanka images’ color is rich and structure is complex. In this paper, a method of color feature extraction is presented in the light of Thangka. In HSV space, segment images into several partitions, and then extract sub-block’s dominant color, build a Thangka image retrieval system finally using main color feature. Finally, comparing this method with the global dominant color, the experimental results show that this approach increases color spatial information, indeed improves the Thangka retrieval performance. Algorithm Description of Method Based on Sub-Block Dominant Color The Conversion and Quantification of the Color Space RGB space is a common color representation. But this representation is deficient in visualization. Given a RGB value, people cannot perceive the corresponding color because that RGB space does not represent color with consistent scale. So this space does not meet human psychological perception. In order to make the definition of color fit more closely with human perception in this algorithm, it is necessary to convert the image color from RGB space to HSV space. Define _v_ ∗ = max( _r_, _g_, _b_ ), and _r_ <sup>,</sup> _g_ <sup>,</sup> _b_ ∈ [0,1,...255], The conversion formula (1),(2),…,(7) are showed below. ∗ = _<u>v</u>_ ∗ _r_ ∗ = _v_ ∗ - <u>min(</u> _<u>v</u>_ ∗ <u>−</u> _rr_ <u>,</u> _g_ <u>,</u> _b_ <u>)</u> _g_ ∗ = _v_ ∗ - <u>min(</u> _<u>v</u>_ ∗ <u>−</u> _rg_ <u>,</u> _g_ <u>,</u> _b_ <u>)</u> _<u>v</u>_ ∗ <u>−</u> = _v_ ∗ - <u>min(</u> _<u>v</u>_ ∗ <u>−</u> = _v_ ∗ - <u>min(</u> ∗ ∗ = _<u>v</u>_ ∗ (1) (2) ∗ ∗ ∗ _<u>v</u>_ = ∗ _<u>v</u>_ ∗ <u>−</u> _<u>b</u>_ _b_ = _v_ <u>∗</u> - <u>min(</u> _r_ <u>,</u> _g_ <u>,</u> _b_ _<u>v</u>_ ∗ <u>−</u> _<u>b</u>_ = _v_ <u>∗</u> - <u>min(</u> _r_ <u>,</u> _g_ <u>,</u> _b_ <u>)</u> (3) <u>∗</u> <u>min(</u> _r_ <u>,</u> _g_ <u>,</u> _b_ <u>)</u>  (5 + _b_ - ), _r_ = max( _r_, _g_, _b_ ), _g_ = min( _r_, _g_, _b_  (1 - _g_ - ), _r_ = max( _r_, _g_, _b_ ), _g_ ≠ min( _r_, _g_, _b_ )  _h_ - =  (1(3 +− _rb_ - ),), _gg_ == max(max( _rr_,, _gg_,, _bb_ ),), _bb_ ≠= min(min( _rr_,, _gg_,, _bb_ ))  (3 + _g_ ), _b_ = max( _r_, _g_, _b_ ), _r_ = min( _r_, _g_, _b_ )   (5 - _r_ - ), _b_ = max( _r_, _g_, _b_ ), _r_ ≠ min( _r_, _g_, _b_ ) (5 + _b_ - ), _r_ = max( _r_, _g_, _b_ ), _g_ = min( _r_, _g_, _b_ ) (1 - _g_ - ), _r_ = max( _r_, _g_, _b_ ), _g_ ≠ min( _r_, _g_, _b_ ) (1 + _r_ - ), _g_ = max( _r_, _g_, _b_ ), _b_ = min( _r_, _g_, _b_ ) (3 - _b_ - ), _g_ = max( _r_, _g_, _b_ ), _b_ ≠ min( _r_, _g_, _b_ ) (3 + _g_ - ), _b_ = max( _r_, _g_, _b_ ), _r_ = min( _r_, _g_, _b_ ) (5 - _r_ - ), _b_ = max( _r_, _g_, _b_ ), _r_ ≠ min( _r_, _g_, _b_ ) (4)  (5 + _b_ - ), _r_ = max( _r_, _g_, _b_ ), _g_ =  (1 - _g_ - ), _r_ = max( _r_, _g_, _b_ ), _g_ ≠   (1 + _r_ ), _g_ = max( _r_, _g_, _b_ ), _b_ = =  (3 - _b_ - ), _g_ = max( _r_, _g_, _b_ ), _b_ ≠  (3 + _g_ ), _b_ = max( _r_, _g_, _b_ ), _r_ =   (5 - _r_ - ), _b_ = max( _r_, _g_, _b_ ), _r_ ≠        _h_ = 60 × _h_ <sup>∗</sup> (5) _<u>v</u>_ ∗ <u>−</u> <u>min(</u> _<u>r</u>_ <u>,</u> _<u>g</u>_ <u>,</u> _<u>b</u>_ <u>)</u> _s_ = _v_ ∗ ∗ _<u>v</u>_ ∗ <u>−</u> <u>min(</u> _<u>r</u>_ <u>,</u> _<u>g</u>_ <u>,</u> _<u>b</u>_ <u>)</u> = _v_ ∗ (6) #### v = v ∗ / 255 (7) After the color space transformation above, _h_ ∈ [0,360], _s_, _v_ ∈ [0,1] . Considering colors are abundant in an image, especially for true color image, the number of color histogram’s dimensions is very big. Therefore, it is necessary to quantify HSV space to cut down the amount of calculation and improve the efficiency of retrieval. Quantify the three components asymmetrically separately: divide H into eight levels, S and V into levels. Specific color quantization and coding methods are showed in the following formula (8),(9) and (10).  0 _h_ ∈ [316,20]  1 _h_ ∈ [21,40]   2 _h_ ∈ [41,75]   3 _h_ ∈ [76,155]   4 _h_ ∈ [156,190]  5 _h_ ∈ [191,270]   6 _h_ ∈ [271,295]  7 _h_ ∈ [296,315]  0 _h_  1 _h_   2 _h_   3 _h_ _H_ =   4 _h_  5 _h_   6 _h_  7 _h_  0 _h_ ∈  1 _h_ ∈  (8)  2 _h_ ∈   3 _h_ ∈ =   4 _h_ ∈  5 _h_ ∈   6 _h_ ∈  7 _h_ ∈ 0 _s_ ∈ [0,0.2) 1 _s_ ∈ [0.2,0.7] 2 _s_ ∈ (0.7,1]  0 _s_ _S_ =  1 _s_  2 _s_  0 _v_ _V_ =  1 _v_   2 _v_  0 _s_ ∈ =  1 _s_ ∈  2 _s_ ∈  0 _v_ ∈ =  1 _v_ ∈   2 _v_ ∈ (9) 0 _v_ ∈ [0,0.2) 1 _v_ ∈ [0.2,0.7] 2 _v_ ∈ (0.7,1] (10) A 1-D feature vector _L_ is created with the quantified level of HSV, as shown is formula (11). _L_ = _Q Qs_ _v_ _H_ + _QvS_ + _V_ (11) _Qs_ = _Qv_ = 3, and _Qs_, _Qv_ represent the quantified level of _S_ and _V_ . For every HSV value, there is a corresponding _L_ . So _H_, _S_, _V_ distribute in the vector _L_, which has 72 values. In other words, we quantify the all colors in images to 72 colors, and based on these quantified colors, calculate the dominant color of every sub-block. Division Strategy of Thanka Image Global color histogram only involves the statistical information of color, does not reflects the spatial distribution. In order to resolve this problem, it is necessary to segment images into several sub-blocks. Traditional division strategy is to segment image into _m_ × _n_ sub-blocks, but it doesn’t emphasize the body part in middle of image. For Thangka images, the Buddha can be divided into different sub-blocks, which lead to destruction of the integrity of image body. Generally main part of image is in the center while other parts are surrounding. The number of sub-block will directly affect operation efficiency and retrieval effect. It is because that if the number of sub-block is small, which cuts down storage space at the cost of low space resolution; On the contrary, if the number is big, it inevitably increases storage space and makes the main part of Thangka into different blocks, which results in degradation of the retrieval performance. Considering the complex structure and generous colors, an overlapping division method suitable for Thangka is presented. First of all, segment Thangka images into 8 × 4sub-blocks evenly, which are showed in Fig.1. <u>Fig.1 32 sub-blocks</u> <u>P11</u> <u>P12</u> <u>P13</u> <u>P14</u> <u>P21</u> <u>P22</u> <u>P23</u> <u>P24</u> <u>P31</u> <u>P32</u> <u>P33</u> <u>P34</u> <u>P41</u> <u>P42</u> <u>P43</u> <u>P44</u> <u>P51</u> <u>P52</u> <u>P53</u> <u>P54</u> <u>P61</u> <u>P62</u> <u>P63</u> <u>P64</u> <u>P71</u> <u>P72</u> <u>P73</u> <u>P74</u> <u>P81</u> <u>P82</u> <u>P83</u> <u>P84</u> <u>Fig.2 The occurrence number of sub-blocks</u> <u>1</u> <u>2</u> <u>2</u> <u>1</u> <u>1</u> <u>2</u> <u>2</u> <u>1</u> <u>2</u> <u>3</u> <u>3</u> <u>2</u> <u>2</u> <u>3</u> <u>3</u> <u>2</u> <u>2</u> <u>3</u> <u>3</u> <u>2</u> <u>2</u> <u>3</u> <u>3</u> <u>2</u> <u>1</u> <u>2</u> <u>2</u> <u>1</u> <u>1</u> <u>2</u> <u>2</u> <u>1</u> Based on these 32 sub-blocks, overlapping blocks are: _A_ = { _p_ 11, _p_ 21}, _B_ = { _p_ 14, _p_ 24}, _C_ = { _p_ 71, _p_ 81}, _D_ = { _p_ 74, _p_ 84}, _E_ = { _p_ 31, _p_ 32, _p_ 41, _p_ 42, _p_ 51, _p_ 52, _p_ 61, _p_ 62}, _F_ = { _p_ 12, _p_ 13, _p_ 22, _p_ 23, _p_ 32, _p_ 33, _p_ 42, _p_ 43}, _G_ = { _p_ 33, _p_ 34, _p_ 43, _p_ 44, _p_ 53, _p_ 54, _p_ 63, _p_ 64}, _H_ = { _p_ 52, _p_ 53, _p_ 62, _p_ 63, _p_ 72, _p_ 73, _p_ 82, _p_ 83}, _I_ = { _p_ 32, _p_ 33, _p_ 42, _p_ 43, _p_ 52, _p_ 53, _p_ 62, _p_ 63}. In above blocks, _E_, _F_, _G_, _H_, _I_ are overlapping. The central part of image is surrounded three times but four corners are surrounded only one time during the course of segmentation in this approach. It not only avoids the destruction of the integrity of the Buddha of Thangka, but it also emphasizes body part at the same time. Secondly, assign different weights to different sub-block. In general, the body of image should have a larger weight while the surrounding parts have relative small weights. After segmentation, for ## every sub-block pij, i = 1,2,...,8, j = 1,2,3,4, its corresponding occurrence number in the process of segmentation <sup>_k_</sup> _ij_ <sup>is showed in Fig.2.</sup> According to Fig.2, we can get every sub-block’s weight using formula (12). 8 4 # wij = kij / ∑∑ 8 4 kij i = 1,2,...,8, j = 1,2,3,4 (12) _i_ = 1 _j_ = 1 Extraction Dominant Color and Computing Similarity Dominant color is what has a higher frequency and plays a more important role in semantic information expressing. It represents original image with fewer colors or one color, but it is visually very similar to original image, which greatly reduces the dimension of color. When we observing one image, vision system tend to catch some colors representative and ignore subordinate color details. Apply dominant color to the retrieval of Thangka with lots of colors. The method of extracting dominant color in this paper is that: translate color space from RGB to HSV, adopt above division strategy to segment image into 32 sub-blocks, and finally assign weight for per sub-block. Calculate color histogram with 72 kinds of colors for every block, and then find the color accounting for most pixels. Namely, the color is the dominant color of this sub-block, it is the color feature of this sub-block too. When retrieving, calculate the main color for all blocks first, and then compute distance of corresponding sub-block. Similarity between images is measured using weight sum method based on distances of all sub-blocks. Query image is _Q_, and base image is _P_, quadratic form distance is showed in formula (13). _D_ = ( _P_ - _Q_ ) _T_ _A_ ( _P_ - _Q_ ) (13) _Q_, _P_ represent separately the histogram information of query image and base image. _A_ is the similarity matrix, and _A_ = [ _aij_ ] is the distance between indexes, _i_ _j_ in color histogram. Due to the large time consumption of _A_, simplify _aij_ = 2 −− | <sup>_i_</sup> _j_ |, as shown in the following formula (14). _Di_ ( _P_, _Q_ ) = _Pi_ 2 + _Qi_ 2 - 2 _PQ ai_ _i_ _PQi_ _i_ (14) _Di_ ( _P_, _Q_ ) is distance of corresponding sub-block _i_ . For weight of every block, the final distance between images is computed using weight sum method in formula (15). 32 ## = ∑ 32 w Di i ( P, Q ) (15) _i_ = 1 ## D ( P, Q ) = ∑ w Di i ( P, Q ) _i_ = 1 The Steps of Retrieval Algorithm Based on Sub-blocl Dominant Color for Thangka Here, we get the framework of the retrieval method based on sub-block dominant color for Thangka in Fig.3. Users Image to be Retrieval Base image Color Space Transformation Divide Image Return Relevant Image Color Space Transformation Extract Dominant Color Extract Feature Base Compute Similarity Dominant Color Fig.3 The framework of Thangka image retrieval algorithm When users input a Thangka image into retrieval system, the algorithm can retrieval similar images to users according to the following steps: Step1. Convert Thangka images into .bmp format. Step2. Process Thangka images using Gaussian filter to remove noises. Step3. Normalize Thangka images to 240 × 320 . Step4. Translate and quantify Thangka images’ color: transform color space from RGB to HSV, and quantify these components into 72 colors respectively. Step5. Divide Thangka image into 32 sub-blocks evenly. On this 32 blocks basis, _A_, _B_, _C_, _D_, _E_, _F_, _G_, _H_, _I_ are the overlapped blocks, in addition, compute the weight for different sub-block according to formula (12). Step6. After computing the dominant color for every sub-block, we can get a main color matrix of an image. Step7. Measure the similarity of base images and image to be retrieved using formula (14). Step8. Calculate the distances between query image and every image in base, and order these distances, return relevant 15 images with relative small distances to users. Analysis and Comparison of the Experimental Results According to the method above, we realize a Thangka image retrieval system based on sub-block dominant color, namely method One. In order to compare with the global dominant color, we also build another Thangka image retrieval system, namely method Two. All experiments ran on PC with Core i7 3.4GHZ CPU and 4GB memory. Recall and precision are the basic criteria for evaluation of retrieval quality in image retrieval systems. Recall ration reflects the ability of retrieval system to retrieve relevant images, while the precision ration reflects retrieval system ability to refuse irrelevant images. The higher the precision ratio and recall ration are, the better image retrieval results will be. However, for most image retrieval systems, these two ratios cannot reach maximum at the same time. In general, if precision is higher, the recall is low. On the contrary, recall is higher with precision low. When designing retrieval system, we should optimize these two ratios as far as possible. In our experiments, these two image retrieval methods have the identical image library and image to be retrieved. The query image is Gem Source Tara. There are 100 Thangka images in the image library and 17 relevant images. The number of return image in two systems is 15. Experimental results of method one is showed in Fig.4, Fig.5, Fig.6, and the comparison of two methods is showed in table 1. From the table 1, we know clearly that method One has a higher precision ratio and recall ratio than method Two. Through the comparison, a conclusion is: the method based on sub-block dominant color is better, and it meets users’ needs in general, so it is suitable for Thangka image retrieval. Fig.4 query image: Gem Source Tara Fig.5 retrieval system interface Tara-Who Increases Wisdom Tara-Who Increases Power Tara-Who Averts Heaven-born Calamities Tara-Who Bestows Longevity Fig.6 The partial simple of Thangka image retrieval based on method One <u>Table 1. Coparison of the two methods</u> Result number Return relevant image Recall ratio % <u>method</u> Image library Precision ratio % One 100 15 13 86.7 60 Two 100 15 9 65 45 Conclusion Compare with general natural images, color is a more important feature for Thangka retrieval. However, global main color reflects the statistical information of color without spatial distribution. It is necessary to divide image into several sub-blocks to solve the problem. Traditional partition strategy is segment image evenly, for Thangka with complex structure, this strategy tends to destruct the body integrity of Thangka. Taking the characteristics of Thangka images into consideration, an overlapping partition model is proposed. According to the occurrence number of sub-block calculate the weight in the model, and finally measure the distance using reduced quadratic form method. Experimental results show that this method cuts down the dimension of color feature and calculation amount, what is more, it indeed has a higher precision ratio and recall ratio than method based on global dominant color. So this method is better and meets the needs of users in general. Acknowledgement This work was supported by the National Natural Science Foundation of China (No.61162021, No.60875006), the personnel training program of State Ethnic Affairs Commission, and also was supported by Innovative Team Subsidize of Northwest University for Nationalities. References [1] M J Swain, D H Ballard. Color indexing[J]. International journal of computer vision, 1991, 7(1): 11-32. [2] M A Stricker, A Dimai. Color indexing with weak spatial constraints[C]//Electronic Imaging: Science & Technology. International Society for Optics and Photonics, 1996: 29-40. [3] M S Kankanhalli, B M Mehtre, R K Wu. Cluster-based color matching for image retrieval[J]. Pattern recognition, 1996, 29(4): 701-708. [4] Y Zhang, H Zhou. Image Retrieval based on Main Color and Texture Feature of Each Block[J]. Compute development and application, 2010,23(20):15-16. [5] W Qi, B Mao. Image retrieval and sort by main color feature[J]. Computer Engineering and Appficaflons, 2011,47(24):191-192. [6] Q Zheng, Y Chao, P Ren. Research and implementation of image retrieval system based on dominant color of partition[J]. Joumal of China University of Petroleum, 2006,30(2):143-146. [7] G Xu, N Zhu, X Zhu. Image Retrieval Based on the Color Histogram Entropy Value and the Main Color of Image Blocks[J].Compute Engineering & Science, 2008,30(9):44-46. [8] K Lin, C Zhang, P Liu. Image Retrieval Based on Sub-block Dominant Color Matching[J]. Computer Engineering, 2010, 36(13): 186-188.

섹션 본문

섹션 본문이 없습니다.

참고문헌 5건

  1. Cluster-based color matching for image retrieval Pattern Recognition · Elsevier BV · 1996 10.1016/0031-3203(95)00097-6
  2. Image Retrieval Based on Sub-block Dominant Color Matching Jisuanji gongcheng · East China Computer Technology Research Institute · 2010
  3. Research and implementation of image retrieval system based on dominant color of partition Zhongguo Shiyou Daxue xuebao. Ziran kexue ban · Petroleum university periodical society · 2006
  4. Image Retrieval Based on the Color Histogram Entropy Value and the Main Color of Image Blocks 2008
  5. Color indexing International Journal of Computer Vision · Springer Science+Business Media · 1991 10.1007/bf00130487