Next Article in Journal
Use of Human Umbilical Vein Endothelial Cells (HUVEC) as a Model to Study Cardiovascular Disease: A Review
Previous Article in Journal
A Heterogeneous Ensemble Learning Framework for Spam Detection in Social Networks with Imbalanced Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Utilization of Reversible Colour Transforms for Lossless 2-D Data Compression

1
Department of Information and Communication Engineering, Chosun University, Gwangju 61452, Korea
2
Department of Computer Systems Engineering, University of Engineering and Technology (UET), Peshawar 25120, Pakistan
*
Author to whom correspondence should be addressed.
Appl. Sci. 2020, 10(3), 937; https://doi.org/10.3390/app10030937
Submission received: 25 December 2019 / Revised: 20 January 2020 / Accepted: 21 January 2020 / Published: 31 January 2020

Abstract

:
Reversible Colour Transforms (RCTs) in conjunction with Bi-level Burrows–Wheeler Compression Algorithm (BBWCA) allows for high-level lossless image compression as demonstrated in this study. The RCTs transformation results in exceedingly coordinated image information among the neighbouring pixels as compared to the RGB colour space. This aids the Burrows–Wheeler Transform (BWT) based compression scheme and achieves compression ratios of high degree at the subsequent steps of the program. Validation has been done by comparing the proposed scheme across a range of benchmarks schemes and the performance of the proposed scheme is above par the other schemes. The proposed compression outperforms the techniques exclusively developed for 2-D electrocardiogram (EEG), RASTER map and Color Filter Array (CFA) image compression. The proposed system shows no dependency over parameters like image size, its type or the medium in which it is captured. A comprehensive analysis of the proposed scheme concludes that it achieves a significant increase in compression and depicts comparable complexity similar to the various benchmark schemes.

1. Introduction

Lossless image compression is addressed as one of the most challenging tasks among the research community. Lossless coding methods are employed to retain the quality of an image in visual quality critical applications. Among the fields like remote sensing, business documentation, digital radiography, medical industry and satellite imagery, work is being done to achieve significant error-free compression [1,2,3].
Lossless image compression is also utilized in techniques such as information hiding and RASTER map compression [4,5]. Satellite and medical imagery are often high-resolution and at times require the original data to be protected from any loss. Different types of images such as grayscale, multi-spectral images, hyperspectral images, electrocardiogram (EEG), and Magnetic Resonance Imaging (MRI) have been processed to achieve lossless compression [6,7,8,9,10,11,12,13].
Lossless compression is majorly achieved due to the redundancy of intensity levels in the image thus making it a tedious task to bring down the size without compromising its quality [14,15,16]. By transforming the image data earlier to compression, higher image data redundancy can be achieved which in turn leads to higher compression [14]. Highly correlated image pixels regions offer greater information redundancy. This inter-pixel redundancy is utilized for effective lossless compression.
This research work is oriented around the enhancement of lossless compression of colour images based on the Bi-level Burrows–Wheeler Compression Algorithm (BBWCA) utilizing colour space transformations. The BBWCA developed by Khan et al. in [14] utilized Reversible Colour Transform (RCT) focusing on its extensive possibilities of applications given in [15]. In the proposed technique, various colour space transformations were analyzed for their increase in inter-pixel redundancy leading to higher compression.
Section 2 presents the various techniques employed for lossless compression with a major focus on the literature related to the Burrows–Wheeler Compression Algorithm (BWCA). RCTs are presented in Section 3. Experimental results in comparison with benchmark schemes and different image types are given in Section 4. Conclusions, contributions and future directions for the study are presented in Section 5.

2. Burrows–Wheeler Compression Algorithm (BWCA)

