ISSN: Seema G Bhateja et al, International Journal of Computer Science & Communication Networks,Vol 1(3),

Similar documents
PERFORMANCE EVALUATION OFADVANCED LOSSLESS IMAGE COMPRESSION TECHNIQUES

Efficient Image Compression Technique using JPEG2000 with Adaptive Threshold

ISSN: (Online) Volume 3, Issue 4, April 2015 International Journal of Advance Research in Computer Science and Management Studies

Chapter 9 Image Compression Standards

A Modified Image Coder using HVS Characteristics

Multimedia Communications. Lossless Image Compression

A Lossless Image Compression Based On Hierarchical Prediction and Context Adaptive Coding

2. REVIEW OF LITERATURE

Compression and Image Formats

Images with (a) coding redundancy; (b) spatial redundancy; (c) irrelevant information

A Modified Image Template for FELICS Algorithm for Lossless Image Compression

Comparative Analysis of Lossless Image Compression techniques SPHIT, JPEG-LS and Data Folding

Module 6 STILL IMAGE COMPRESSION STANDARDS

Performance Evaluation of H.264 AVC Using CABAC Entropy Coding For Image Compression

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

Level-Successive Encoding for Digital Photography

ECE/OPTI533 Digital Image Processing class notes 288 Dr. Robert A. Schowengerdt 2003

MLP for Adaptive Postprocessing Block-Coded Images

Reversible Watermarking on Histogram Pixel Based Image Features

Practical Content-Adaptive Subsampling for Image and Video Compression

REVERSIBLE data hiding, or lossless data hiding, hides

AN ERROR LIMITED AREA EFFICIENT TRUNCATED MULTIPLIER FOR IMAGE COMPRESSION

Histogram Modification Based Reversible Data Hiding Using Neighbouring Pixel Differences

Fast Mode Decision using Global Disparity Vector for Multiview Video Coding

An Efficient DTBDM in VLSI for the Removal of Salt-and-Pepper Noise in Images Using Median filter

Tri-mode dual level 3-D image compression over medical MRI images

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor

Audio Signal Compression using DCT and LPC Techniques

A Review on Medical Image Compression Techniques

A new quad-tree segmented image compression scheme using histogram analysis and pattern matching

Direction-Adaptive Partitioned Block Transform for Color Image Coding

Module 8: Video Coding Basics Lecture 40: Need for video coding, Elements of information theory, Lossless coding. The Lecture Contains:

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

Image Processing Final Test

Image Processing. Adrien Treuille

Reduction of Interband Correlation for Landsat Image Compression

Hybrid Coding (JPEG) Image Color Transform Preparation

Comparative Analysis of WDR-ROI and ASWDR-ROI Image Compression Algorithm for a Grayscale Image

A SURVEY ON DICOM IMAGE COMPRESSION AND DECOMPRESSION TECHNIQUES

On the efficiency of luminance-based palette reordering of color-quantized images

Audio and Speech Compression Using DCT and DWT Techniques

Modified Skin Tone Image Hiding Algorithm for Steganographic Applications

Local prediction based reversible watermarking framework for digital videos

Comparision of different Image Resolution Enhancement techniques using wavelet transform

B.E, Electronics and Telecommunication, Vishwatmak Om Gurudev College of Engineering, Aghai, Maharashtra, India

Lossless Huffman coding image compression implementation in spatial domain by using advanced enhancement techniques

Wavelet-based image compression

Speech Coding in the Frequency Domain

Color Bayer CFA Image Compression using Adaptive Lifting Scheme and SPIHT with Huffman Coding Shreykumar G. Bhavsar 1 Viraj M.

UNEQUAL POWER ALLOCATION FOR JPEG TRANSMISSION OVER MIMO SYSTEMS. Muhammad F. Sabir, Robert W. Heath Jr. and Alan C. Bovik

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

A Hybrid Technique for Image Compression

Image Compression Technique Using Different Wavelet Function

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

Pooja Rani(M.tech) *, Sonal ** * M.Tech Student, ** Assistant Professor

Lossless Image Compression Techniques Comparative Study

HYBRID COMPRESSION FOR MEDICAL IMAGES USING SPIHT Preeti V. Joshi 1, C. D. Rawat 2 1 PG Student, 2 Associate Professor

REVIEW OF IMAGE COMPRESSION TECHNIQUES FOR MULTIMEDIA IMAGES

DEVELOPMENT OF LOSSY COMMPRESSION TECHNIQUE FOR IMAGE

Video Encoder Optimization for Efficient Video Analysis in Resource-limited Systems

Enhanced DCT Interpolation for better 2D Image Up-sampling

