SlideShare a Scribd company logo
IOSR Journal of Computer Engineering (IOSR-JCE)
e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 2, Ver. III (Mar – Apr. 2015), PP 67-70
www.iosrjournals.org
DOI: 10.9790/0661-17236770 www.iosrjournals.org 67 | Page
Lossless Image Compression Using Data Folding Followed By
Arithmetic Coding
Richa Goyal1
, Sourav Garg2
1,2,
(CSE,ACET/ PTU, Jalandhar India)
Abstract : The paper presents a lossless image compression technique using the hybridization of two different
entropy coding techniques. Initially data folding technique has been applied to the image. A row folding is
applied on the image matrix followed by a column folding. Multiple iterations of this process is applied on the
image. After completing the data folding process another entropy coding technique known as arithmetic coding
has been applied to the resultant image to get better results.
Keywords: Lossless image compression, data folding, arithmetic coding, compression ratio, bits per pixel.
I. Introduction
Compression can be defined as reducing the size of data so that the amount of space required to store
the data becomes less and it takes less time to transmit the data. With the help of compression it becomes easy to
store large files. These files may be data files, images, videos, audios and other multimedia files. For
transmitting a data, compression can be performed either on just the data content or on the entire transmission
unit. There are different types of data content on which compression can be applied.
Image compression can be referred to as reducing the size of the image so as it requires less space for
storage and is easily transmitted. This can be done by reducing the memory size required to store each pixel.
There are several algorithms to perform image compression. These algorithms can be categorized as lossy and
lossless compression techniques. Lossy compression causes loss of information after compression. When the
compressed data is decomposed to its original version then both are not same but close. It is an irreversible
process. In lossless compression the compressed data can be easily decomposed to its original version. The loss
of data is very less. It is a reversible process.
Image compression techniques reduce the number of bits required to represent an image by taking
advantage of these redundancies. An inverse process called decompression (decoding) is applied to the
compressed data to get there constructed image. The objective of compression is to reduce the number of bits as
much as possible, while keeping the resolution and the visual quality of the reconstructed image as close to the
original image as possible. Image compression systems are composed of two distinct structural blocks: an
encoder and a decoder.
II. Compression Techniques
A. Quantization Technique
Quantization refers to the process of converting the continuous pixel values (such as decimal values) to
discrete values (such as integers). The quantizer performs a lossy image compression. The input to a quantizer is
the original data, and the output is always one among a finite number of levels. The quantizer is a function
whose set of output values are discrete, and usually finite. This is a process of approximation, and a good
quantizer is one which represents the original signal with minimum loss or distortion. The different types of
quantization are–
 Scalar Quantization
 Vector Quantization.[7]
B. Entropy Coding Technique
After the quantization has been applied to the image, a symbol encoding technique is applied to the
image. Entropy is the amount of information present in the data, and an entropy coder encodes the given set of
symbols with the minimum number of bits required to represent them.[7] Entropy Coding techniques mostly
provide lossless compression. Some of the entropy coding algorithms are-
 Huffman Coding
 Arithmetic Coding
 Run Length Coding
 Data Folding
Lossless Image Compression using Data Folding followed by Arithmetic Coding
DOI: 10.9790/0661-17236770 www.iosrjournals.org 68 | Page
C. Optimization Technique
The optimization techniques can effectively reduce the encoding time while retaining the quality of the
retrieved. Various optimization techniques are listed below:
 Genetic Algorithm
 Particle Swarm Optimization
 Ant Colony Optimization
III. Proposed Technique
Hybridization of two lossless image compression techniques has been used to obtain better results.
Data Folding technique has been applied to the image followed by another entropy coding technique i.e.
Arithmetic Coding. These two techniques have been individually used earlier to provide lossless image
compression. But using these two techniques in one algorithm are supposed to provide better Compression Ratio
(CR) and lesser Bits Per Pixel (BPP). Though none of the technique can be considered as completely lossless
but using these techniques the loss has been expected to be minimum.
A. Data Folding
Data folding is a very effective algorithm that can be used for lossless image compression. The simple
method applied on the image is to subtract the even pixels from odd pixels and the store this difference in a
separate buffer. This one step is known as folding. Then further folding is applied to pixel values stored in the
separate buffer. In this way, a number of iterations have been applied to the data. The process of data folding
consists of two steps:
 Row Folding
 Column Folding