The classical Burrows–Wheeler Compression Algorithm (BWCA) was presented by J. Abel in [17] and is shown in Figure 1. It comprised of four stages which are explained briefly below and are depicted in Figure 2. A comprehensive examination of the scheme and its various stages is presented in the works of [14,15,18,19,20,21]. Currently, various variants of the algorithm have been developed by modifying either the complete scheme or its various stages [18,22,23].
The source data is input to the first stage of the Burrows–Wheeler Transform (BWT). The BWT is a lossless transform invented by M. Burrows and D. J. Wheeler for text compression [19].
By increasing the recurrence of image pixels, redundancy is enhanced which in turns leads to better compression. In the case of BWCA, it is the BWT that generates runs of symbols which is encoded by the MTF transform in such a way that it increases the occurrence of zeros. The later stages of RLE and entropy coding the various stages of BWCA are detailed as follows in order to elucidate their effectiveness for lossless transformation and compression.
The BWCA is based on the Burrows–Wheeler Transform (BWT) with secondary stages taking advantage of it [19]. The BWT is a reversible transform and creates chains of symbol repetitions by lexicographically sorting the permutations of the input string or pixels. The output contains long runs of the symbols which allows for the later stages of MTF and RLE to easily compress these runs effectively [17].
Figure 2 shows the transformation of the example string ‘bananana’ for clarity. In the first step of BWT, the strings permutations are created by circular left shifting one element at a time. Figure 2a shows all the permutations. Figure 2b depicts the lexicographical sorting of the matrix in Figure 2a. The permutations are sorted in ascending alphabetical order where order is checked for each column of the string. For the example string, the original string position is now 5 and the last column of the sorted matrix contains the string ‘nnnbaaaa’ having repetitions of alphabets ‘n’ and ‘a’.
Large size of input data will create better runs however, it will induce computation cost as memory and computations increase exponentially.
The string ‘nnnbaaaa’ is given to the MTF encoder stage in the reverse order to put it in ascending order. The MTF stage encodes a symbol from the list of all symbols. Its position is then moved to the front of the list so that if the same symbol is being repeated, it will get an index of “zero” from the list. Through this method, more runs of zeros are generated for repeating symbols.
As shown in Figure 2c, the string is encoded in conjunction with a list of all symbols. Currently the list is ‘abn’. The position of alphabet ‘a’ is index number ‘0’. The four ‘a’ runs are encoded as ‘0000’. When the alphabet ‘b’ is reached, its position in the list is checked, which is 2 and the run is encoded as ‘00001’. the symbol ‘b’ is moved to the front of the list such that if it is repeated, more ‘0’ indexes will be produced. The MTF encoder through this principle aims at increasing the runs of zeros and ones. The RLE stage then encodes these runs. RLE-0 is usually employed and other symbol runs are not encoded by RLE as the runs of zeros are usually more.
Different algorithms are presented for this RLE. Abel [17] presented the RLE-BIT and RLE-EXP algorithms while Burrows and Wheeler [19] used the Zero Run Transform (RLE-0). The proposed model uses the RLE-0 scheme. Once RLE has been done, the output is encoded by an entropy coder such as Huffman or arithmetic encoder.
An entropy coder compresses data by assigning fewer bits to frequently occurring symbols. This way symbols with elevated occurrence are decreased effectively. Both Huffman and arithmetic encoder models considers the probability of each data symbol or pixel. Huffman encoders provide better speed while arithmetic coders provide better compression. This research work has employed the arithmetic coder. Details of the arithmetic encoder are given in the Appendix A.
The BWCA is not complex in logic and offers high compression due to its main component, the Burrows–Wheeler Transform (BWT) which increases the redundancy of the data, in turn leading to higher compression. To further enhance the compression ability of the scheme, various modifications to the BWCA have been made including the works of Arnavut et al. in [24], Deorowicz et al. in [23], J. Abel in [17,18,22], Schindler in [25], Balkenhol and Shtarkov in [26], Arnavut et al. in [27] and Khan et al. in [28] to name a few.
This research work augments the compression performance of the Bi-level Burrows–Wheeler Compression Algorithm (BBWCA) devised by Khan et al. in [14]. The scheme offers higher image compression as compared to other benchmarks schemes by transforming the colour intensity levels over the dimensional space using a Reversible Colour Transform (RCT). The RCT increases the inter-pixel redundancy aiding in the compressibility of the data at the later stages of the algorithm. Figure 3 shows an overview of the BBWCA.
Prior to the input to RCT, true colour image data is DC shifted resulting in a grey-level range from −128 to +127. In comparison to the original image, the resulting image becomes more skewed aiding in much better compression during the later stages. Once the data is DC shifted; converted to YUV colour space from RGB, it is further processed during the BWT stage. To achieve better compression results Khan et al. in [14] employed the JPEG 2000 RCT [29].
In contrast to the conventional BWCA approach, BBWCA transfigures the image through row-wise and column-wise application of BWT over image data resulting in a highly correlated 2-D image. Redundancy among the pixels is enhanced by the utilization of the KMTF transform [28,30], in conjunction with RLE-0 and arithmetic encoding. By utilizing the RCT, BBWCA is able to achieve higher inter-pixel redundancy and in turn higher compression. There exist various RCTs, time and frequency based, which can be employed and explored for higher compression. The main aim of this research work is to investigate these RCTs and demonstrate their effect on the compression performance offered by the BBWCA. The following section presents a brief history and various types of RCTs designed and devised by the research community in the field of image processing.

3. Reversible Colour Transforms (RCTs)

Prior conversion of data from imaging domain to another can produce better compression results by the BWCA. Guo et al. utilized Discrete Wavelet Transform (DWT), a lossless wavelet transform in conjunction with Huffman encoder, and achieved higher compression. DWT for lossless compression has been utilized in methodologies proposed by Srikanth and Meher in [31] and Mozammel et al. in [32]. Telagarapu et al. in [33] employed Discrete Cosine Transform (DCT) and Discrete Wavelet Transform (DWT) showing that the DWT outperformed the DCT in terms of lossless compression. Strutz et al. in [34] used automatic selection of colour transforms for efficient coding, either lossy or lossless. It was 2 percent more efficient in the case of lossless coding. In Strutz’s earlier work in [35], various RCTs have been developed for efficient compression. By not fixing the RCT for image regions, better compression was achieved.
Colour space transformation refers to the conversion of image information from one colour domain to another. Multiple linear along with the non-linear transformations of the true colour image is utilized for the definition of a colour image in terms of luminance and colour [16,36,37,38,39]. RCTs have been utilised to boost compression of the RGB images by increasing data redundancy in other colour spaces [39,40]. Totally reversible integer colour transform transforms the imaging data into various colour spaces [29,41] and has been utilized for lossless image compression by JPEG 2000 [29,42,43,44]. This colour conversion helps in achieving high compression by reducing an image’s entropy prior to encoding [38,39].
Researchers have proposed various RCTs in the fields including the methodologies presented in [16,29,37,38,42,44,45,46,47]. This research focuses on the evaluation and investigation of the new and efficient RCT proposed by Starosolski in [45]. RDgDb, LDgDb, RDgEb, LDgEb, YA2UA2VA2, YA6UA6VA6, YA7UA7VA7 were listed as some of the few lossless transforms utilized and a comparative analysis has been drawn with RCTs of JPEG-2000, JPEG-XR and JPEG-LS etc. Each transform offers it advantages e.g., RDgDb has a requirement of subtraction of two integers per image pixel thus having lesser computational complexity [45] while LDgDb lossless colour transform offers a better estimation of the analog transformation in human vision system thus outperforming the YCoCg-R transform. Table 1 lists various RCTs used in image processing. Forward and Reverse RCT equations are listed as well.

4. Experimental Setup And Results

All the simulations and experimentations of the proposed method were performed over machines equipped with an Intel Core i7 processor, Quad Core CPU running @ 2.9 GHz, 8 GB RAM, 2 GB virtual memory executing programs and applications over the Microsoft Windows operating system. Algorithms were developed in MATLAB and were evaluated using the following image datasets.
  • Kodak colour image dataset
  • University of Loughborough Uncompressed Colour Image Database (UCID)
  • RASTER Maps Images
  • Colour Filter Array (CFA) Images
  • EEG Images
