Journal of Jilin University(Engineering and Technology Edition) ›› 2022, Vol. 52 ›› Issue (8): 1865-1871.doi: 10.13229/j.cnki.jdxbgxb20210216

Previous Articles    

Fast image codeword search algorithm based on neighborhood similarity

Fu-heng QU1(),Tian-yu DING1,Yang LU1,Yong YANG1,2(),Ya-ting HU3   

  1. 1.College of Computer Science and Technology,Changchun University of Science and Technology,Changchun 130022,China
    2.College of Education,Changchun Normal University,Changchun 130032,China
    3.College of Information Technology,Jilin Agricultural University,Changchun 130118,China
  • Received:2021-03-18 Online:2022-08-01 Published:2022-08-12
  • Contact: Yong YANG E-mail:qufuheng@163.com;yy@mail.ccsfu.edu.cn

Abstract:

The mean distance ordered partial codebook search(MPS) algorithm is a fast codebook search algorithm for image vector quantization. However, in order to find the initial matching codeword, the MPS algorithm needs to calculate the mean squared distance between all vectors and all codewords. For a codebook with n vectors and length k, the calculation amount of this part is O(nk+klogk), which limits the acceleration effect of MPS. To solve this problem, an image codeword fast search algorithm based on neighborhood similarity was proposed. The algorithm first sorts the original codebook from small to large according to the codeword components and values to obtain the sorted codebook. Then, the candidate initial matching codeword is determined in the neighbor vector of the current image vector, and the final initial matching codeword is determined by distance comparison. Finally, a codeword search based on the sorted codebook is performed with the initial matching codeword as the starting search point. The algorithm reduces the calculation amount of initial matching codeword selection in the MPS algorithm to O(n+klogk), and has the same results as the full search algorithm and the MPS algorithm. The results of comparative experiments on the test images show that the FSNS algorithm has the highest speedup ratio, and the average time speedup ratio ranges from 4.38~11.24, while the MPS algorithm and ITIE algorithm are 3.19~6.01 and 1.49~2.99.

Key words: computer application technology, vector quantization, neighborhood similarity, codeword search, image compression

CLC Number: 

  • TP391

Fig.1

Schematic diagram of initial codeword matching"

Table 1

Performance results of improved MPS and other algorithms in 2×2 dimensional test images"

码书长度测试 图像搜索时间/ms距离减少比例
FSITIEMPS本文ITIEMPS本文
64Airplane43.1013.8012.807.300.910.6830.899
Baboon38.7023.8016.5014.500.810.5820.750
Couple42.7014.1012.808.200.900.6590.876
Lena44.4014.5012.108.400.900.6840.900
Peppers39.9012.5012.406.900.910.6840.891
128Airplane82.8028.5019.9011.500.920.6870.912
Baboon80.4041.5028.1022.200.860.6090.786
Couple78.8026.5022.1012.000.920.6730.900
Lena81.7026.9019.6011.500.920.6970.914
Peppers79.4024.9020.0011.400.920.6980.925
256Airplane157.7059.0036.4020.700.940.6990.913
Baboon158.9083.6056.7036.900.910.6250.806
Couple162.0059.8046.5018.700.940.6870.913
Lena160.2059.0034.7018.300.940.7000.926
Peppers156.4062.6037.8016.900.940.7000.937
512Airplane305.80149.8084.1034.900.950.7010.914
Baboon313.40187.90114.7071.200.940.6500.826
Couple298.50140.2077.7030.100.950.6990.924
Lena309.60146.5067.9028.400.950.7120.937
Peppers296.20119.7069.1025.000.950.7120.938
1024Airplane594.40389.30153.4053.500.970.7120.925
Baboon585.80553.30174.70102.400.960.6740.849
Couple601.70402.80154.7055.100.970.7110.926
Lena596.50391.80147.5044.100.970.7230.949
Peppers587.30317.90156.4039.400.970.7130.949

Table 2

performance results of improved MPS and other algorithms in 4×4dimensional test images"