Row folding is the process of folding the rows of the image matrix. Even row is subtracted from the
odd row. Then the resultant odd row is stored in a separate buffer. Then column folding is applied on the data
stored in this buffer. Column folding is the process of folding the columns of the image matrix. After making a
row folding even column is subtracted from the odd column. Then the resultant odd column is stored in a
separate buffer. Then further iterations of row folding followed by column folding are applied on the data stored
in this buffer.
Fig.1 Image Matrix
Fig.2 Image after 1st
Row Folding
Fig.3 Image after 1st
Column Folding
B. Arithmetic Coding
After applying the technique of data folding, an entropy coding technique has been used. This entropy
coding technique is known as arithmetic coding. In this approach, the entire source symbol is assigned a single
arithmetic code. Initially all the symbols are defined inside a fixed window size of (0, 0.5) and arranged
according to their probability distribution. All the pixels lying within the interval are used to represent the image
and others are removed. Then the window size is narrowed and again the symbols are arranged according to
Lossless Image Compression using Data Folding followed by Arithmetic Coding
DOI: 10.9790/0661-17236770 www.iosrjournals.org 69 | Page
their probability distribution. All the pixels lying within this narrowed range are used to represent the image and
others are removed. This process is being repeated for 6 times.
Fig.4 Flow Chart for Compression Procedure
IV. Results
The proposed technique has been applied to the following database:
Cmp5 text.jpg Leena.jpg Baboon.jpg Boat.jpg Elaine.jpg
Pod rear draw.jpg Cathedral.jpg Flower.jpg Temple.jpg Deer.jpg
Lossless Image Compression using Data Folding followed by Arithmetic Coding
DOI: 10.9790/0661-17236770 www.iosrjournals.org 70 | Page
Fireworks.jpg Leaves.jpg
Fig.5 Database being used
After applying the proposed technique on the above database following observations has been
concluded on the basis of bits per pixel (BPP):
Image Wavelet Huffman Coding Data Folding Proposed Technique
Cmp5 txt 256X256 2.5 2.13 6.31 1.11
Baboon 512X512 1.28 1.5 7.22 1
Boat 512X512 1.003 0.946 5.84 0.638
Elaine 512X512 3.986 3.84 5.86 3.07
Pod rear draw 512X512 0.584 0.627 2.28 0.229
Cathedral 1024X1024 0.618 0.796 5 0.534
Flower 1024X1024 0.581 0.594 2.95 0.326
Temple 1024X1024 0.233 0.328 2.66 0.198
Deer 2048X2048 0.249 0.231 4.47 0.203
Fireworks 2048X2048 0.308 0.56 2.4 .287
Leaves 2048X2048 0.504 0.516 5.78 0.426
Table 1 Results based on BPP
V. Conclusion
We had analysis the different compression techniques and concluded that these techniques are either
lossy or lossless. After this analysis we have proposed a lossless image compression technique known as data
folding followed by arithmetic coding. In this technique we have performed the hybridization of these two
techniques. First row folding followed by column folding has been performed, after that arithmetic coding has
been applied on the resultant image. This technique has been applied on different images of different
dimensions. This technique gives better results in terms of Compression Ratio and Bits Per Pixel. But this
technique has the problem of high computational time.
References
Journal Papers:
[1]. Suresh Yerva, Smita Nair, Krishnan Kutty “Lossless Image Compression based on Data Folding” IEEE-International Conference on
Recent Trends in Information Technology, ICRTIT 2011 MIT, Anna University, Chennai. June 3-5, 2011
[2]. Sonal, Dinesh Kumar Department of Computer Science & Engineering Guru Jhambheswar University of Science and Technology,
Hisar “A STUDY OF VARIOUS IMAGE COMPRESSION TECHNIQUES”
[3]. V. Singh* VNR Vignana Jyothi Institute of Technology, Hyderabad, India “Recent Patents on Image Compression – A Survey”
[4]. Asadollah Shahbahrami, Ramin Bahrampour, Mobin Sabbaghi Rostami, Mostafa Ayoubi Mobarhan, Department of Computer
Engineering, Faculty of Engineering, University of Guilan, Rasht, Iran “ Evaluation of Huffman and Arithmetic Algorithms for
Multimedia Compression Standards”
[5]. K.Uma, **P.Geetha palanisamy***P.Geetha poornachandran “Comparison of Image Compression using GA, ACO and PSO
techniques” IEEE-International Conference on Recent Trends in Information Technology, ICRTIT 2011 978-1-4577-0590-8/11
©2011 IEEE MIT, Anna University, Chennai. June 3-5, 2011
[6]. Loganathan R and Y.S.Kumaraswamy “An Improved Active Contour Medical Image Compression Technique with Lossless
Region of Interest”
[7]. G.M.Padmaja, P.Nirupama “ Analysis of Various Image Compression Techniques” ARPN Journal of Science and Technology
VOL. 2, NO. 4, May 2012
[8]. “Basic Image compression” by Gleb V. Tcheslavski
[9]. B.C. Vemuri, S. Sahni, F.Chen, C. Kapoor, C. Leonard “ Lossless Image Compression”.
[10]. Jagadish H. Pujar, Lohit M. Kadlaskar “A New Lossless Method Of Image Compression And Decompression Using Huffman
Coding Techniques” Journal of Theoretical and Applied Information Technology © 2005 - 2010 JATIT
[11]. Gaurav Vijayvargiya Dr. Sanjay Silakari Dr.Rajeev Pandey “A Survey: Various Techniques of Image Compression” (IJCSIS)
International Journal of Computer Science and Information Security, Vol. 11, No. 10, October 2013
[12]. Rajesh K. Yadav, S.P. Gangwar and Harsh V. Singh “Study and analysis of wavelet based image compression techniques”
International Journal of Engineering, Science and Technology Vol. 4, No. 1, 2012, pp. 1-7
[13]. Sindhu M, Rajkamal R “Images and Its Compression Techniques – A Review” International Journal of Recent Trends in
Engineering, Vol 2, No. 4, November 2009
[14]. Paul G. Howard and Jeffery Scott Vitter “Arithmetic Coding for Data Compresion”
[15]. Glen G. Langdon “An Introduction to Arithmetic Coding”
Books:
[16] Gonzales Rafeil C., Woods “ Digital Image Processing” Edition third, 416-440, 564-626.