Simulations were performed by applying the proposed technique to these image sets and comparing against benchmark schemes. Six different colour transforms that include RDgDb, LDgDb, LDgEb, YA2UA2VA2, YA6UA6VA6, and YA7UA7VA7 [43] were utilized. Simulation results are presented as follows.

4.1. Lossless Compression Of Colour Images

The BBWCA was tested on sets of colour images to guess the efficiency of the RCTs. Systems comprised of BMF, FLIC, STUFF IT, FP8, GRALIC, and BMF were used as benchmark schemes for the evaluation purposes.
Image compression benchmark website [48] features the afore-mentioned techniques serving as the core of the most recent compression schemes. The proposed scheme was gauged against the formerly crafted YUV RCT based BBWCA [15]. The Kodak test images [49] shown in Figure 4 were used for initial testing. All the pictures have a resolution of 768 × 512 × 3 pixels totaling 1152 KB each.
Compression results for these images are listed in the tabular form in Table 2. The YA6UA6VA6 RCT based BBWCA compressed the archive of images to 4199 KB in opposition to the raw data set of 11,520 KB. Subsequently, the size of 4231 KB was achieved using GRALIC method. The YA6UA6VA6 RCT based BBWCA peaks the benchmark compression schemes as it compresses the well homogenized gray levels resulting from the RCT.
Proposed scheme tested over natural images acquired from Uncompressed Colour Image Database (UCID) of the University of Loughborough as shown in Figure 5. In this case, the proposed system employed the existing distinguished top performer YA6UA6VA6 RCT for BBWCA. PNG, FP8, BMF, FLIC, GRALIC and BBWCA (YUV) were utilized as benchmark schemes.
Compression results are presented in Table 3. BBWCA surpasses the benchmark schemes by showing a significant reduction of the total archive of size 14,450 KB to a compressed size of 5519 KB with a Compression Ratio (CR) of 2.62. It is considered as a significant enhancement in the pre-existed RCT based BBWCA scheme equipped with the ability of reduction of the 7829 KB archive data with CR as 1.85.
The proposed lossless compression technique was also extended to other 2-D data. Section 4.2 exhibits the compression capability of the proposed scheme to RASTER maps. Section 4.3 and Section 4.4 represent the lossless compression for the CFA and EEG images respectively.

4.2. Lossless Compression of RASTER Maps

RASTER maps are electronic maps embedded in navigation devices and comprises chiefly of redundant yet indispensable data. The data takes up a lot of storage space and being climacteric, its loss is highly pernicious. Lossless image compression is employed to decrease the data size while maintaining full quality of these images. Techniques proposed by Mao et al. in [4] and Akimov et al. in [48] prove to be pivotal in this aspect. Akimov et al. scheme works on splitting the colour map into separate layers that are compressed singly.
Block-Line Separated Encoding (BLiSE) technique by Mao et al. outperforms JPEG-LS, Portable Networks Graphic (PNG) and Graphics Interchange Format (GIF) compression. However, BBWCA utilizing the YUV RCT gave higher compression results than BLiSE and different schemes used as benchmarks. The YA6UA6VA6 RCT BBWCA shows promising results in comparison to the YUV RCT based BBWCA. RASTER maps used to draw a comparative analysis of compression achieved with the benchmark schemes in comparison with the proposed BBWCA (YA6UA6VA6) algorithm is shown in Figure 6. Figure 7 demonstrates the results of the system for the respective RASTER maps.

4.3. Lossless Compression of CFA Images

CFA images undergo lossless compression to lower down the computational complexity in later stages. Lee et al.’s in [50] proposed a scheme working on the lossless compression of HDR imagery. Initially, the images are de-interlaced into individual channels followed by the weighted template matching based prediction is performed compressing the high-resolution images at a very low computational cost. Chung et al. in [51] proposed a method to use context matching accompanied with reduction techniques in the spectral domain for colour difference estimation.
CFA images utilized for the evaluation of the designed system are given in Figure 8. Bits Per Pixel (BPPs) achieved by the schemes in the discussion are represented in Figure 9. JPEG-LS, JPEG2000, LCMI, CMBP and HPCM techniques [51] are used as a benchmark scheme to draw a comparison with the proposed system. YUV RCT based BBWCA of Khan et al. in [14] is also compared with the proposed method to determine its compression efficiency and performance.
The proposed YA6UA6VA6 RCT based BBWCA performs the compression reducing the data with an average BPP of 3.35. In comparison to the YUV BBWCA, HPCM and CMBP schemes, it shows an increase of 18, 20, and 26 percent increase in the effective lossless compression.
The transform mainly offers the advantage of its ability to produce a redundant number of grey scale values lying among the U and V channels. Once the redundant data is transformed by BWT, it generates data with correlation matrix among the 2-D image which is efficiently compressed by the later stages.

4.4. Lossless Compression of 2-D EEG Data

Inspection and storage of EEG produce large data containing patient’s significant information. Compression algorithms reduce the storage capacity of the data and provide effective methods for preventing overwriting due to the small capacity of EEG machines.
Antonio et al. in [52] proposed a method based on securing the derivation of EEG instead of the unprocessed data. Lossless compression was achieved by the amalgamation of various techniques including Huffman encoding and vector quantization. Dauwels et al. in [53] devised a methodology utilizing wavelets to achieve compression over multi-channel EEG. The effective compression is achieved by the utilization of wavelet-based volumetric coding, energy-based lossless compression of the resulting wavelet bands followed by coding based on the tensor. The latter scheme recorded with the best compression results.
Lin et al. in [54] proposed a multi-channel EEG compression scheme based on the Independent Component Analysis (ICA) followed by Set Partitioning in Hierarchical Trees (SPIHT). Prior to the application of ICA, the algorithm utilizes Principal Component Analysis (PCA) followed by the application of SPIHT compressing any residues adding effective compression in comparison to the independent components. Xu et al. in [55] proposed a compression method based on No List Set Partitioning in Hierarchical Trees (NLSPIHT) algorithm for 1.5 D EEG. It considers the I-D DWT instead of SPIHT based 2-D compression requiring lower computational complexity and power. Daou et al. in [56] proposed another scheme utilizing the same techniques as mentioned above i.e., DWT and SPIHT.
Experimentation was conducted utilizing the EEG data samples from the University of Bonn [57]. Figure 10 depicts the compression results achieved for the EEG data in terms of size and ratios. Five datasets labelled (A-E) constitute the data where each label presents an ailment. The proposed YA6UA6VA6 RCT based BBWCA shows a significant improvement in compression for the source signals.

