a methodology for spatial domain image compression based on hops encoding

8 1 0
a methodology for spatial domain image compression based on hops encoding

Đang tải... (xem toàn văn)

Thông tin tài liệu

Available online at www.sciencedirect.com ScienceDirect Procedia Technology 25 (2016) 52 – 59 Global Colloquium in Recent Advancement and Effectual Researches in Engineering, Science and Technology (RAEREST 2016) A Methodology for Spatial Domain Image Compression Based on Hops Encoding Maria Georgea*,Manju Thomasa,Jayadas C.Kb a College of Engineering Poonjar,Kottayam,686582,India College of Engineering Cherthala,Alappuzha,688541,India b Abstract Spatial Domain Image Compression based on Hops Encoding is an efficient algorithm that exploits the encoding of the error between the predicted value and pixel value For all images a constant set of hops are derived and can be used at both encoder and decoder The main advantage of hops encoding is that the method is made simple and high quality results in terms of Peak Signal-to-Noise Ratio (PSNR), image quality metrics with full-reference Feature SIMilarity index(FSIM) and non-reference Blind/Reference-less Image Spatial QUality Evaluator (BRISQUE) The constant array of hops is derived from analysis of sample images Hops encoder outperforms LHE, JPEG and JPEG2000 at low bitrates © 2016 2015 The TheAuthors Authors.Published © Published by Elsevier Ltd This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/) Peer-review under responsibility of the organizing committee of RAEREST 2016 Peer-review under responsibility of the organizing committee of RAEREST 2016 Keywords:Spatial domain image compression,Hops, LHE,PSNR,FSIM,BRISQUE Introduction In digital world, images have significant usage in internet Due to the large quantity of data required to represent the original image, such data becomes expensivein terms of storage and transmission.Thus image compression is the process of reducing the data while preserving the information in it Purpose of image compression is to represent images with less data in order to save storage costs or transmission time Without compression, file size is significantly larger, usually several megabytes, but with compression it is possible to reduce file sizeto 10 percent from the original without noticeable loss in quality [2] * Corresponding author Tel.: +91-8086535848; E-mail address:mariageorge92@gmail.com 2212-0173 © 2016 The Authors Published by Elsevier Ltd This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/) Peer-review under responsibility of the organizing committee of RAEREST 2016 doi:10.1016/j.protcy.2016.08.080 Maria George et al / Procedia Technology 25 (2016) 52 – 59 Many fast and efficient image compression engines have been proposed in both spatial frequency domains Image compression is categorized into lossy and lossless compression In lossy compression we sacrifice image information to achieve very compact storage, mostly lossy compression method are used in web browsing, photography, image editing and printing etc JPEG for lossy compression is sufficient image compression tool On the other side, there are certain imageprocessing applications (medical imaging, satellite imaging, remote sensing and forensic analysis) that required no pixel difference between the original and the reconstructed image, so need some lossless compression methods Currently TIFF, GIF, PNG and BMP are the most commonly known formats use lossless compression techniques [2] In the frequency domain image processing, image is transformed into frequency domain from spatial domain and then the processing is performed After processing, the image is mapped again in to the spatial domain These transformations are complex In the spatial domain processing, there is no need of such costly transformations and is simple Spatial domain image compression techniques deserve acute significance in digital imaging world All of such algorithms attempt to reduce the inter-pixel redundancy of an image discovering the fact that since the value of any given pixel can be reasonably predicted from the value ofits neighbours, the information carried by individual pixels is relatively small[3] Related works In [2], the image is divided into 4u4 blocks Then the difference between the maximum and the minimum value is calculated The header series will be of 11 bit long and the first bits represents the minimum value in the block and next bits represents the no of bits required to represent each difference values between pixel value and the minimum value in the block and let it be k Then using k bits, each differencevalue is encoded An improved method for [2] is proposed as [3].For each block, presence of overheadcondition is verified and one bit header for each block is provided to represent the state of each block The bit header for each block is then run length encoded to further reduce the compression ratio [3] A different approach is proposed in [4].In this paper, the frequency of occurrence of each element in a 4u4 block is used to compress the image In [5], snake scanned pixels are level shifted Then this value undergoes logarithmic transformation, repeat block reduction and thereafter compression using an index table In [1], Logarithmical Hopping Encoding (LHE) is used Each pixel values are predicted using previous pixel values and then the error between actual pixel value and predicted pixel value is encoded The set of hops for each pixel are calculated using a set of equations [1].From these set of hops for each pixel an appropriate hop index is chosen and pixel value is then replaced by the hop index value At decoder, same prediction is used and each pixel value is reconstructed as the sum of predicted value and hop value corresponding to the received index is selected, from the hops calculated for the predicted value Proposed Scheme The basic algorithm of hops encoding is based on the encoding of error signal using a constant set of hops for all pixels in an image Error signal is the difference between predicted value and actual pixel value This constant set of hops is derived using the analysis of some test images and this constant set of hops can be used for all images Block diagram is shown in Block Hops Encoder contains the image downsampler, pixel predictor and the hop selector and coder Image is downsampled using bilinear interpolation algorithm This same algorithm can be used for the interpolation on the receiver side Then pixel predictor predicts each pixel values Using these predicted values and constant hops array the most suitable hop is selected Hops Encoder differ fromLHE in terms of constant hop array, removal of perceptual relevance block and hops adaptation 53 54 Maria George et al / Procedia Technology 25 (2016) 52 – 59 HOP ARRAY INPUT IMAGE DOWN SAMPLER PIXEL PREDICTOR HOP SELECTOR BIT STREAM CODER Block Block Diagram of Hops Encoder 1.1 Downsampler Down sampler uses the bilinear interpolation algorithm Images are down sampled to achieve various bitrates We can’t use block based down sampling[1], since at reconstruction stage block is duplicated using the reduced pixel values and hence causes blocking effects, also reduces image visual quality In hops encoder, we are using a constant set of hops So a slight variation in index values at reconstruction stage hardly affects image quality So index duplication degrades reconstructed image Thus down sampler is moved as pre-processing 1.2 Predictor For a given pixel, predictor calculates the average of the top and left pixels.The prediction of each pixel values should be computed individually.As the predictions of the pixels depend on the previous ones, the first pixel of the image is not processed by the hops encoder Thus, first pixel value is included uncompressed in order to allow the decoder to process subsequentpixels 1.3 Hops Selector A constant set of hops are used for all images The size of the hops array affects the image quality and the compression ratio When the size of the hops reduces, then the image quality reduces and compression ratio increases Error signal is generated for each pixel value as the difference between the original pixel value and predicted pixel value Using the set, the hop value having value equal to negative the error is selected as the selected hop value In other words, the hop having value that minimizes the sum of each hop value and the error signal is selected Then the pixel value is replaced by the corresponding hop index Thus 0-255 varying pixel value is replaced by a range equal to the hoparray size 1.4 Index Encoder Using the hop index values, the probability of occurrence of each index can be calculated for the entire image This probability distribution and indices together used to encode the image Huffman encoding is used here From these we can calculate the total output bits needed to transmit to the receiver side and hence wecan easily calculate the compression ratio 1.5 Image Reconstruction The first pixel in the input image is transmitted as such to the receiver side Using this pixel value, we can calculate the predicted value for the second pixel Now, we have a predicted pixel value, received index for the pixel and an array of hops is available Thus we can easily reconstruct the second pixel value asthe sum of predicted value and the hop value corresponding to the received hop index.Then this pixel value is further used for the reconstruction of next pixel and thisprocedure is repeated for the entire image Maria George et al / Procedia Technology 25 (2016) 52 – 59 Relevance of constant set of hops The error signal is the difference signal between predicted value and the original pixel value Histogram analysis of error signal of four different images is given in Figure.1 Histogram of image Barbara Error Signal Histogram of image Lena Error Signal Histogram of image Pepper Error Signal Histogram of image Boat Error Signal Fig.1 Histogram of error signal 1.6 Properties of histogram for error signal Histogram is concentrated around zero error Positive errors are very low Negative error has higher frequencies Frequency of errors on both side of the error value 0, decreases rapidlyand for some images there are some fluctuations All images have the above explained properties and from the analysis, we canconclude that we can use a constant set of hops instead of calculating set of hopsfor each pixel Once this constant set of hops is created, this can be used for the compression of all images This same set is used at both encoder and decoder 55 56 Maria George et al / Procedia Technology 25 (2016) 52 – 59 1.7 Properties of constant hop array The constant set of hops will have the following set of properties: Array must contain the element zero Set contains values in between -4 to with unit interval difference Count of negative valued hops is small Majority of hop set is occupied by positive valued hops Size of hop set can be varied, and in accordingly, the image quality and bit rates varies Experimental Results The following experimental results have been obtained by applying Hops encoding algorithm.Hops encoder has been tested using two image databases: Kodak lossless true color image suite [7] and USC-SIPI image database [8] Errors are located at pixels with strong contrast with surrounding ones, at edges Errors are reduced as bit rate increases Even the very small features in images can be tracked using hops encoder Fig.2 Input Images (a)Lena; (b) Cameraman; (c) Couple; (d) Boat Reconstructed Images at 3bpp (e)Lena; (f) Cameraman; (g) Couple; (h) Boat 1.8 PSNR Evaluation Peak Signal to Noise Ratio is the ratio between the maximum possible power of a signal and the power of corrupting noise that affects the fidelity of its representation Average PSNR variation with variation in bitrates is shown in Figure Maria George et al / Procedia Technology 25 (2016) 52 – 59 Fig.3 Average PSNR values When comparing compression methods, PSNR is an approximation to human perception of reconstruction quality In Fig 3, PSNR values are higher than that of both JPEG andJPE2000 at lower bit rates Fig.4 Average FSIM values 57 58 Maria George et al / Procedia Technology 25 (2016) 52 – 59 1.9 FSIM Evaluation The computation of FSIM index consists of two stages In the first stage, the local similarity map is computed, and then in the second stage, we pool the similarity map into a single similarity score[13] FSIM is directly proportional to the image quality FSIM is a novel low-level feature based image quality assessment (IQA) metric The underlying principle of FSIM is that HVS perceives an image mainly based on its salient low-level features Specifically, two kinds of features, the phase congruency (PC) and the gradient magnitude (GM), are used in FSIM, and they represent complementary aspects of the image visual quality The PC value is also used to weight the contribution of each point to the overall similarity of two images [13].From our experimental results, Hops Encoder outperforms other methods in terms of FSIM also 1.10 BRISQUE Evaluation Blind/Reference-less Image Spatial QUality Evaluator (BRISQUE) utilizes an NSS model framework of locally normalized luminance coefficients and quantifies naturalness using the parameters of the model [12] Variation of average BRISQUE values with variation in bitrates is shown in Figure BRISQUE values are inversely proportional to image quality, since loss of naturalness is exploited here Curve of average BRISQUE also proves theresults obtained for PSNR and FSIM Fig.5 Average BRISQUE values Conclusion Hops Encoder is a lossy compression algorithm images using hops encoding The main advantages of the algorithm are its low computational complexity and its performance in terms of image quality, PSNR, FSIM, BRISQUE at low bitrates Hops Encoder proposes encoding of the error between pixel prediction and the actual Maria George et al / Procedia Technology 25 (2016) 52 – 59 value of such components This encoding is based on a constant set of most probable hops and is derived from the analysis of several images Constant set of hops can be used at encoder and decoder of all images Thus the overall encoding and decoding procedure is simple The values in between successive hops can be made to adaptive to its correct value as a future work Thus this method can be made as a lossy or near lossless compression Accumulation of error and also the time complexity is reduced, since constant array of hops is used instead of calculating hop set for each prediction The overall compression is achieved through down sampling, and replacement of pixel values by hop index values Thus Hops Encoder is an efficient algorithm for spatial domain image compression References [1] J J Garca Aranda et al., “Logarithmical hopping encoding: a low computational complexity algorithm for image compression”,IET,July2015,pp.643 -651 [2] Hassan, S.A., Hussain, M “Spatial domain lossless image data compressionmethod”, Int Conf on Information and Communication Technologies(ICICT), July 2011, pp 14 [3] Hasan, M., Nur, K., Noor, T.B., Shakur, H.B.: “Spatial domain lossless imagecompression technique by reducing overhead bits and run length coding”,Int J Comput Sci Inf Technol (IJCSIT), 2012, 3, (2), pp 36503654 [4] Mahmud Hasan, Kamruddin Md Nur,“A Lossless Image CompressionTechnique using Location Based Approach,IJSTR, Volume 1, Issue 2, March2012, 2006, pp 33713374 [5] Natarajan Somasundaram, and Y V Ramana Rao, “Modified LOG-EXPBased Image Compression Algorithm,IJCSNS , VOL.8 No.9, September2008 [6] Xiwen Zhao,Zhihai He,“ Lossless image compression using super spatialprediction of structural components,IEEE, 6-8 May 2009 [7] Kodak lossless true color image suite, http://www.r0k.us/graphics/kodak/,accessed January 2014 [8] USC-SIPI image database, http://sipi.usc.edu/database/database.php?volume=misc, accessed January 2014 [9] Zhang, C.N., Wu, X.: “A hybrid approach of wavelet packet and directionaldecomposition for imagecompression”, IEEE Conf on Electrical and ComputerEngineering, December 1999, vol 2, pp 755760 [10] Zhou, Z., Venetsanopoulos, A.N.: “Morphological methods in image coding.IEEE Int Conf on Acoustics, Speech, and Signal Process (ICASSP-92), SanFrancisco, CA, USA, March 1992, vol 3, pp 481484 [11] Popovici, I., Withers, W.D.: ‘ Locating edges and removing ringing artifactsin JPEG images by frequency-domain analysis”, IEEE Trans ImageProcess., 2007, 16, (5), pp 14701474 [12] Mittal, A., Moorthy, A.K., Bovik, A.C.: “No-reference image quality assessmentin the spatial domain”,IEEE Trans Image Process., 2012, 21, (12), pp.46954708 [13] Zhang, L, Zhang, D., Mou, X, Zhang, L, “FSIM: a feature similarity indexfor image quality assessment”, IEEE Trans Image Process., 2011, 20, (8),pp 23782386 [14] Huang, S.C, Chen, Chang H.C, “A novel image compression algorithm byusing Log-Exp transform” Proc 1999 IEEE Int Symp on Circuits and Systems(ISCAS99), July 1999, vol 4, pp 1720 [15] Dino Ho, Dagan Feng,“Dynamic Image Data Compression in Spatial andTemporal Domains: Theory and Algorithm”,IEEE Trans.Information Technologyin Biomedicine, VOL 1, NO 4, DECEMBER 1997 219 59 ... image visual quality In hops encoder, we are using a constant set of hops So a slight variation in index values at reconstruction stage hardly affects image quality So index duplication degrades... “Logarithmical hopping encoding: a low computational complexity algorithm for image compression? ??,IET,July2015,pp.643 -651 [2] Hassan, S .A. , Hussain, M ? ?Spatial domain lossless image data compressionmethod”,... performed After processing, the image is mapped again in to the spatial domain These transformations are complex In the spatial domain processing, there is no need of such costly transformations

Ngày đăng: 08/11/2022, 14:56