More Related Content

What's hot (17)

PDF
Blending of Images Using Discrete Wavelet Transform
rahulmonikasharma
 
PDF
D018112429
IOSR Journals
 
PDF
PARALLEL GENERATION OF IMAGE LAYERS CONSTRUCTED BY EDGE DETECTION USING MESSA...
ijcsit
 
PDF
Implementation of Object Tracking for Real Time Video
IDES Editor
 
PDF
A novel embedded hybrid thinning algorithm for
prjpublications
 
PDF
Image processing based girth monitoring and recording system for rubber plant...
sipij
 
PDF
PC-based Vision System for Operating Parameter Identification on a CNC Machine
IDES Editor
 
PDF
Analysis and Detection of Image Forgery Methodologies
ijsrd.com
 
PPT
Image mosaicing
Saddam Ahmed
 
PDF
41 9147 quantization encoding algorithm based edit tyas
IAESIJEECS
 
PDF
Performance evaluation of Compressed images by using Gradient based optimizat...
IRJET Journal
 
PDF
F045033337
IJERA Editor
 
PDF
Paper id 21201419
IJRAT
 
PDF
Keyframe Selection of Frame Similarity to Generate Scene Segmentation Based o...
IJECEIAES
 
PDF
A review on image processing
Alexander Decker
 
PDF
Design of Gabor Filter for Noise Reduction in Betel Vine leaves Disease Segme...
IOSR Journals
 
PDF
Application of gaussian filter with principal component analysis
IAEME Publication
 
Blending of Images Using Discrete Wavelet Transform
rahulmonikasharma
 
D018112429
IOSR Journals
 
PARALLEL GENERATION OF IMAGE LAYERS CONSTRUCTED BY EDGE DETECTION USING MESSA...
ijcsit
 
Implementation of Object Tracking for Real Time Video
IDES Editor
 
A novel embedded hybrid thinning algorithm for
prjpublications
 
Image processing based girth monitoring and recording system for rubber plant...
sipij
 
PC-based Vision System for Operating Parameter Identification on a CNC Machine
IDES Editor
 