4.5. Scalability to High Resolution Imagery

The proposed scheme provides a single platform for the compression of various forms of 2-D data and images including imagery acquired from large resolution sensors. 4K images, HDR images, MRI/CT image volumes are our future work directions.
Since there is too much redundancy in these datasets, one method that we are currently investigating involves applying MTF transform encoding prior to BBWCA. Figure 11 shows the amount of data that can be reduced to long runs of zeros by applying MTF transform on the pristine image before encoding it with BBWCA. Figure 11a shows the original image and its MTF encoded version is given in Figure 11b. Figure 11c shows the histogram of both images. Large number of zeros in the MTF encoded version is beneficial in data reduction prior to BWT and its successive stages.

5. Conclusions

The utilization of the reversible transforms in conjunction with BWCA algorithm resulted in greater compression as compared to the benchmark schemes. The YA6UA6VA6 RCT achieved the best compression results in general for various size of images and creates a single base for the compression of a variety of data including CFA, EEG and RASTER data. The proposed compression outperforms the techniques exclusively developed for 2-D EEG, RASTER map and Color Filter Array (CFA) image compression. In the future, the BBWCA is also aimed for the application of DCT and DWT to achieve lossy compression over the data as well. In comparison to the existing schemes, for CFA images the proposed system gives 3.35 Bits Per Pixel (BPPs) compared to 3.95. Similarly, for EEG data, the proposed system achieved a compression ratio of 3.12 and gave promising results for RASTER image compression.

Author Contributions

Conceptualization, M.W., T.-W.U. and A.K. (Aftab Khan); methodology, M.W., T.-W.U. and A.K. (Aftab Khan); software, M.W. and A.K. (Ali Khan); validation, T.-W.U. and A.K. (Aftab Khan); formal analysis, T.-W.U. and A.K. (Aftab Khan); investigation, M.W. and A.K. (Ali Khan); resources, T.-W.U. and A.K. (Aftab Khan); data curation, M.W. and A.K. (Ali Khan); writing—original draft preparation, M.W. and A.K. (Aftab Khan); writing—review and editing, M.W., T.-W.U. and A.K. (Aftab Khan); visualization, M.W., T.-W.U. and A.K. (Aftab Khan); project administration, T.-W.U.; funding acquisition, T.-W.U. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by research fund from Chosun University and the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No.2018R1A2B2003774).

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. The Arithmetic Coder

The Huffman Coding trades a symbol with a particular code depending on the Huffman tree generated from the prior probabilities of the symbols in the message. On the other hand, the Arithmetic coding evades this idea by replacing a set of input symbols with a single floating point output number. The length of the message and its complexity leads to higher number of bits required for generating the output. The range of an arithmetic coding output, say x here, is a single number such that 0 x < 1 . x is uniquely decodable taking considering probabilities of the symbols.
This interval keeps on reducing for lengthier messages which in turn leads to the utilization of a higher numbers of bits to represent the range. The process continues for the subsequent symbols and frequently occurring symbols narrow the range lesser as compared to less frequent symbols.
Figure A1 shows the encoding example for the Arithmetic encoder for better comprehension. The example of a fixed model arithmetic code from the works of Witten et al. [59], is presented below.
Figure A1. Symbols ranges in Arithmetic encoder for the message ‘eaii!’.
Figure A1. Symbols ranges in Arithmetic encoder for the message ‘eaii!’.
Applsci 10 00937 g0a1
Let suppose we have a set of alphabets i.e., [a,e,i,o,u,!] where ! is used as end of message indicator. The probabilities of these alphabets are given in Table A1. Now, a message “eaii!” is encoded as follows.
Table A1. Symbols probabilities and ranges for fixed model Arithmetic coder example.
Table A1. Symbols probabilities and ranges for fixed model Arithmetic coder example.
SymbolProbabilityRange
a0.2[0.0, 0.2)
e0.3[0.2, 0.5)
i0.1[0.5, 0.6)
o0.2[0.6, 0.8)
u0.1[0.8, 0.9)
!0.1[0.9, 1.0)
The alphabet “e” is the first symbol to be encoded as it has the highest probability. The first symbol is the important part of the arithmetic encoder as it defines the highest interval which will be subsequently narrowed. As seen in Figure A1, in the first step, the message is arranged on the vertical probability interval. The range of “e” starts from 0.2 and ends at 0.5. The second alphabet in the message is “a”. The range of e [0.2,0.5) needs to be narrowed. The equations below let us calculate that new range.
r a n g e = u p p e r _ b o u n d l o w e r _ b o u n d
Range of a “symbol” is calculated then as
l o w e r _ l i m i t : l o w e r _ l i m i t + r a n g e * " s y m b o l " _ p r o b a b i l i t y
So, for “a” the overall range is 0.5 − 0.2 = 0.3. The new range for symbol “a” is calculated as 0.2 : 0.2 + 0.3 × 0.2 giving us [ 0.2 , 0.26 ]
Similarly, the ranges for all the symbols are calculated as shown in Table A1.
Now, let’s see how we can decode a message for the Arithmetic coder. Say the decoder only has the information about the last range of the message i.e., [0.23354, 0.2336). This range according to the probability given in Table A2 shows the first character has to be “e”. Once the first character is decoded it imitates the probability ranges for the rest of the symbols.
Table A2. Calculated ranges for all the symbols.
Table A2. Calculated ranges for all the symbols.
Initially [0, 1)
After Symbole[0.2, 0.5)
a[0.2, 0.26)
i[0.23, 0.236)
i[0.2333, 0.2336)
![0.23354, 0.2336)
Initially the range was [0, 1) and after seeing “e” it became [0.2, 0.5). From here, as per the probabilities, the range is narrowed for symbol “a” giving us [0.2, 0.26). The process is repeated till all the symbols ranges are generated at the decoder end. Then from the last range, in the reverse order, the message is identified.