码书 长度测试 图像搜索时间/ms距离减少比例
FSITIEMPS本文ITIEMPS本文
64Airplane20.206.805.004.600.860.8410.862
Baboon20.5013.509.008.300.570.6500.671
Couple21.007.306.204.800.830.8090.840
Lena20.407.104.804.000.860.8510.883
Peppers20.106.504.903.600.880.8620.894
128Airplane39.6012.108.006.300.880.8420.873
Baboon39.2025.0015.0013.900.650.6720.702
Couple40.2012.009.907.200.870.8200.861
Lena40.5012.807.605.700.890.8630.904
Peppers40.0011.007.205.500.900.8730.904
256Airplane79.9029.5013.7011.000.890.8520.883
Baboon82.5050.9025.9024.000.720.7030.723
Couple79.5028.1016.6011.700.880.8310.872
Lena83.7027.9013.009.700.910.8730.905
Peppers82.0025.3013.209.200.900.8730.915
512Airplane155.3076.4027.8021.700.900.8630.894
Baboon177.50101.3051.0043.300.780.7140.745
Couple164.7068.6032.7025.600.900.8420.863
Lena161.1083.2023.9016.900.910.8740.915
Peppers153.9073.3022.7016.900.910.8740.915
1024Airplane306.40207.5048.6038.000.920.8630.894
Baboon300.30259.2087.7081.200.830.7350.755
Couple307.70201.7054.8040.000.920.8420.883
Lena306.80223.5041.6031.400.930.8840.925
Peppers305.60217.3041.7027.700.920.8840.926

Fig.2

Time acceleration ratios of each algorithm in 4-dimensional data and code books of different lengths"

Fig.3

Time acceleration ratios of each algorithm in 16-dimensional data and code books of different lengths"