Analysis and Detection of Image Forgery Methodologies
ijsrd.com
 
Image mosaicing
Saddam Ahmed
 
41 9147 quantization encoding algorithm based edit tyas
IAESIJEECS
 
Performance evaluation of Compressed images by using Gradient based optimizat...
IRJET Journal
 
F045033337
IJERA Editor
 
Paper id 21201419
IJRAT
 
Keyframe Selection of Frame Similarity to Generate Scene Segmentation Based o...
IJECEIAES
 
A review on image processing
Alexander Decker
 
Design of Gabor Filter for Noise Reduction in Betel Vine leaves Disease Segme...
IOSR Journals
 
Application of gaussian filter with principal component analysis
IAEME Publication
 

Viewers also liked (7)

PDF
IFA Tax Conference -1
Sunil Agarwal
 
PDF
Tax World Reacts - www.taxsutra.com-1
Sunil Agarwal
 
PDF
Operational & Maintenana Certificate of Generator By Cater Pillar
Usman Idrees
 
PPTX
Presentación1
yandricarvajal
 
PPTX
『Web制作現場の活用ナレッジを ライトニングトークします!』…の前に、 少しだけWBSとスケジュールに関する“小言”<公開用・微調整済み>
Ayako Togaeri
 
PPTX
PMBOK®ガイド概説(「Webプロジェクトマネジメント標準」読書会 …の前に、少しだけPMBOK®について。)
Ayako Togaeri
 
PPTX
Hpa international plan pemasaran
Agus Rahmad
 
IFA Tax Conference -1
Sunil Agarwal
 
Tax World Reacts - www.taxsutra.com-1
Sunil Agarwal
 
Operational & Maintenana Certificate of Generator By Cater Pillar
Usman Idrees
 
Presentación1
yandricarvajal
 
『Web制作現場の活用ナレッジを ライトニングトークします!』…の前に、 少しだけWBSとスケジュールに関する“小言”<公開用・微調整済み>
Ayako Togaeri
 
PMBOK®ガイド概説(「Webプロジェクトマネジメント標準」読書会 …の前に、少しだけPMBOK®について。)
Ayako Togaeri
 
Hpa international plan pemasaran
Agus Rahmad
 
Ad

Similar to Lossless Image Compression Using Data Folding Followed By Arithmetic Coding (20)

PDF
A Critical Review of Well Known Method For Image Compression
Editor IJMTER
 
PDF
Lossless Image Compression Techniques Comparative Study
IRJET Journal
 
PDF
A Study of Image Compression Methods
IOSR Journals
 
DOC
Image compression
Shiva Krishna Chandra Shekar
 
PDF
I1802035153
IOSR Journals
 
PDF
Affable Compression through Lossless Column-Oriented Huffman Coding Technique
IOSR Journals
 
PDF
B070306010
IJERD Editor
 
PDF
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
ijcga
 
PDF
PIXEL SIZE REDUCTION LOSS-LESS IMAGE COMPRESSION ALGORITHM
ijcsit
 
PDF
first_assignment_Report
Anıl Ulaş KOÇAK
 
PDF
Symbols Frequency based Image Coding for Compression
IJCSIS Research Publications
 
PDF
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
Nancy Ideker
 
PDF
Blank Background Image Lossless Compression Technique
CSCJournals
 
PPTX
image compression Tech. 31.pptx
BharatiPatelPhDStude
 
PPT
notes_Image Compression.ppt
HarisMasood20
 
PDF
Lossless image compression.(1)
MohnishSatidasani
 
PDF
Design of Image Compression Algorithm using MATLAB
IJEEE
 
PDF
Jv2517361741
IJERA Editor
 
PDF
Jv2517361741
IJERA Editor
 
A Critical Review of Well Known Method For Image Compression
Editor IJMTER
 
Lossless Image Compression Techniques Comparative Study
IRJET Journal
 
A Study of Image Compression Methods
IOSR Journals
 
Image compression
Shiva Krishna Chandra Shekar
 
I1802035153
IOSR Journals
 
Affable Compression through Lossless Column-Oriented Huffman Coding Technique
IOSR Journals
 
B070306010
IJERD Editor
 
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
ijcga
 