Comparing Multiresolution SVD with Other Methods for Image Compression

DELAY-POWER-RATE-DISTORTION MODEL FOR H.264 VIDEO CODING

Overview of Code Excited Linear Predictive Coder

MOST modern digital cameras allow the acquisition

Comparing CSI and PCA in Amalgamation with JPEG for Spectral Image Compression

Image Compression Using Haar Wavelet Transform

Introduction to Video Forgery Detection: Part I

Reversible Data Hiding in Encrypted color images by Reserving Room before Encryption with LSB Method

2.1. General Purpose Run Length Encoding Relative Encoding Tokanization or Pattern Substitution

A HIGH SPEED FIFO DESIGN USING ERROR REDUCED DATA COMPRESSION TECHNIQUE FOR IMAGE/VIDEO APPLICATIONS

Unit 1.1: Information representation

JPEG Image Transmission over Rayleigh Fading Channel with Unequal Error Protection

Improvements of Demosaicking and Compression for Single Sensor Digital Cameras

Satellite Image Compression using Discrete wavelet Transform

High-Capacity Reversible Data Hiding in Encrypted Images using MSB Prediction

A Reversible Data Hiding Scheme Based on Prediction Difference

Templates and Image Pyramids

A COMPARATIVE ANALYSIS OF DCT AND DWT BASED FOR IMAGE COMPRESSION ON FPGA

Lossless Image Watermarking for HDR Images Using Tone Mapping

