Image Compression
Image Compression
Array
journal homepage: www.elsevier.com/journals/array/2590-0056/open-access-journal
A R T I C L E I N F O A B S T R A C T
Keywords: In the present era of the internet and multimedia, image compression techniques are essential to improve image
DFT and video performance in terms of storage space, network bandwidth usage, and secure transmission. A number of
Matrix minimization algorithm image compression methods are available with largely differing compression ratios and coding complexity. In this
Sequential search algorithm
paper we propose a new method for compressing high-resolution images based on the Discrete Fourier Transform
(DFT) and Matrix Minimization (MM) algorithm. The method consists of transforming an image by DFT yielding
the real and imaginary components. A quantization process is applied to both components independently aiming
at increasing the number of high frequency coefficients. The real component matrix is separated into Low Fre-
quency Coefficients (LFC) and High Frequency Coefficients (HFC). Finally, the MM algorithm followed by
arithmetic coding is applied to the LFC and HFC matrices. The decompression algorithm decodes the data in
reverse order. A sequential search algorithm is used to decode the data from the MM matrix. Thereafter, all
decoded LFC and HFC values are combined into one matrix followed by the inverse DFT. Results demonstrate that
the proposed method yields high compression ratios over 98% for structured light images with good image
reconstruction. Moreover, it is shown that the proposed method compares favorably with the JPEG technique
based on compression ratios and image quality.
* Corresponding author.
E-mail addresses: [email protected] (M.H. Rasheed), [email protected] (O.M. Salih), [email protected] (M.M. Siddeq), M.Rodrigues@shu.
ac.uk (M.A. Rodrigues).
https://doi.org/10.1016/j.array.2020.100024
Received 21 November 2019; Received in revised form 11 February 2020; Accepted 6 March 2020
Available online 8 March 2020
2590-0056/© 2020 The Authors. Published by Elsevier Inc. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/).
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 3. Quantization and rounding off the real and imaginary components.
2
M.H. Rasheed et al. Array 6 (2020) 100024
3
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 8. (a), (b) and (c) Lena, Lion and Apple images status are compressed by our proposed method using different quantization values.
references [11,12,16]. These three references show with examples how zero value in the HFC-Matrix is counted during the process. A new
the Matrix Minimization works with keys and how the limited search is array called Zero Matrix is then created in which we append a zero value
used for decoding. whenever we have a non-zero value at the same index in the original
After the Matrix-Minimization algorithm has been applied, the pro- HFC-Matrix followed by an integer that represents the total number of
duced HFC-Matrix for both real and imaginary parts are examined and it zeros between any two non-zero values. Fig. 6 demonstrates the process
is possible to see a high probability in the number of zero values than any of separating zeros and non-zero values [14–16].
other values in the matrix. Therefore, separating zero from non-zero The zero values in the Zero-Matrix reflect the actual non-zero values
values will remove redundant data and hence increase the efficiency of in sequences in the original matrix. Likewise, the integer values reflect
the arithmetic coding compression [9,10,13,14]. the total number of zeros that come thereafter. Finally, the two matrices
The implementation of the method is by isolating all zero values from are ready for compression by a coding method which in our case is
the matrix while preserving all non-zero values in a new array called arithmetic coding [6,7]. It is important to note that the proposed method
Value Matrix. The total number of zeros removed between each non- described above is also applied to the LFC-Matrix which contains the low
4
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 9. (a), (b) and (c) Boeing 777, Girl and Baghdad colour images are compressed by our proposed method using different quantization values.
frequency coefficients values of the real part. Up to this point, the called Sequential Search Algorithm [10–13], which is based on three
Value-Matrix and Zero-Matrix in our case are considered headers and pointers working sequentially to regenerate the three values that
used in the decompression process to regenerate the original HFC and constitute the contracted values with assistance of the MIN and MAX
LFC matrices. values which were preserved during the compression process. The MIN
and MAX values are considered to be the limited space search values used
3. The decompression algorithm to restore the actual HFC for both parts (real and imaginary) [14–18].
Finally, an inverse quantization and DFT is applied to each part to
The decompression algorithm is a counter compression operation reconstruct the compressed digital image. Fig. 7 illustrates the decom-
which performs all functions of the compression but in reverse order. The pression steps.
steps to decompression start by decoding the LFC-Matrix, Value-Matrix
and Zero-Matrix using arithmetic decoding followed by reconstructing a 4. Experimental results
unified array based on Value and Zero matrices and reconstruct the HFC-
Matrix for both parts. Siddeq and Rodrigues proposed a novel algorithm Experimental results shown here demonstrate the efficacy of the
5
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 10. (a) The 3D Scanner developed by the GMPR group, (b) a 2D picture captured by the camera, (c) 2D image converted into a 3D surface patch.
Fig. 11. Original 2D images with different dimensions used by our proposed compression method.
Table 2
Results for colour images.
Image Image Size (MB) Quantization for each layer in R,G,B After Compression (KB) (Bit/Pixel) bpp RMSE PSNR
6
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 12. (a) and (b): shows the 2D decompressed for Corner’s image, that used in 3D application to reconstruct 3D mesh surface. The 3D mesh (3D vertices and
triangles) is successfully reconstructed without significant distortion at high compression ratios up to 98.6%.
7
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 13. (a) and (b): shows decompressed for Face1 2D image, that used in the 3D application to reconstruct 3D mesh surface. The 3D mesh is successfully recon-
structed without significant distortion at high compression ratios of 98.6%.
8
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 14. (a) and (b): shows decompressed for Face2 2D image, that used in 3D application to reconstruct 3D mesh surface. The 3D mesh was successfully reconstructed
without significant distortion at high compression ratios of 98.5%.
9
M.H. Rasheed et al. Array 6 (2020) 100024
Table 4
Comparative analysis of using DFT alone and our proposed method (DFT and Matrix Minimization) based on image quality and compressed size.
Image Size (MB) Quantization Factor Compressed size DFT alone RMSE PSNR Compressed Size DFT þ MM RMSE PSNR
KB bpp KB bpp
Conventional images
Lena 1.0 45 721 0.7 2.1 44.9 88 0.085 3.9 42.2
Lion 1.37 100 808 0.57 3.59 42.5 71 0.05 8.1 39.0
Apples 1.37 60 576 0.41 2.3 44.5 47 0.033 4.6 41.5
Boeing 6.15 25 2200 0.35 1.8 45.5 182 0.028 3.9 42.2
Girl 4.29 25 2350 0.54 3.59 42.5 315 0.071 5.5 40.7
Bagdad 8.58 35 3500 0.4 2.3 44.5 309 0.035 5.6 40.6
Structured light images
Corner 1.25 100 615 0.48 2.9 43.5 17 0.013 15.5 36.2
Face1 1.37 160 624 0.44 4.8 41.3 18 0.012 11.5 37.5
Face2 1.37 150 508 0.36 4.1 42.0 20 0.014 9.9 38.1
Table 5
Comparative analysis of compression using JPEG and our approach based on image quality and compression size.
Image Size (MB) Compressed Size by JPEG RMSE PSNR Compressed Size by DFT þ MM RMSE PSNR
KB bpp KB bpp
Conventional images
Lena 1.0 64 0.062 1.9 45.3 88 0.085 3.9 42.2
Lion 1.37 56 0.039 8.8 38.6 71 0.05 8.1 39.0
Apples 1.37 48 0.034 3.2 43.0 47 0.033 4.6 41.5
Boeing 6.15 210 0.033 8.7 38.7 182 0.028 3.9 42.2
Girl 4.29 347 0.078 9.8 38.2 315 0.071 5.5 40.7
Bagdad 8.58 279 0.031 3.5 42.6 309 0.035 5.6 40.6
Structured light images
Corner 1.25 26 0.02 14.3 36.5 17 0.013 15.5 36.2
Face1 1.37 23 0.016 16.5 35.9 18 0.012 11.5 37.5
Face2 1.37 27 0.019 13.1 36.9 20 0.014 9.9 38.1
Fig. 15. Compressed and decompressed greyscale images by JPEG, the quality of the decompressed images varies compared with our approach according to RMSE
and PSNR.
using a single 2D image [19,20] as shown in Fig. 10. method described in this paper whose compressed sizes with RMSE and
The significance of using such 2D images is that, if the compression PSNR are shown in Table 3. After decompression, the images were sub-
method is lossy and results in a noisy image, the 3D algorithms will jected to 3D reconstruction using the GMPR method and compared with
reconstruct the surface with very noticeable artefacts, that is, the 3D 3D reconstruction of the original images. The reconstructed 3D surfaces
surface becomes defective and degraded with problem areas easily are shown in Figs. 12–14.
noticeable. If, on the other hand, the 2D compression/decompression is
of good quality, then the 3D surface is reconstructed well and there are no 6. Discussion and comparative analysis
visible differences between the original reconstruction and the recon-
struction with the decompressed images. Our literature survey did not show results for image compression
Fig. 10 (left) depicts the GMPR scanner together with an image using the DFT alone. The reason is that by applying a DFT, it yields two
captured by the camera (middle) which is then converted into a 3D sets of coefficients, real and imaginary. If one wishes to keep those for
surface and visualized (right). Note that only the portions of the image faithful image reconstruction, then it is not possible to achieve high
that contain patterns (stripes) can be converted into 3D; other parts of the compression ratios. We applied the DFT as described in this paper
image are ignored by the 3D reconstruction algorithms [21,22]. The resulting in images with good visual quality and low compression
original images used in this research are shown in Fig. 11 (Corner, Face1 complexity. A comparative analysis between compression ratios for DFT
and Face2). The three images shown in Fig. 11 were compressed by the alone and DFT followed by the Matrix Minimization algorithm show
10
M.H. Rasheed et al. Array 6 (2020) 100024
Fig. 16. Compressed and Decompressed colour images by JPEG, the decompressed images (Boeing and Girl) have lower quality compared with our approach ac-
cording to RMSE and PSNR. However, our approach couldn’t reach to JPEG level of compression for Bagdad’s image on the right.
Fig. 17. 3D reconstruction from JPEG compressed images. In (a) reconstruction was possible but with significant artefacts. In (b) 3D reconstruction was not possible as
images were too deteriorated.
Table 6
Comparative analysis between pervious work [12] (Matrix Minimization algorithm) and our approach based on time execution.
Image Size (MB) Previous work (Matrix Minimization algorithm) The proposed algorithm
Compressed size (KB) Bits/Pixel (bpp) Decompression time (seconds) Compressed size (KB) Bits/pixel (bpp) Decompression time (seconds)
11
M.H. Rasheed et al. Array 6 (2020) 100024
Table 7
Comparative analysis between pervious work [12] (Matrix Minimization) and our approach based on image quality and compression sizes.
Image Size (MB) Previous work (Matrix Minimization algorithm) The proposed algorithm
Compressed Size (KB) Bits/Pixel (bpp) RMSE PSNR Compressed Size (KB) Bits/Pixel (bpp) RMSE PSNR
The complexity of the decompression steps is reduced in the proposed Conflicts of interest
approach. This is evident from execution times quoted in Table 6 as
the current approach runs faster than previous work on the same The authors declare that there are no conflicts of interest regarding
hardware. the publication of this paper.
The header file information of current approach is smaller than pre-
vious work leading to increased compression ratios. CRediT authorship contribution statement
It is important to stress the significant novelties of the proposed Mohammed H. Rasheed: Conceptualization, Methodology. Omar
approach which are the reduced number of steps at decompression stage M. Salih: Data curation, Writing - original draft. Mohammed M. Siddeq:
and smaller header information resulting in faster reconstruction from Visualization, Software. Marcos A. Rodrigues: Supervision, Writing -
data compressed at higher compression ratios. Table 7 shows that our review & editing.
proposed image compression method has higher compression ratios and
better image quality (i.e. for both types conventional and structured light Acknowledgments
images) as measured by RMSE and PSNR.
We grateful acknowledge the Computing, Communication and
12
M.H. Rasheed et al. Array 6 (2020) 100024
Cultural Research Institute (C3RI) and the Research and Innovation Of- [13] Siddeq Mohammed, Rodrigues Marcos. A novel high frequency encoding algorithm
for image compression. EURASIP J Appl Signal Process 2017;26. https://doi.org/
fice at Sheffield Hallam University for their support.
10.1186/s13634-017-0461-4.
[14] Siddeq Mohammed, Rodrigues Marcos. DCT and DST based image compression for
References 3D reconstruction. 3D Research 2017;8(5):1–19.
[15] Sheffield Hallam University, Mohammed M Siddeq and Marcos A Rodrigues. Image
[1] Richardson IEG. Video codec design. John Wiley &Sons; 2002. data compression and decompression using minimize size matrix algorithm. WO
[2] Sayood K. Introduction to data compression. 2nd ed. Academic Press, Morgan 2016/135510 A1. Patent 2016.
Kaufman Publishers; 2001. [16] M.M. Siddeq and Rodrigues Marcos. Novel 3D compression methods for geometry,
[3] Rao KR, Yip P. Discrete cosine transform: algorithms, advantages, applications. San connectivity and texture. 3D Research, 7 (13). 2016
Diego, CA: Academic Press; 1990. [17] Siddeq MM, Rodrigues Marcos. 3D point cloud data and triangle Face compression
[4] Gonzalez Rafael C, Woods RichardE. Digital image processing. Addison Wesley by a novel geometry minimization algorithm and comparison with other 3D
publishing company; 2001. formats. In: Proceedings of the international conference on computational methods.
[5] Yuan Shuyun, Hu Jianbo. Research on image compression technology based on vol. 3. California USA: University of California; 2016. p. 379–94.
Huffman coding. J Vis Commun Image Represent February 2019;59:33–8. [18] Siddeq MM, Rodrigues AM. A novel hexa data encoding method for 2D image
[6] Li Peiya, Lo Kwok-Tung. Joint image encryption and compression schemes based on crypto-compression. Multimed Tool Appl 2019. https://doi.org/10.1007/s11042-
1616 DCT. J Vis Commun Image Represent January 2019;58:12–24. 019-08405-3. Springer.
[7] M. Rodrigues, A. Robinson and A. Osman. Efficient 3D data compression through [19] Rodrigues M, Kormann M, Schuhler C, Tomek P. Robot trajectory planning using
parameterization of free-form surface patches, In: Signal process and multimedia OLP and structured light 3D machine vision. Heidelberg: Springer; 2013. p. 244–53.
applications (SIGMAP), proceedings of the 2010 international conference on. IEEE, Lecture notes in Computer Science Part II. LCNS, 8034 (8034).
130-135. [20] Rodrigues M, Kormann M, Schuhler C, Tomek P. Structured light techniques for 3D
[8] Siddeq MM, Al-Khafaji G. Applied minimize-matrix-size algorithm on the surface reconstruction in robotic tasks. In: Kacprzyk J, editor. Advances in
transformed images by DCT and DWT used for image compression. Int J Comput intelligent systems and computing. Heidelberg: Springer; 2013. p. 805–14.
Appl 2013;70:15. [21] Rodrigues M, Kormann M, Schuhler C, Tomek P. An intelligent real time 3D vision
[9] Siddeq MM, Rodrigues MA. A new 2D image compression technique for 3D surface system for robotic welding tasks. Mechatronics and its applications. IEEE Xplore;
reconstruction. In: 18th international conference on circuits, systems, 2013. p. 1–6.
communications and computers. Greece: Santorin Island; 2014. p. 379–86. [22] Wang, Zhou; Bovik, A.C.; Sheikh, H.R.;Simoncelli, E.P. Image quality assessment:
[10] Siddeq MM, Rodrigues MA. A novel image compression algorithm for high 2004 from error visibility to structural similarity". IEEE Trans Image Process. 13(4):
resolution 3D reconstruction. 3D Research 2014;5(2). https://doi.org/10.1007/ 600–612.
s13319-014-0007-6. Springer. [23] Adler A, Boublil D, Zibulevsky M. Block-based compressed sensing of images via
[11] M.M. Siddeq and Rodrigues Marcos. Applied sequential-search algorithm for deep learning. In: 2017 IEEE 19th international workshop on multimedia signal
compression-encryption of high-resolution structured light 3D data. In: Blashki, processing. Luton: MMSP; 2017. p. 1–6.
Katherine and Xiao, Yingcai, (eds.)MCCSIS : multi conference on computer science [24] BAl-Ani MuzhirShaban, Hammouri Talal Ali. Video compression algorithm based
and information systems 2015. IADIS Press, 195-202. on frame difference approaches. Int J Soft Comput November 2011;2(No.4).
[12] Siddeq MM, Rodrigues Marcos. A novel 2D image compression algorithm based on [25] Adler A. Covariance-assisted matching pursuit. IEEE Signal Process Lett Jan. 2016;
two levels DWT and DCT transforms with enhanced minimize-matrix-size algorithm 23(1):149–53.
for high resolution structured light 3D surface reconstruction. 3D Research 2015; [26] Dar Y, Elad M, Bruckstein AM. Optimized pre-compensating compression. IEEE
6(3):26. https://doi.org/10.1007/s13319-015-0055-6. Trans Image Process Oct. 2018;27(10):4798–809.
13