PIXEL SIZE REDUCTION LOSS-LESS IMAGE COMPRESSION ALGORITHM
ijcsit
 
first_assignment_Report
Anıl Ulaş KOÇAK
 
Symbols Frequency based Image Coding for Compression
IJCSIS Research Publications
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
Nancy Ideker
 
Blank Background Image Lossless Compression Technique
CSCJournals
 
image compression Tech. 31.pptx
BharatiPatelPhDStude
 
notes_Image Compression.ppt
HarisMasood20
 
Lossless image compression.(1)
MohnishSatidasani
 
Design of Image Compression Algorithm using MATLAB
IJEEE
 
Jv2517361741
IJERA Editor
 
Jv2517361741
IJERA Editor
 
Ad

More from iosrjce (20)

PDF
An Examination of Effectuation Dimension as Financing Practice of Small and M...
iosrjce
 
PDF
Does Goods and Services Tax (GST) Leads to Indian Economic Development?
iosrjce
 
PDF
Childhood Factors that influence success in later life
iosrjce
 
PDF
Emotional Intelligence and Work Performance Relationship: A Study on Sales Pe...
iosrjce
 
PDF
Customer’s Acceptance of Internet Banking in Dubai
iosrjce
 
PDF
A Study of Employee Satisfaction relating to Job Security & Working Hours amo...
iosrjce
 
PDF
Consumer Perspectives on Brand Preference: A Choice Based Model Approach
iosrjce
 
PDF
Student`S Approach towards Social Network Sites
iosrjce
 
PDF
Broadcast Management in Nigeria: The systems approach as an imperative
iosrjce
 
PDF
A Study on Retailer’s Perception on Soya Products with Special Reference to T...
iosrjce
 
PDF
A Study Factors Influence on Organisation Citizenship Behaviour in Corporate ...
iosrjce
 
PDF
Consumers’ Behaviour on Sony Xperia: A Case Study on Bangladesh
iosrjce
 
PDF
Design of a Balanced Scorecard on Nonprofit Organizations (Study on Yayasan P...
iosrjce
 
PDF
Public Sector Reforms and Outsourcing Services in Nigeria: An Empirical Evalu...
iosrjce
 
PDF
Media Innovations and its Impact on Brand awareness & Consideration
iosrjce
 
PDF
Customer experience in supermarkets and hypermarkets – A comparative study
iosrjce
 
PDF
Social Media and Small Businesses: A Combinational Strategic Approach under t...
iosrjce
 
PDF
Secretarial Performance and the Gender Question (A Study of Selected Tertiary...
iosrjce
 
PDF
Implementation of Quality Management principles at Zimbabwe Open University (...
iosrjce
 
PDF
Organizational Conflicts Management In Selected Organizaions In Lagos State, ...
iosrjce
 
An Examination of Effectuation Dimension as Financing Practice of Small and M...
iosrjce
 
Does Goods and Services Tax (GST) Leads to Indian Economic Development?
iosrjce
 
Childhood Factors that influence success in later life
iosrjce
 
Emotional Intelligence and Work Performance Relationship: A Study on Sales Pe...
iosrjce
 
Customer’s Acceptance of Internet Banking in Dubai
iosrjce
 
A Study of Employee Satisfaction relating to Job Security & Working Hours amo...
iosrjce
 
Consumer Perspectives on Brand Preference: A Choice Based Model Approach
iosrjce
 
Student`S Approach towards Social Network Sites
iosrjce
 
Broadcast Management in Nigeria: The systems approach as an imperative
iosrjce
 
A Study on Retailer’s Perception on Soya Products with Special Reference to T...
iosrjce
 
A Study Factors Influence on Organisation Citizenship Behaviour in Corporate ...
iosrjce
 
Consumers’ Behaviour on Sony Xperia: A Case Study on Bangladesh
iosrjce
 