[Srivastava* et al., 5(8): August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116

Frequency Domain Intra-Prediction Analysis and Processing for High Quality Video Coding

IMAGE COMPRESSSION AND ENCRYPTION USING SCAN PATTERN

EMBEDDED image coding receives great attention recently.

Speeding up Lossless Image Compression: Experimental Results on a Parallel Machine

Improvement of Satellite Images Resolution Based On DT-CWT

Color Image Compression using SPIHT Algorithm

Efficient Hardware Architecture for EBCOT in JPEG 2000 Using a Feedback Loop from the Rate Controller to the Bit-Plane Coder

Templates and Image Pyramids

Digital Image Compression Comparisons using DPCM and DPCM with LMS Algorithm

IMPLEMENTATION OF IMAGE COMPRESSION USING SYMLET AND BIORTHOGONAL WAVELET BASED ON JPEG2000

TO reduce cost, most digital cameras use a single image

# 12 ECE 253a Digital Image Processing Pamela Cosman 11/4/11. Introductory material for image compression

A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION

Sensors & Transducers 2015 by IFSA Publishing, S. L.

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Image Compression Supported By Encryption Using Unitary Transform

Improvement in DCT and DWT Image Compression Techniques Using Filters

Reversible Data Hiding in Encrypted Images based on MSB. Prediction and Huffman Coding

The Application of Selective Image Compression Techniques

Transcription:

A Similar Structure Block Prediction for Lossless Image Compression C.S.Rawat, Seema G.Bhateja, Dr. Sukadev Meher Ph.D Scholar NIT Rourkela, M.E. Scholar VESIT Chembur, Prof and Head of ECE Dept NIT Rourkela chandansrawat@gmail.com, seemagbhateja@gmail.com Abstract In image compression the main challenge is to efficiently encode and represent high frequency image structural components such as patterns, edges and textures. In this work, we develop an efficient image compression scheme based on similar structure block prediction. This so-called similar structure block prediction is motivated by motion prediction in video coding, attempting to find an optimal prediction of structure components within previously encoded image regions. 1. Introduction The key in efficient image compression is exploring the source correlation to find a compact representation of image data. Existing lossless image compression [1], [2] schemes attempt to predict image data using their spatial neighbourhood [1]. An image often contains a large number of structure components, such as edges, contours, and textures. These structure components may repeat themselves at various locations and scales. Thus there is a requirement to develop a more efficient image prediction scheme to exploit this type of image correlation. In digital mastering of movies and telemedicine [10] lossless compression methods are to be used. Vector quantization and sequential data compression [4] are image compression schemes wherein image prediction and coding efficiency were improved by relaxing the neighbourhood constraint. In sequential data compression, a substring of text is represented by a displacement/length reference to a substring previously seen in the text. Storer extended the sequential data compression to lossless image compression. This algorithm is however not competitive with the state-of-the-art such as contextbased adaptive lossless image coding (CALIC)[1] in terms of coding efficiency. During vector quantization (VQ) for lossless image compression, the input image is processed as vectors of image pixels. The encoder takes in a vector and finds the best match from its stored codebook. The address of the best match, the residual between the original vector and its best match are then transmitted to the decoder. The decoder uses the address to access an identical codebook, and obtains the reconstructed vector. Researchers have also extended the VQ method to visual pattern image coding (VPIC) and visual pattern vector quantization (VPVQ) [13]. The encoding performance of VQ-based methods largely depends on the codebook design. In these algorithms lower coding efficiency is observed, when compared with the state-of-the-art image coding schemes. Fractal image compression [4], the self-similarity between different parts of an image is used for image compression based on contractive mapping fixed point theorem. This focuses on contractive transform design, which makes it usually not suitable for lossless image compression. Moreover, it is extremely computationally expensive due to the search of optimum transformations. Even with high complexity, most fractal-based schemes are not competitive with the current state of the art [1]. The H.264 intra prediction [3] scheme, where there are ten possible prediction methods: DC prediction, directional extrapolations, and block matching. The block matching tries to find the best match of the current block by searching within a certain range of its neighbouring blocks. This neighbourhood constraint will limit the image compression efficiency since image structure components may repeat themselves at various locations. An efficient image compression scheme based on similar structure block prediction of structure units is presented in this paper. A natural image can be often separated into two types of image regions: structure and non-structure regions. Nonstructure regions, such as smooth image areas, can be efficiently represented with conventional spatial transforms, such as KLT (Karhunen Lòeve transform), DCT (discrete cosine transform) and DWT (discrete wavelet transform). However, structure regions, which consist of high frequency structural components and curvilinear features in images, such as edges, contours, and texture regions, cannot be efficiently represented by these linear spatial transforms. They are often hard to compress and consume a majority of the total encoding bit rate. 222

Similar structure block prediction breaks the neighborhood constraint, attempting to find an optimal prediction of structure components [5], [6] within the previously encoded image regions. It borrows the idea of motion prediction from video coding, which predicts a block in the current frame using its previous encoded frames. A classification scheme is used to partition an image into two types of regions: structure regions (SRs) and nonstructure regions (NSRs). Structure regions are encoded with super-spatial prediction while NSRs can be efficiently encoded with conventional image compression methods, such as CALIC. It is also important to point out that no codebook is required in this compression scheme, since the best matches of structure components are simply searched within encoded image regions. This paper is organized as follows: Section 2 expalins the algorithm used to predict the image using direct prediction method wherein an optimal prediction of structure components is done within the previously encoded image regions. Also gives an explanation for different modes that can be used for prediction of image blocks. Section 3 explains the residue encoding scheme used which helps in retrieving the lossless image at the decoder. Section 4 gives detail about compressing the nonstructural areas using CALIC. The block diagram of the complete algorithm is given in next section and at the end simulation results where the algorithm was tested. 2. Similar Structure Block Prediction A real world scene often consists of various physical objects, such as buildings, trees, grassland, etc. Each physical object is constructed from a large number of structure components based upon some predetermined object characteristics. These structure components may repeat themselves at various locations and scales Figure. 1. Therefore, it is important to exploit this type of data similarity and redundancy for efficient image coding. The Similar Structure Block Prediction borrows its idea from motion prediction [3] Figure.2. In motion prediction Fig. 2(b), we search an area in the reference frame to find the best match of the current block, based on some distortion metric. The chosen reference block becomes the predictor of the current block. The prediction residual and the motion vector are then encoded and sent to the decoder. In similar structure block prediction Fig.2(a), we search within the previously encoded image region to find the prediction of an image block. The reference block that results in the minimum block difference is selected as the optimal prediction. For simplicity, we use the sum of absolute difference (SAD) to measure the block difference. (a) Barbara image. (b) Four image blocks extracted from Barbara Figure. 1 Example for Similar Structure Block Redundancies Figure.2. (a) Similar structure block prediction. (b) Motion prediction in video coding. As in video coding [3], we need to encode the position information of the best matching reference block. To this end, we simply encode the horizontal and vertical offsets, between the coordinates of the current block and the reference block using context-adaptive arithmetic encoder. The size of the prediction unit is an important parameter in the similar structure block prediction. When the unit size is small, the amount of prediction and coding overhead will become very large. However, if we use a larger prediction unit, the overall prediction efficiency will decrease. In this work, we attempt to find a good tradeoff between these two and propose to perform spatial image prediction on block basis. 2.1. Image block classification A block-based image classification scheme is used here. The image is partitioned into blocks of 4x4. We then classify these blocks into two categories: structure and nonstructure blocks. Structure blocks are encoded with super-spatial prediction. Nonstructure blocks are encoded with conventional lossless image compression methods, such as CALIC. 2.2. Estimation of threshold The threshold is required while comparing the current block with the previous encoded region. This threshold value should be so decided that it will give best compression performance. 223

2.3. Prediction Modes Figure.3 Nine modes of prediction used In this scheme using 4 4 blocks, nine modes of prediction [10] are supported. A 4 4 block of pixels labeled a through p are predicted from a row of eight pixels labeled A through H above the current block and a column of four pixels labeled I through L to the left of the current block as well as a corner pixel labeled M, as shown in Figure 3. The nine modes of 4 4 blocks are mode 0 (vertical prediction), mode 1 (horizontal prediction), mode 2 (DC prediction), mode 3 (diagonal down/left prediction), mode 4 (diagonal down/right prediction), mode 5 (vertical-right prediction), mode 6 (horizontal-down prediction), mode 7 (vertical-left prediction), and mode 8 (horizontal-up prediction). Out of the nine modes the mode that results in minimum SAD is the chosen block. 2.4. CALIC The Context Adaptive Lossless Image Codec (CALIC) scheme, uses both context and prediction of the pixel values. CALIC employs a two-step (prediction / residual) approach. In the prediction step, CALIC [1] employs a simple new gradient based nonlinear prediction scheme called GAP (gradient-adjusted predictor) which adjusts prediction coefficients based on estimates of local gradients. Predictions then made context-sensitive and adaptive by modeling of prediction errors and feedback of the expected error conditioned on properly chosen modeling contexts. The modeling context is a combination of quantized local gradient and texture pattern, two features that are indicative of the error behavior. The net effect is a nonlinear, context-based, adaptive prediction scheme that can correct itself by learning from its own past mistakes under different contexts. CALIC [11] encodes and decodes images in raster scan order with a single pass through the image. The coding process uses prediction templates that involve only the previous two scan lines of coded pixels. Consequently, the encoding and decoding algorithms require a simple double buffer that holds two rows of pixels that immediately precede the current pixel, hence facilitating sequential build-up of the image. In the continuous-tone mode of CALIC [9] [12], the system has four major integrated components: - Prediction Context selection and quantization Context modeling of prediction errors Entropy coding of prediction errors CALIC is a spatial prediction based scheme, in which GAP is used for adaptive image prediction [1]. Here GAP prediction is performed on the original image and the prediction error for each block is computed. If the prediction error is larger than a given threshold, then it is considered as a structure block. Otherwise, it is classified as a nonstructure block. 3. Residue Encoding The implemented image compression scheme is purely lossless, the residues need to be transmitted along with the image. But this will increase the payload size and thus the compression will not be achieved successfully. The residues are encountered in two places: - The CALIC Algorithm and the SAD residues. Arithmetic coding [7], [8] schemes are to be used to transmit the residues to further reduce the size of the overhead data per block. Arithmetic coding is especially useful when dealing with sources with small alphabets, such as binary sources, and alphabets with highly skewed probabilities. It is also a very useful approach when, for various reasons, the modeling and coding aspects of lossless compression are to be kept separate. In arithmetic coding a unique identifier or tag is generated for the sequence to be encoded. This tag corresponds to a binary fraction, which becomes the binary code for the sequence. In order to distinguish a sequence of symbols from another sequence of it has to be tagged with a unique identifier. One possible set of tags for representing 224

sequences of symbols are the numbers in the unit interval (0, 1). Because the number of numbers in the unit interval is infinite, it should be possible to assign a unique tag to each distinct sequence of symbols. In order to do this we need a function that will map sequences of symbols into the unit interval. A function that maps random variables, and sequences of random variables, into the unit interval is the cumulative distribution function (cdf) of the random variable associated with the source. This is the function to be used in developing the arithmetic code. 4. The Complete Algorithm The complete algorithm used for this lossless image compression scheme can be categorized into two main parts as listed below. DATA LOSSY LOSSLESS RECONSTRUCTED ENCODED ARITHMETIC DECODER DECODED 4.1 Proposed Encoder The original image is subjected to Similar Structure Block Prediction Algorithm. This produces a Lossy Compressed Image and a set of residues. The residues are then encoded using Arithmetic Coding. The Lossy Compressed Image along with the encoded residues forms the compressed data as shown in Figure. 4. ORIGINAL IMAGE SIMILAR STRUCTURE BLOCK ARITHMETIC ENCODER Figure. 4 Proposed Encoder LOSSY IMAGE DATA Figure. 5 Proposed Decoder 5. Simulation Results All the simulations were done using MATLAB 7.11 (R2010b) on standard Images (Fig 6) size of 512x512 pixels like Lena, Baboon, Barbara, Goldhill and Peppers. The following metrics are used to describe the simulation tables. i) (i) Bit Rate: expressed in bits per pixel (bpp) is the number of bits of information stored per pixel of an image. ii) (ii) Prediction Gain: is defined as the ratio of the input signal variance to that of the prediction error, expressed in db. In table 1, Bit rate of Proposed algorithm is compared with CALIC for each test images and bit rate saving is calculated. From table we observe that bit rate saving is more for baboon which has more structural regions. The prediction performance is evaluated using prediction gain in db and when compared to CALIC, savings are more in Lena and Baboon. 4.2 Proposed Decoder The compressed data consisting of Lossy Compressed Image and encoded residues is then given as inputs to the decoder. The encoded residues are given to the Arithmetic Decoder to obtain the original set of residues which is then added to the Lossy Compressed Image to reconstruct the Final Image as shown in Figure. 5. Figure 6. Standard Images Lena, Barbara, Baboon, Goldhill, Peppers respectively used for Simulation 225