1 李志军,杨楚皙,刘丹,等. 基于深度卷积神经网络的信息流增强图像压缩方法[J]. 吉林大学学报: 工学版,2020, 50(5): 1788-1795.
Li Zhi-jun, Yang Chu-xi, Liu Dan, et al. Deepconvolutional network based image compression with enhance-ment of information flow[J]. Journal of Jilin University(Engineering and Technology Edition), 2020, 50(5): 1788-1795.
2 Zuo Z, Lan X, Deng L, et al. An improved medical i-mage compression technique with lossless region of int-erest[J]. Optik, 2015, 126(21): 2825-2831.
3 李雄飞,宋璐,张小利. 基于协同经验小波变换的遥感图像融合[J]. 吉林大学学报: 工学版, 2019, 49(4): 1307-1319.
Li Xiong-fei, Song Lu, Zhang Xiao-li. Remote sensing image fusion based on collaborative empirical wavelet transform[J]. Journal of Jilin University(Engineering andTechnology Edition), 2019, 49(4): 1307-1319.
4 Bei C, Gray R. An improvement of the minimum distortion encoding algorithm for vector quantization[J]. IEEE Tranactions on Communications, 1985, 33(10): 1132-1133.
5 Ra S W, Kim J K. A fast mean-distance-ordered partial codebook search algorithm for image vector quantization[J]. IEEE Transactions on Circuits and Systems II: Analog and Digital Signal Processing, 1993, 40(9): 576-579.
6 Song B C, Ra J B. A fast search algorithm for vector quantization using L/sub 2/-norm pyramid of codewords[J]. IEEE Transactions on Image Processing, 2002, 11(1): 10-15.
7 Pan Z, Kotani K, Ohmi T. Fast encoding method for vector quantization using modified L/sub 2/-norm pyramid[J]. IEEE Signal Processing Letters, 2005, 12(9): 609-612.
8 Lu Z M, Chu S C, Huang K C. Equal-average equal-variance equal-norm nearest neighbor codeword search algorithm based on ordered Hadamard transform[J]. International Journal of Innovative Computing, Information and Control, 2005, 1(1): 35-41.
9 Swilem A. A fast vector quantization encoding algorithm based on projection pyramid with Hadamard transformation[J]. Image and Vision Computing, 2010, 28(12): 1637-1644.
10 Chang C C, Hsieh Y P. A fast VQ codebook search with initialization and search order[J].Information Sciences, 2012, 183(1): 132-139.
11 Chu C P, Yeh C Y, Hwang S H. An efficient tree‐structured vector quantization using dynamic triangular inequality elimination[J]. IEEJ Transactions on Electrical and Electronic Engineering, 2014, 9(Sup.1): 70-72.
12 Yang P Y, Tsai J T, Chou J H. PCA-based fast search method using PCA-LBG-based VQ codebook for codebook search[J]. IEEE Access, 2016, 4: 1332-1344.
13 Jamali M, Ghafarinia V, Montazeri M A. An optimized fast codeword search algorithm for vector quantization[C]∥24th Iranian Conference on Electrical Engineering, Shiraz, Iran, 2016: 77-81.
14 Yeh C Y. Iterative triangular inequality elimination algorithm for codebook search of vector quantization[J]. IEEJ Transactions on Electrical and Electronic Engineering, 2018, 13(10): 1528-1529.
[1] Ming LIU,Yu-hang YANG,Song-lin ZOU,Zhi-cheng XIAO,Yong-gang ZHANG. Application of enhanced edge detection image algorithm in multi-book recognition [J]. Journal of Jilin University(Engineering and Technology Edition), 2022, 52(4): 891-896.
[2] Shi-min FANG. Multiple source data selective integration algorithm based on frequent pattern tree [J]. Journal of Jilin University(Engineering and Technology Edition), 2022, 52(4): 885-890.
[3] Sheng-sheng WANG,Jing-yu CHEN,Yi-nan LU. COVID⁃19 chest CT image segmentation based on federated learning and blockchain [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(6): 2164-2173.
[4] Hong-wei ZHAO,Zi-jian ZHANG,Jiao LI,Yuan ZHANG,Huang-shui HU,Xue-bai ZANG. Bi⁃direction segmented anti⁃collision algorithm based on query tree [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(5): 1830-1837.
[5] Jie CAO,Xue QU,Xiao-xu LI. Few⁃shot image classification method based on sliding feature vectors [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(5): 1785-1791.
[6] Chun-bo WANG,Xiao-qiang DI. Cloud storage integrity verification audit scheme based on label classification [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(4): 1364-1369.
[7] Rong QIAN,Ru ZHANG,Ke-jun ZHANG,Xin JIN,Shi-liang GE,Sheng JIANG. Capsule graph neural network based on global and local features fusion [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(3): 1048-1054.
[8] Qian-yi XU,Gui-he QIN,Ming-hui SUN,Cheng-xun MENG. Classification of drivers' head status based on improved ResNeSt [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(2): 704-711.
[9] Yuan SONG,Dan-yuan ZHOU,Wen-chang SHI. Method to enhance security function of OpenStack Swift cloud storage system [J]. Journal of Jilin University(Engineering and Technology Edition), 2021, 51(1): 314-322.
[10] Zhi-jun LI,Chu-xi YANG,Dan LIU,Da-yang SUN. Deep convolutional networks based image compression with enhancement of information flow [J]. Journal of Jilin University(Engineering and Technology Edition), 2020, 50(5): 1788-1795.
[11] Xiang-jiu CHE,You-zheng DONG. Improved image recognition algorithm based on multi⁃scale information fusion [J]. Journal of Jilin University(Engineering and Technology Edition), 2020, 50(5): 1747-1754.
[12] HU Guan-yu, QIAO Pei-li. High dimensional differential evolutionary algorithm based on cloud population for network security prediction [J]. 吉林大学学报(工学版), 2016, 46(2): 568-577.
[13] CHEN Mian-shu, WANG Yuan-yuan, SANG Ai-jun, CHEN He-xin. KL transformation based the theory of multidimensional vector matrix [J]. 吉林大学学报(工学版), 2016, 46(2): 627-631.
[14] ZHENG Kou-quan, LEI Ying-jie, WANG Rui, YU Xiao-dong. Long-term intuitionistic fuzzy time series forecasting based on vector quantization [J]. 吉林大学学报(工学版), 2014, 44(3): 795-780.
[15] HOU A-lin, LIAO Qing, JIN Zhi-juan, CHEN Juan, GENG Ying. Compression algorithm of computer-generated hologram based on artificial neural network [J]. 吉林大学学报(工学版), 2013, 43(增刊1): 21-24.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!