Design of a Balanced Scorecard on Nonprofit Organizations (Study on Yayasan P...
iosrjce
 
Public Sector Reforms and Outsourcing Services in Nigeria: An Empirical Evalu...
iosrjce
 
Media Innovations and its Impact on Brand awareness & Consideration
iosrjce
 
Customer experience in supermarkets and hypermarkets – A comparative study
iosrjce
 
Social Media and Small Businesses: A Combinational Strategic Approach under t...
iosrjce
 
Secretarial Performance and the Gender Question (A Study of Selected Tertiary...
iosrjce
 
Implementation of Quality Management principles at Zimbabwe Open University (...
iosrjce
 
Organizational Conflicts Management In Selected Organizaions In Lagos State, ...
iosrjce
 

Recently uploaded (20)

PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
PPTX
CST413 KTU S7 CSE Machine Learning Introduction Parameter Estimation MLE MAP ...
resming1
 
PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
PPTX
Mobile database systems 20254545645.pptx
herosh1968
 
PDF
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
 
PDF
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
PDF
lesson4-occupationalsafetyandhealthohsstandards-240812020130-1a7246d0.pdf
arvingallosa3
 
PPTX
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
PPTX
WHO And BIS std- for water quality .pptx
dhanashree78
 
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
PPTX
Introduction to Python Programming Language
merlinjohnsy
 
PPTX
Functions in Python Programming Language
BeulahS2
 
PPTX
Computer network Computer network Computer network Computer network
Shrikant317689
 
PDF
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
PPTX
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
PDF
PRIZ Academy - Process functional modelling
PRIZ Guru
 
PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
PPTX
CST413 KTU S7 CSE Machine Learning Neural Networks and Support Vector Machine...
resming1
 
PPTX
Introduction to File Transfer Protocol with commands in FTP
BeulahS2
 
PDF
Validating a Citizen Observatories enabling Platform by completing a Citizen ...
Diego López-de-Ipiña González-de-Artaza
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
CST413 KTU S7 CSE Machine Learning Introduction Parameter Estimation MLE MAP ...
resming1
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
Mobile database systems 20254545645.pptx
herosh1968
 
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
lesson4-occupationalsafetyandhealthohsstandards-240812020130-1a7246d0.pdf
arvingallosa3
 
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
WHO And BIS std- for water quality .pptx
dhanashree78
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
Introduction to Python Programming Language
merlinjohnsy
 
Functions in Python Programming Language
BeulahS2
 
Computer network Computer network Computer network Computer network
Shrikant317689
 
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
PRIZ Academy - Process functional modelling
PRIZ Guru
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
CST413 KTU S7 CSE Machine Learning Neural Networks and Support Vector Machine...
resming1
 
Introduction to File Transfer Protocol with commands in FTP
BeulahS2
 
Validating a Citizen Observatories enabling Platform by completing a Citizen ...
Diego López-de-Ipiña González-de-Artaza
 

Lossless Image Compression Using Data Folding Followed By Arithmetic Coding

  • 1. IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 2, Ver. III (Mar – Apr. 2015), PP 67-70 www.iosrjournals.org DOI: 10.9790/0661-17236770 www.iosrjournals.org 67 | Page Lossless Image Compression Using Data Folding Followed By Arithmetic Coding Richa Goyal1 , Sourav Garg2 1,2, (CSE,ACET/ PTU, Jalandhar India) Abstract : The paper presents a lossless image compression technique using the hybridization of two different entropy coding techniques. Initially data folding technique has been applied to the image. A row folding is applied on the image matrix followed by a column folding. Multiple iterations of this process is applied on the image. After completing the data folding process another entropy coding technique known as arithmetic coding has been applied to the resultant image to get better results. Keywords: Lossless image compression, data folding, arithmetic coding, compression ratio, bits per pixel. I. Introduction Compression can be defined as reducing the size of data so that the amount of space required to store the data becomes less and it takes less time to transmit the data. With the help of compression it becomes easy to store large files. These files may be data files, images, videos, audios and other multimedia files. For transmitting a data, compression can be performed either on just the data content or on the entire transmission unit. There are different types of data content on which compression can be applied. Image compression can be referred to as reducing the size of the image so as it requires less space for storage and is easily transmitted. This can be done by reducing the memory size required to store each pixel. There are several algorithms to perform image compression. These algorithms can be categorized as lossy and lossless compression techniques. Lossy compression causes loss of information after compression. When the compressed data is decomposed to its original version then both are not same but close. It is an irreversible process. In lossless compression the compressed data can be easily decomposed to its original version. The loss of data is very less. It is a reversible process. Image compression techniques reduce the number of bits required to represent an image by taking advantage of these redundancies. An inverse process called decompression (decoding) is applied to the compressed data to get there constructed image. The objective of compression is to reduce the number of bits as much as possible, while keeping the resolution and the visual quality of the reconstructed image as close to the original image as possible. Image compression systems are composed of two distinct structural blocks: an encoder and a decoder. II. Compression Techniques A. Quantization Technique Quantization refers to the process of converting the continuous pixel values (such as decimal values) to discrete values (such as integers). The quantizer performs a lossy image compression. The input to a quantizer is the original data, and the output is always one among a finite number of levels. The quantizer is a function whose set of output values are discrete, and usually finite. This is a process of approximation, and a good quantizer is one which represents the original signal with minimum loss or distortion. The different types of quantization are–  Scalar Quantization  Vector Quantization.[7] B. Entropy Coding Technique After the quantization has been applied to the image, a symbol encoding technique is applied to the image. Entropy is the amount of information present in the data, and an entropy coder encodes the given set of symbols with the minimum number of bits required to represent them.[7] Entropy Coding techniques mostly provide lossless compression. Some of the entropy coding algorithms are-  Huffman Coding  Arithmetic Coding  Run Length Coding  Data Folding
  • 2. Lossless Image Compression using Data Folding followed by Arithmetic Coding DOI: 10.9790/0661-17236770 www.iosrjournals.org 68 | Page C. Optimization Technique The optimization techniques can effectively reduce the encoding time while retaining the quality of the retrieved. Various optimization techniques are listed below:  Genetic Algorithm  Particle Swarm Optimization  Ant Colony Optimization III. Proposed Technique Hybridization of two lossless image compression techniques has been used to obtain better results. Data Folding technique has been applied to the image followed by another entropy coding technique i.e. Arithmetic Coding. These two techniques have been individually used earlier to provide lossless image compression. But using these two techniques in one algorithm are supposed to provide better Compression Ratio (CR) and lesser Bits Per Pixel (BPP). Though none of the technique can be considered as completely lossless but using these techniques the loss has been expected to be minimum. A. Data Folding Data folding is a very effective algorithm that can be used for lossless image compression. The simple method applied on the image is to subtract the even pixels from odd pixels and the store this difference in a separate buffer. This one step is known as folding. Then further folding is applied to pixel values stored in the separate buffer. In this way, a number of iterations have been applied to the data. The process of data folding consists of two steps:  Row Folding  Column Folding Row folding is the process of folding the rows of the image matrix. Even row is subtracted from the odd row. Then the resultant odd row is stored in a separate buffer. Then column folding is applied on the data stored in this buffer. Column folding is the process of folding the columns of the image matrix. After making a row folding even column is subtracted from the odd column. Then the resultant odd column is stored in a separate buffer. Then further iterations of row folding followed by column folding are applied on the data stored in this buffer. Fig.1 Image Matrix Fig.2 Image after 1st Row Folding Fig.3 Image after 1st Column Folding B. Arithmetic Coding After applying the technique of data folding, an entropy coding technique has been used. This entropy coding technique is known as arithmetic coding. In this approach, the entire source symbol is assigned a single arithmetic code. Initially all the symbols are defined inside a fixed window size of (0, 0.5) and arranged according to their probability distribution. All the pixels lying within the interval are used to represent the image and others are removed. Then the window size is narrowed and again the symbols are arranged according to
  • 3. Lossless Image Compression using Data Folding followed by Arithmetic Coding DOI: 10.9790/0661-17236770 www.iosrjournals.org 69 | Page their probability distribution. All the pixels lying within this narrowed range are used to represent the image and others are removed. This process is being repeated for 6 times. Fig.4 Flow Chart for Compression Procedure IV. Results The proposed technique has been applied to the following database: Cmp5 text.jpg Leena.jpg Baboon.jpg Boat.jpg Elaine.jpg Pod rear draw.jpg Cathedral.jpg Flower.jpg Temple.jpg Deer.jpg
  • 4. Lossless Image Compression using Data Folding followed by Arithmetic Coding DOI: 10.9790/0661-17236770 www.iosrjournals.org 70 | Page Fireworks.jpg Leaves.jpg Fig.5 Database being used After applying the proposed technique on the above database following observations has been concluded on the basis of bits per pixel (BPP): Image Wavelet Huffman Coding Data Folding Proposed Technique Cmp5 txt 256X256 2.5 2.13 6.31 1.11 Baboon 512X512 1.28 1.5 7.22 1 Boat 512X512 1.003 0.946 5.84 0.638 Elaine 512X512 3.986 3.84 5.86 3.07 Pod rear draw 512X512 0.584 0.627 2.28 0.229 Cathedral 1024X1024 0.618 0.796 5 0.534 Flower 1024X1024 0.581 0.594 2.95 0.326 Temple 1024X1024 0.233 0.328 2.66 0.198 Deer 2048X2048 0.249 0.231 4.47 0.203 Fireworks 2048X2048 0.308 0.56 2.4 .287 Leaves 2048X2048 0.504 0.516 5.78 0.426 Table 1 Results based on BPP V. Conclusion We had analysis the different compression techniques and concluded that these techniques are either lossy or lossless. After this analysis we have proposed a lossless image compression technique known as data folding followed by arithmetic coding. In this technique we have performed the hybridization of these two techniques. First row folding followed by column folding has been performed, after that arithmetic coding has been applied on the resultant image. This technique has been applied on different images of different dimensions. This technique gives better results in terms of Compression Ratio and Bits Per Pixel. But this technique has the problem of high computational time. References Journal Papers: [1]. Suresh Yerva, Smita Nair, Krishnan Kutty “Lossless Image Compression based on Data Folding” IEEE-International Conference on Recent Trends in Information Technology, ICRTIT 2011 MIT, Anna University, Chennai. June 3-5, 2011 [2]. Sonal, Dinesh Kumar Department of Computer Science & Engineering Guru Jhambheswar University of Science and Technology, Hisar “A STUDY OF VARIOUS IMAGE COMPRESSION TECHNIQUES” [3]. V. Singh* VNR Vignana Jyothi Institute of Technology, Hyderabad, India “Recent Patents on Image Compression – A Survey” [4]. Asadollah Shahbahrami, Ramin Bahrampour, Mobin Sabbaghi Rostami, Mostafa Ayoubi Mobarhan, Department of Computer Engineering, Faculty of Engineering, University of Guilan, Rasht, Iran “ Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression Standards” [5]. K.Uma, **P.Geetha palanisamy***P.Geetha poornachandran “Comparison of Image Compression using GA, ACO and PSO techniques” IEEE-International Conference on Recent Trends in Information Technology, ICRTIT 2011 978-1-4577-0590-8/11 ©2011 IEEE MIT, Anna University, Chennai. June 3-5, 2011 [6]. Loganathan R and Y.S.Kumaraswamy “An Improved Active Contour Medical Image Compression Technique with Lossless Region of Interest” [7]. G.M.Padmaja, P.Nirupama “ Analysis of Various Image Compression Techniques” ARPN Journal of Science and Technology VOL. 2, NO. 4, May 2012 [8]. “Basic Image compression” by Gleb V. Tcheslavski [9]. B.C. Vemuri, S. Sahni, F.Chen, C. Kapoor, C. Leonard “ Lossless Image Compression”. [10]. Jagadish H. Pujar, Lohit M. Kadlaskar “A New Lossless Method Of Image Compression And Decompression Using Huffman Coding Techniques” Journal of Theoretical and Applied Information Technology © 2005 - 2010 JATIT [11]. Gaurav Vijayvargiya Dr. Sanjay Silakari Dr.Rajeev Pandey “A Survey: Various Techniques of Image Compression” (IJCSIS) International Journal of Computer Science and Information Security, Vol. 11, No. 10, October 2013 [12]. Rajesh K. Yadav, S.P. Gangwar and Harsh V. Singh “Study and analysis of wavelet based image compression techniques” International Journal of Engineering, Science and Technology Vol. 4, No. 1, 2012, pp. 1-7 [13]. Sindhu M, Rajkamal R “Images and Its Compression Techniques – A Review” International Journal of Recent Trends in Engineering, Vol 2, No. 4, November 2009 [14]. Paul G. Howard and Jeffery Scott Vitter “Arithmetic Coding for Data Compresion” [15]. Glen G. Langdon “An Introduction to Arithmetic Coding” Books: [16] Gonzales Rafeil C., Woods “ Digital Image Processing” Edition third, 416-440, 564-626.