Table 1. Compression Performance comparison with CALIC Sr.No. Images CALIC Proposed Algorithm Bit Rate Saving 1 Lena 3.1509 3.0711-0.0798 2 Barbara 3.4804 2.3218-1.1586 3 Baboon 4.2813 2.9738-1.3075 4 Goldhill 3.4663 2.4866-0.9797 5 Peppers 3.3524 2.9746-0.3778 Table 2. Prediction Performance Comparison of Structure Regions with CALIC Sr.No. Images CALIC Structure Prediction Savings over CALIC(%) 1 Lena 21.51 4.02 81.311018 2 Barbara 14.84 5.8 60.916442 3 Baboon 10.41 3.05 70.701249 4 Goldhill 20.12 9.41 53.230616 5 Peppers 21.93 6.27 71.409029 6. Conclusion In this endeavor a simple yet efficient lossless image compression algorithm based on structure prediction has been successfully designed and tested. It is motivated by motion prediction in video coding, attempting to find an optimal prediction of a structure components within previously encoded image regions. Taking CALIC as the base code, the image was classified into various regions and they were encoded accordingly. The extensive experimental results demonstrate that the proposed scheme is very efficient in lossless image compression, especially for images with significant structure components. [3] T. Wiegand, G. J. Sullivan, G. Bjntegaard, and A. Luthra, Overview of the H.264/AVC video coding standard, IEEE Trans. Circuits Syst. Video Technol., vol. 13, no. 7, Jun. 2003. [4] B. Wohlberg and G. de Jager, A review of the fractal image coding literature, IEEE Trans. Image Process., vol. 8, no. 12, pp. 1716 1729, Dec. 1999. [5] Xiwen Zhao and Zhihai He, Local Structure Learning and Prediction for Efficient Lossless Image Compression, 2010 IEEE, pp. 1286-1289. [6] Xiwen OwenZhao, and Zhihai HenryHe, Lossless Image Compression Using Super-Spatial Structure Prediction, IEEE SIGNAL PROCESSING LETTERS, VOL. 17, NO. 4, APRIL 2010, pp. 383-386. [7] David Salomon, Data Compression: A Complete Reference,3rd Edition, Springer, 2007. [8] Khalid Sayood, Introduction to Data compression, 3rd Edition, Elseiver Publications, 2006. [9] X. Wu, Lossless compression of continuous-tone images via context selection, quantization, and modeling, IEEE Trans. Image Processing,Vol.6, No.5 (pp.656-664) 1997. [10] Still Image and Video Compression with Matlab, by K.S. Thyagarajan, a John Wiley & Sons, Inc, Publication. [11] Hao Hu, A Study of CALIC, A paper submitted to the Computer Science & Electrical Engineering Department at University of Maryland Baltimore County, December 2004. [12] Grzegorz Ulacha, and Ryszard Stasiński, Effective Context Lossless Image Coding Approach Based on Adaptive Prediction, World Academy of Science, Engineering and Technology, 2009. [13] F. Wu and X. Sun, Image compression by visual pattern vector quantization (VPVQ), in Proc. IEEE Data Compression Conf. (DCC 2008), pp. 123 131. [14] Mauro Barni, Document and Image Compression, Taylor and Francis, 2006. [15] Rafael Gonzalez & Richard Woods, Digital Image Processing using MATLAB, Tata McGraw Hill, 2010. 7. References [1] X. Wu and N. Memon, Context-based, adaptive, lossless image coding, IEEE Trans. Commun., vol. 45, no. 4, pp. 437 444, Apr. 1997. [2] M. J. Weinberger, G. Seroussi, and G. Sapiro, The LOCO-I lossless image compression algorithm: Principles and standardization into JPEG-LS, IEEE Trans. Image Process., vol. 9, no. 8, pp. 1309 1324, Aug. 2000. 226