References

  1. Ouni, T.; Lassoued, A.; Abid, M. Lossless Image Compression Using Gradient Based Space Filling Curves (G-SFC). Signal Image Video Process. 2015, 9, 277–293. [Google Scholar] [CrossRef]
  2. Anusuya, V.; Raghavan, V.S.; Kavitha, G. Lossless Compression on MRI Images Using SWT. J. Digit. Imag. 2014, 27, 594–600. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Srinivasan, K.; Dauwels, J.; Reddy, M.R. A Two-Dimensional Approach for Lossless EEG Compression. Biomed. Signal Process. Control. 2011, 6, 387–394. [Google Scholar] [CrossRef]
  4. Mao, Q.; Zhou, B.; Zou, Q.; Li, Q. Efficient and Lossless Compression of Raster Maps. Signal Image Video Process. 2015, 9, 133–145. [Google Scholar] [CrossRef]
  5. Sun, W.; Lu, Z.M.; Wen, Y.C.; Yu, F.X.; Shen, R.J. High Performance Reversible Data Hiding For Block Truncation Coding Compressed Images. Signal Image Video Process. 2013, 7, 297–306. [Google Scholar] [CrossRef]
  6. Kolo, J.G.; Shanmugam, S.A.; Lim, D.W.G.; Ang, L.M. Fast and Efficient Lossless Adaptive Compression Scheme for Wireless Sensor Networks. Comput. Electr. Eng. 2015, 41, 275–287. [Google Scholar] [CrossRef]
  7. Kumar, R.; Kumar, A.; Pandey, R.K. Beta Wavelet Based ECG Signal Compression Using Lossless Encoding With Modified Thresholding. Comput. Electr. Eng. 2013, 39, 130–140. [Google Scholar] [CrossRef]
  8. Nasri, M.; Helali, A.; Sghaier, H.; Maaref, H. Adaptive Image Compression Technique for Wireless Sensor Networks. Comput. Electr. Eng. 2011, 37, 798–810. [Google Scholar] [CrossRef]
  9. Mukhopadhyay, S.K.; Mitra, S.; Mitra, M. A Lossless ECG Data Compression Technique Using ASCII Character Encoding. Comput. Electr. Eng. 2011, 37, 486–497. [Google Scholar] [CrossRef]
  10. Karimi, N.; Samavi, S.; Amraee, S.; Shirani, S. Use of Symmetry In Prediction-Error Field For Lossless Compression of 3D MRI images. Multimed. Tools Appl. 2014, 74, 11007–11022. [Google Scholar] [CrossRef]
  11. Pathan, A.S.K. Skip Block Based Distributed Source Coding for Hyperspectral Image Compression. Multimed. Tools Appl. 2015, 1–23. [Google Scholar] [CrossRef]
  12. Nian, Y.; Wan, J.; Tang, Y.; Chen, B. Near Lossless Compression of Hyperspectral Images Based On Distributed Source Coding. Sci. China Inf. Sci. 2012, 55, 2646–2655. [Google Scholar] [CrossRef]
  13. Nian, Y.; He, M.; Wan, J. Distributed Near Lossless Compression Algorithm for Hyperspectral Images. Comput. Electr. Eng. 2014, 40, 1006–1014. [Google Scholar] [CrossRef]
  14. Khan, A.; Khan, A. Lossless Colour Image Compression Using RCT for Bi-level BWCA. Signal Image Video Process. 2015, 1–7. [Google Scholar] [CrossRef]
  15. Khan, A.; Khan, A.; Khan, M.; Uzair, M. Lossless Image Compression: Application of Bi-level Burrows Wheeler Compression Algorithm (BBWCA) to 2-D Data. Multimed. Tools Appl. 2017, 76, 12391–12416. [Google Scholar] [CrossRef]
  16. Zamora, G.; Mitra, S. Lossless Coding of Color Images Using Color Space Transformations. In Proceedings of the 11th IEEE Symposium on Computer-Based Medical Systems, Lubbock, TX, USA, 12 June 1998; pp. 13–18. [Google Scholar]
  17. Abel, J. Improvements to the Burrows-Wheeler Compression Algorithm: After BWT Stages. ACM Trans. Comput. Syst. 2003. Available online: https://www.semanticscholar.org/paper/Improvements-to-the-Burrows-Wheeler-Compression-BWT-Abel /bff1aa90a397f7ae0f0cf4ff6b4932a431388d63 (accessed on 5 December 2019).
  18. Abel, J. Post BWT Stages of the Burrows-Wheeler Compression Algorithm. Softw. Pract. Exp. 2010, 40, 751–777. [Google Scholar] [CrossRef]
  19. Burrows, M.; Wheeler, D. A Block-Sorting Lossless Data Compression Algorithm; SRC Research Report 124; Digital Systems Research Center: Palo Alto, CA, USA, 1994. [Google Scholar]
  20. Manzini, G. An Analysis of the Burrows-Wheeler Transform. J. ACM 2001, 48, 407–430. [Google Scholar] [CrossRef]
  21. Si Van, V. Image Compression Using Burrows-Wheeler Transform. Master’s Thesis, Helsinki University of Technology, Helsinki, Finland, 2009. [Google Scholar]
  22. Abel, J. Incremental Frequency Count—A Post BWT-stage for the Burrows-Wheeler Compression Algorithm. Softw. Pract. Exp. 2007, 37, 247–265. [Google Scholar] [CrossRef]
  23. Deorowicz, S. Improvements to Burrows-Wheeler Compression Algorithm. Softw. Pract. Exp. 2000, 30, 1465–1483. [Google Scholar] [CrossRef]
  24. Arnavut, Z.; Arnavut, M. Investigation of Block-sorting of Multiset Permutations. Int. J. Comput. Math. 2004, 81, 1213–1222. [Google Scholar] [CrossRef]
  25. Schindler, M. A Fast Block-sorting Algorithm for Lossless Data Compression. In Proceedings of the IEEE Data Compression Conference, Snowbird, UT, USA, 31 March 1997. [Google Scholar]
  26. Balkenhol, B.; Shtarkov, Y. One Attempt of a Compression Algorithm Using the BWT; Sonderforschungsbereich-343. 1999. Available online: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.43.1175&rep=rep1&type=pdf (accessed on 10 December 2019).
  27. Arnavut, Z.; Magliveras, A.S. Lexical Permutation Sorting Algorithm. Comput. J. 1997, 40, 292–295. [Google Scholar] [CrossRef] [Green Version]
  28. Khan, A.; Asif Ali, M.; Younus Javed, M.; Khanum, A.; Usman AKram, M. Lossless Image Compression: Improvement to Kernel Global Structure Transform (KGST) based Burrows-Wheeler Compression Algorithm (BWCA). In Proceedings of the 2nd International Conference on Machine Vision (ICMV), Hong Kong, China, 20 August 2010. [Google Scholar]
  29. Skodras, A.; Christopoulos, C.; Ebrahimi, T. The Jpeg 2000 Still Image Compression Standard. IEEE Signal Process. Mag. 2001, 18, 36–58. [Google Scholar] [CrossRef]
  30. Asif Ali, M.; Khan, A.; Younus Javed, M.; Khanum, A. Lossless Image Compression Using Kernel Based Global Structure Transform (GST). In Proceedings of the 6th International Conference on Emerging Technologies (ICET), Islamabad, Pakistan, 18 October 2010; pp. 170–174. [Google Scholar] [CrossRef]
  31. Srikanth, S.; Meher, S. Compression Efficiency for Combining Different Embedded Image Compression Techniques with Huffman Encoding. In Proceedings of the 2013 International Conference on Communication and Signal Processing, Melmaruvathur, India, 16 August 2013. [Google Scholar] [CrossRef]
  32. Mozammel, M.; Chowdhury, H.; Khatun, A. Image Compression Using Discrete Wavelet Transform. Int. J. Comput. Sci. Issues 2012, 9, 327. [Google Scholar]
  33. Telagarapu, P.; Naveen, V.; Prasanthi, A.; Santhi, G. Image Compression Using DCT and Wavelet Transformations. Int. J. Signal Process. Image Process. Pattern Recognit. 2011, 4, 61–74. [Google Scholar]
  34. Strutz, T.; Leipnitz, A. Adaptive colour-space selection in high efficiency video coding. In Proceedings of the 2017 25th European Signal Processing Conference (EUSIPCO), Kos, Greece, 2 September 2017; pp. 1534–1538. [Google Scholar]
  35. Strutz, T. Multiplierless reversible color transforms and their automatic selection for image data compression. IEEE Trans. Circuits Syst. Video Technol. 2013, 23, 1249–1259. [Google Scholar] [CrossRef]
  36. Gonzalez, R.; Woods, R. Digital Image Processing; Prentice-Hall Inc.: Upper Saddle River, NJ, USA, 2002; Volume 2. [Google Scholar]
  37. De Queiroz, R.L. On Independent Color Space Transformations for the Compression of CMYK Images. IEEE Trans. Image Process. 1999, 8, 1446–1451. [Google Scholar] [CrossRef]
  38. Colantoni, P.A. Color Space Transformations. 2004. Available online: https://pdfs.semanticscholar.org/739d/20ce3cc41ee74f3db7748949abd326899537.pdf (accessed on 9 September 2019).
  39. Chou, C.H.; Liu, K.C. Colour Image Compression Based on the Measure of Just Noticeable Colour Difference. IET Image Process. 2008, 2, 304–322. [Google Scholar] [CrossRef]
  40. Tiwari, A.K.; Kumar, R.V.R. A Minimum Entropy Based Switched Adaptive Predictor for Lossless Compression of Images. Signal Image Video Process. 2009, 3, 307–318. [Google Scholar] [CrossRef]
  41. Gormish, M.J.; Schwartz, E.L.; Keith, A.; Boliek, M.; Zandi, A. Lossless and Nearly Lossless Compression for High Quality Images. In SPIE: Very High Resolution and Quality Imaging II; Algazi, V.R., Ono, S., Tescher, A.G., Eds.; SPIE—International Society Optical Engineering: Bellingham, WA, USA, 1997; pp. 62–70. [Google Scholar]
  42. Przelaskowski, A. Effective Integer-to-Integer Transforms for JPEG2000 Coder. In Wavelets: Applications in Signal and Image Processing IX; Laine, A.F., Unser, M.A., Aldroubi, A., Eds.; SPIE—International Society Optical Engineering: Bellingham, WA, USA, 2001; Volume 4478, pp. 299–310. [Google Scholar]
  43. Rabbani, M.; Joshi, R. An Overview of the Jpeg 2000 Still Image Compression Standard. Signal Process. Image Commun. 2002, 17, 3–48. [Google Scholar] [CrossRef]
  44. Chen, Y.; Hao, P. Integer Reversible Transformation to Make JPEG Lossless. In Proceedings of the 2004 7th International Conference on Signal Processing Proceedings, Beijing, China, 31 August 2004; pp. 835–838. [Google Scholar]
  45. Starosolski, R. New Simple and Efficient Color Space Transformations for Lossless Image Compression. J. Vis. Commun. Image Represent. 2014, 25, 1056–1063. [Google Scholar] [CrossRef]
  46. Seyun, K.; Nam Ik, C. A Lossless Color Image Compression Method Based on a New Reversible Color Transform. In Proceedings of the 2012 Visual Communications and Image Processing (VCIP), San Diego, CA, USA, 21 June 2012. [Google Scholar] [CrossRef]
  47. Wang, L.; Sun, T.; Jeon, G. Quadtree-based Reversible Integer Time-Domain Lapped Transform for Progressive Lossy-to-Lossless Images Compression. Opt. Eng. 2014, 53. [Google Scholar] [CrossRef]
  48. Akimov, A.; Kolesnikov, A.; Franti, P. Lossless Compression Of Color Map Images By Context Tree Modeling. IEEE Trans. Image Process. 2007, 16, 114–120. [Google Scholar] [CrossRef] [PubMed]
  49. Ratushnyak, A. GraLIC. 2015. Available online: http://www.who.int/mediacentre/factsheets/fs282/fr/ (accessed on 14 December 2019).
  50. Lee, D.; Plataniotis, K.N. Lossless Compression Of HDR Color Filter Array Image For The Digital Camera Pipeline. Signal Process. Image Commun. 2012, 27, 637–649. [Google Scholar] [CrossRef]
  51. Chung, K.H.; Chan, Y.H. A Lossless Compression Scheme For Bayer Color Filter Array Images. IEEE Trans. Image Process. 2008, 17, 134–144. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  52. Antoniol, G.; Tonella, P. EEG Data Compression Techniques. IEEE Trans. Biomed. Eng. 1997, 44, 105–114. [Google Scholar] [CrossRef]
  53. Dauwels, J.; Srinivasan, K.; Ramasubba, R.M.; Cichocki, A.; Ieee. Multi-Channel EEG Compression Based on 3D Decompositions. In Proceedings of the 2012 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Kyoto, Japan, 27 March 2012; pp. 637–640. [Google Scholar]
  54. Lin, L.; Meng, Y.; Chen, J.P.; Li, Z.B. Multichannel EEG compression based on ICA and SPIHT. Biomed. Signal Process. Control. 2015, 20, 45–51. [Google Scholar] [CrossRef]
  55. Xu, G.W.; Han, J.; Zou, Y.; Zeng, X.Y. A 1.5-D Multi-Channel EEG Compression Algorithm Based on NLSPIHT. IEEE Signal Process. Lett. 2015, 22, 1118–1122. [Google Scholar] [CrossRef]
  56. Daou, H.; Labeau, F. Dynamic Dictionary for Combined EEG Compression and Seizure Detection. IEEE J. Biomed. Health Inf. 2014, 18, 247–256. [Google Scholar] [CrossRef]
  57. Andrzejak, R.; Lehnertz, K.; Rieke, C.; Mormann, F.; Elger, C. Indications of Nonlinear Deterministic and Finite Dimensional Structures in Time Series of Brain Electrical Activity: Dependence on Recording Region and Brain State. Phys. Rev. E 2001, 64, 061907. [Google Scholar] [CrossRef] [Green Version]
  58. Joseph, B.; Joseph, I.; Frese, D. Pexels, Free 4k Images. 2020. Available online: https://www.pexels.com (accessed on 11 January 2020).
  59. Witten, I.H.; Neal, R.M.; Cleary, J.G. Arithmetic coding for data compression. Commun. ACM 1987, 30, 520–540. [Google Scholar] [CrossRef]
Figure 1. The classical Burrows–Wheeler Compression Algorithm (BWCA) [17].
Figure 1. The classical Burrows–Wheeler Compression Algorithm (BWCA) [17].
Applsci 10 00937 g001
Figure 2. (a) Generated permutations from string (b) Permutations sorted with the final column containing the output string (c) M-Term Pursuit (MTF) encoding of string followed by Run-Length Encoding (RLE) in (d).
Figure 2. (a) Generated permutations from string (b) Permutations sorted with the final column containing the output string (c) M-Term Pursuit (MTF) encoding of string followed by Run-Length Encoding (RLE) in (d).
Applsci 10 00937 g002
Figure 3. Overview of the Bi-level Burrows–Wheeler Compression Algorithm (BBWCA) [14].
Figure 3. Overview of the Bi-level Burrows–Wheeler Compression Algorithm (BBWCA) [14].
Applsci 10 00937 g003
Figure 4. Kodak Test Images.
Figure 4. Kodak Test Images.
Applsci 10 00937 g004
Figure 5. University of Loughborough - UCID Outdoor Images.
Figure 5. University of Loughborough - UCID Outdoor Images.
Applsci 10 00937 g005
Figure 6. Set of RASTER maps used for compression.
Figure 6. Set of RASTER maps used for compression.
Applsci 10 00937 g006
Figure 7. Comparative analysis of RASTER maps of different compression sizes. Original image size is 843 KB. Values on y-axis are displayed on the logarithmic scale for a better visual representation.
Figure 7. Comparative analysis of RASTER maps of different compression sizes. Original image size is 843 KB. Values on y-axis are displayed on the logarithmic scale for a better visual representation.
Applsci 10 00937 g007
Figure 8. Colour Filter Array (CFA) images utilized for the evaluation of the proposed system.
Figure 8. Colour Filter Array (CFA) images utilized for the evaluation of the proposed system.
Applsci 10 00937 g008
Figure 9. Bits Per Pixel (BPPs) employed by the benchmark and BBWCA for lossless compression of CFA images.
Figure 9. Bits Per Pixel (BPPs) employed by the benchmark and BBWCA for lossless compression of CFA images.
Applsci 10 00937 g009
Figure 10. Comparative analysis of compression size and ratios for lossless compression of EEG data (size in KB).
Figure 10. Comparative analysis of compression size and ratios for lossless compression of EEG data (size in KB).
Applsci 10 00937 g010
Figure 11. (a) Original image [58] (b) MTF encoded image (c) Histogram of original image and its MTF encoded version.
Figure 11. (a) Original image [58] (b) MTF encoded image (c) Histogram of original image and its MTF encoded version.
Applsci 10 00937 g011
Table 1. List of RCTs and their forward and reverse equations.
Table 1. List of RCTs and their forward and reverse equations.
TransformForward RCTReverse RCTReference
RDgDb R D g D b = 1 0 0 1 1 0 0 1 1 R G B R G B = 1 0 0 1 1 0 1 1 1 R D g D b Roman Starosolski et al. [45]
LDgEb L D g E b = 1 / 2 1 / 2 0 1 1 0 1 / 2 1 / 2 1 R G B R G B = 1 1 / 2 0 1 1 / 2 0 1 0 1 L D g E b Roman Starosolski et al. [45]
LDgDb L D g D b = 1 / 2 1 / 2 0 1 1 0 0 1 1 R G B R G B = 1 1 / 2 0 1 1 / 2 0 1 1 / 2 1 L D g D b Roman Starosolski et al. [45]
YA2UA2VA2 Y A 2 U A 2 V A 2 = 0 1 0 0 1 1 1 1 0 R G B Roman Starosolski et al. [45]
YA6UA6VA6 Y A 6 U A 6 V A 6 = 1 0 0 1 0 1 1 1 0 R G B Roman Starosolski et al. [45]
YA7UA7VA7 Y A 7 U A 7 V A 7 = 0 0 1 0 1 1 1 0 1 R G B Roman Starosolski et al. [45]
mYA2UA2VA2Modular Arithmetic Variant of YA2UA2VA2
mRDgDb R = R m D g = ( R G ) s m o d 2 N m D b = ( G B ) s m o d 2 N R = R G = ( R m D g ) s m o d 2 N B = ( G m D b ) s m o d 2 N Roman Starosolski et al. [45]
mLDgEb m D g = ( R G ) s m o d 2 N m L = ( R [ m D g / 2 ] ) m o d 2 N m E b = ( B m L ) s m o d 2 N R = ( m L + [ m D g / 2 ] ) m o d 2 G = ( R m D g ) m o d 2 N B = ( m E b + m L ) m o d 2 N Roman Starosolski et al. [45]
mLDgDbModular Arithmetic Variant of LDgDb
RCT Y = R + 2 G + B 4 U = R G V = B G G = Y U + V 4 R = U + G B = V + G [14,30]
mRCTModular Arithmetic Variant of RCT[30]
YCoCg-R Y C g C O = 1 / 4 1 / 2 1 / 4 1 / 4 1 / 2 1 / 4 1 / 2 0 1 / 2 R G B R G B = 1 1 1 1 1 0 1 1 1 Y C g C O JPEG XR Standard [43]
Table 2. Comparative Analysis of Compression sizes achieved in KB with existing benchmark schemes (for Kodak images). All Kodak images have a resolution of 768 × 512 × 3 totaling 1152 KB. BPPs for separate Y, U, V channels for the BBWCA(YUV) transform are shown for individual channel efficiency.
Table 2. Comparative Analysis of Compression sizes achieved in KB with existing benchmark schemes (for Kodak images). All Kodak images have a resolution of 768 × 512 × 3 totaling 1152 KB. BPPs for separate Y, U, V channels for the BBWCA(YUV) transform are shown for individual channel efficiency.
ImageExisting Compression Schemes
FLICZPAQFP8PAQ8STUFF IT
kodim02422461352341391
kodim05517731575549499
kodim07390501350332370
kodim08540723595564507
kodim11425556424404432
kodim13561711585562552
kodim20335411325313421
kodim21455543432435488
kodim22480688523503482
kodim23401620417394404
TOTAL45265945457843974546
ImageExisting Compression SchemesProposed Compression Scheme
BMFGRALICBBWCA(RDgDb)BBWCA(LDgDb)BBWCA(LDgEb)
kodim02438397700685539
kodim05512480742742847
kodim07395333654653715
kodim08524498681681878
kodim11438401585586703
kodim13565534707708821
kodim20339308506533612
kodim21465474524525690
kodim22485439675681788
kodim23411367635633659
TOTAL45724231640964277252
ImageProposed Compression Scheme
BBWCA (YUV)BBWCA (YUV)BPP for Y | U | V ChannelBBWCA(YA2UA2VA2)BBWCA(YA7UA7VA7)BBWCA(YA6UA6VA6)
kodim023722.73 | 0.58 | 0.56506691294
kodim053983.02 | 1.79 | 1.09580785441
kodim073872.77 | 1.45 | 1.25442709374
kodim084373.06 | 1.67 | 1.70628700537
kodim113752.79 | 1.56 | 1.23451598497
kodim134723.11 | 1.46 | 0.96483806458
kodim204922.42 | 1.27 | 0.74334709205
kodim214193.17 | 1.48 | 1.53480560545
kodim224783.00 | 1.43 | 1.18527726428
kodim234932.56 | 1.38 | 1.20460710420
TOTAL4323 489169944199
Table 3. Comparison of compression sizes for UCID outdoor images.
Table 3. Comparison of compression sizes for UCID outdoor images.
UCID Image NoOriginal Size BMPCompression Scheme
PNGFP8BMFFLICGRALICBBWCA (YUV)BBWCA (YA6UA6VA6)
1578468299522278264378207
2578486297256276259395210
3578606363296325307410410
4578536339297316298342237
5578576382328346332374241
6578560367317335321370217
7578625416336352337334224
8578544343284307291308201
9578456265224239227300174
10578547357303319304368235
11578565335271299280334171
12578502329284309288335227
13578546339280302286309194
14578568359298319304327242
15578346217191204195177122
16578499309256276260275152
17578581384320338324240206
18578435279244259247352154
19578592376306328314209263
20578583372310339316222270
21578554332266299278200240
22578591413367379369212259
23578595395332359336431230
24578615424362376364382258
25578597388335352339245175
Total1445013573867975857831744078295519

Share and Cite

MDPI and ACS Style

Waleed, M.; Um, T.-W.; Khan, A.; Khan, A. On the Utilization of Reversible Colour Transforms for Lossless 2-D Data Compression. Appl. Sci. 2020, 10, 937. https://doi.org/10.3390/app10030937

AMA Style

Waleed M, Um T-W, Khan A, Khan A. On the Utilization of Reversible Colour Transforms for Lossless 2-D Data Compression. Applied Sciences. 2020; 10(3):937. https://doi.org/10.3390/app10030937

Chicago/Turabian Style

Waleed, Muhammad, Tai-Won Um, Aftab Khan, and Ali Khan. 2020. "On the Utilization of Reversible Colour Transforms for Lossless 2-D Data Compression" Applied Sciences 10, no. 3: 937. https://doi.org/10.3390/app10030937

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop