Sunteți pe pagina 1din 5

Comparison Method of DCT, DWT and FFT

Techniques Approach on Lossy Image Compression


Authors Name/s per 1st Affiliation (Author) Fifit Alfiah
line 1 (of Affiliation): dept. name of organization Magister Computer Science
line 2: name of organization, acronyms acceptable Budi Luhur University
line 3: City, Country Jakarta, Indonesia
line 4: e-mail address if desired fifitalfiah@gmail.com
I. INTRODUCTION
Compression in image is a process by which the description of
Abstract This paper presents a study of image compression computerized information is modified and reduced about that the
methods algorithm for compare the best techniques on lossy capacity required to store or the bit-rate required for transmission.
Image is another term to review images as multimedia
image compression. One of the major difficulties encountered in components prayer one who holds important role as forms of
lossy image compression is how to protect image quality in a way visual information computerized. The image has the
characteristics of the data is not owned by text, because
that the compressed image remains identical to the original, imagery rich with information and message inner the images.
different from the types of methods that exist in the lossless image Thousands word can saving in digital image with storage
capacity of the very small, but an image requires need big
that can maintain the quality of the image's authenticity. In
storage capacity than thousands more word, because consisting
compressing images there are also many methods that can be of millions bits and millions of color that finally formed and
used with various algorithms such as Huffman code, Chandhuri became an image.
and Hocquengham (BCH) Codes, Multiple-Tables Arithmetic Digital image is basically two dimensional array of pixels.
Digital image require more space for storage and also required
Code, Fractal Coding, Block Truncation Coding and many other
large bandwidths for transferring the data. The primary goal of
algorithms. In Transform domain, the image is represented using image compression is reduces the transmission time and save
an appropriate basis set and the goal is to obtain a sparse the storage space so it can also decreases the cost of storage.

coefficient matrix using DWT, DCT and FFT. The DCT method Techniques in image compression fall into two categories:
lossless and lossy image compression. Choosing which of these
is almost similar to discrete Fourier transform (DFT), which two categories depends on the application and on the
works to convert a signal or image from a spatial domain to a compression degree required. In lossy image compression
technique as name indicates that some loss of information this
frequency domain. Because of the many different types of images, technique is basically used for network related application. The data
Image Binary, RGB image, image intensity. Then compressing an that have been compressed using lossy techniques generally cannot be
recovered or reconstructed exactly.
image is a way used to reduce the size of data or techniques to
One of the major difficulties faced lossy image compression
decrease the number of bits required to represent an images. is how to protect the quality of the image in a way that the
Based on the results of this study using 3 methods that can image decompression appears identical to the original. In this
paper i am concerned with lossy image compression based on
perform compression image with different compression results
DCT, DWT and FFT which is capable of compressing various
with each method (DCT, FFT and DWT) as much as 4 variations types of image formats. The proposed methods of compression
of measurement percentage of image compression of each method repeat three times in the images to increase the compression
ratio, due to the implementation of lossy image compression.
starting from compressing image with size 10%, 30%, 50% and
But in lossy compression, the original signal cannot be
70%. Comparing the three methods with four different variations precisely reconstructed from the compressed data. The reason
of presentation measurement can give very accurate and clear is that, a lot of detail in the image can be removed without
results which method is best for compression the image of the
greatly changing the image. As an example consider the picture
of a tree, which occupies several hundred megabytes. In a lossy
present percentage size. image compression, although the details are very good on the
picture are missing, but the image size is drastically reduced.
Keywords: DCT, DWT, FFT, comparison, percentage.
II. LITERATURE REVIEW

and
A. Lossy Techniques Compression Image

Image compression is one of the applications of data


compression In a digital image that has a goal To reduce the
number of bits from An image, to be stored or transmitted Then F (x) and y (x) will be called as a function of wavelet
more Efficient.One of the methods used Right for image scaling and function. The Mallat algorithm relates the wavelet
compression is Discrete Cosine Transform (DCT), which is a theory with filter theory.
class of operations mathematics Fast Fourier Transform (FFT).

B. Classification of compression techniques


1. Entropy encoding
a) Is loseless image
b) The technique is not based on media with
specifications and certain characteristics but based
on sequence of data.
c) Statistical encoding, does not pay attention to
semantic data.
d) Example: Run-length coding, Huffman coding,
and Arithmetic coding. The same way will be obtained:
2. Source Coding
Is lossy with respect to semantic data (meaning data)
and media. Example: prediction (DPCM, DM), The compression features of a given wavelet basis are
transformation (DCT, FFT), layered coding (bit- primarily linked to the relative scarceness of the wavelet
position, subsampling, sub-band coding) and vector domain representation for the signal. The notion behind
quantization (PSNR). compression is based on the concept that the regular signal
component can be accurately approximated using the
3. Hybrid Coding
following elements: a small number of approximation
Combined between lossy and loseless. Example: JPEG, coefficients (at a suitably chosen level) and some of the
MPEG, H.261. detail coefficients.
Lossless methods always produce a precise compression
image similar to that of the original image or the original
image, since no information is lost due to bit compression in
that images.

III. METHODOLOGY

A. Discrete Wavelet Transform (DWT) Fig. 1 The structure of the wavelet transform based compression.
The features of compression from wavelet based are
primarily linked to the relative scarceness of the wavelet
domain representation for the signal. The idea behind image
compression is based on the concept that the regular signal
component can be accurately approximated using the
following elements: a small number of approximation
coefficients (at a suitably chosen level) and some of the
detail coefficients.
Diversity of discrete wavelets (DWT, Discrete wavelet
transform F (x) can be written as follows:

Where j, k Z. The theory of resolution analysis predicts


that there is {ak, k Z} so that:

Identify applicable sponsor/s here. If no sponsors, delete this text box. (sponsors)
B. Fast Fourier Transform(FFT) technique takes a signal, which in this case is the pixel data of a
matriks image, then transform it with the existing equation.
Fast Fourier Transform algorithm is an algorithm for One thing to look at when testing the DCT algorithm equation
calculating Discrete value Fourier Transform (DFT). DFT is a is the time required for counting each element in a very DCT
method for transforming time domain into Frequency domain. Depending on the size of the matrix. Because the calculated
Fast Fourier Transform (FFT) is a fourier transform developed image matrix element is sufficient many if the image taken is
from Discrete Fourier Transfrom (DFT) algorithm. With the large, then the computer also requires longer time to do the
FFT method, the computational rate of the fourier calculation. To overcome this, DCT implementations typically
transformation calculations can be increased. DFT computing divide an image into smaller, commonly called blocks, and
is computing that takes time to process loops and requires a lot calculations are done on a vector basis. In the implementation
of memory. By applying the FFT algorithm, the DFT in MATLAB, the calculation with base vector done directly and
calculation can be shortened, in this case the looping process together, without having to use looping process.
can be reduced. Viewed from the method used, FFT is divided Discrete Cosine Transform or DCT commonly used is one
into two namely DIT (Decimation in Time) and DIF Class of mathematical operations included in Fast Fourier
(Decimation in Frequency) method, but both have the same Transform. The basic operation shown in this transformation is
function that is to transform the signal into its fundamental to take a Signal and transform it from one type to another. This
frequency. Decimation is the process of dividing the signal transformation is done frequentative by taking a value from the
into smaller parts that are aimed for get faster processing time. spatial domain and transforming it into an identical
If the input signal at the time domain of N-points is x (n), the representation. DCT is one method of transformation that can
initial step is to separate into 2 equal parts (N / 2 ponts). be used for image data compression that has properties
Lossy. This DCT compression method uses a cosine
The Fast Fourier transform (FFT) is defined by approximation approach. On Essentially DCT will change the
the formula: color detail of the original image, but due The limitations of
the human senses, then the change is not so visible. In this
Xk = DCT operation the real value is used. There are 2 kinds of
equations that can be used that is 1 dimension DCT used for
where k is an integer ranging from 0 to N1. Calculate vector data, and DCT 2 dimensions used to calculate
matrix data.
The algorithm first computes the FFTs of the even-indexed
inputs x2m(x0,x1,,xN-2) and odd-indexed inputs
x2m+1(x1,x3,,xN-1), and combines those two results to
IV. RESULTS AND DESCUSSION
produce the FFT of the whole sequence. The algorithm runs at
its maximum speed when N is the power of two. The equation This section depends on the results and discussion for the
becomes: image in compression using the existing method. In this
discussion compression the image by using 3 method approach
that is DWT, DCT and FFT so that the author tried the three
methods by using Matlab to compression the image.
We can factor out he common multiplier A. Identify of the methods
out the second sum we obtain:
In Figure 1 is the result of compression image
implementation using DCT method in lossy image technique.

Because of the periodicity properties of the FFT, the outputs


for N/2k<N from a FFT of length N/2 are identical to the
outputs for 0k<N/2. The whole equation becomes:

This equation expresses the FFT of length N recursively in


terms of two FFTs of size N/2which can reduce the
computation time by hundreds. Figure 1. DCT method compression image
C. Discrete Cosine Transform (DCT) From DCT method to compression image the best result
from every percentage is 10%
Discrete Cosine Transform (DCT) is one of the operating
classes Mathematical Fast Fourier Transform (FFT), where this
In Figure 2 is the result of compression image
implementation using FFT method in lossy image technique.

TABLE I. TABLE OF COMPARISON COMPRESSION IMAGE

PERCENTAGE OF COMPRESSION
IMAGE
COMPARE IMAGE SIZE

10% 30% 50% 70%

DCT QUNA3.JPG 256 X 256 95% 70% 60% 40%

FFT QUNA3.JPG 100 X 100 60% 40% 25% 10%

Figure 2. FFT method compression image


DWT QUNA3.JPG 720 X 720 80% 40% 15% 30%
From FFT method to compression image the best result
from every percentage is 10% althougt not as good like DCT
method for every percentage. From the table above we can see the comparison between the
three methods DCT, FFT and DWT in compressing the image
has a value similarity quality different from each percentage.
In Figure 3 is the result of compression image And proves that DCT (discrete wavelet transform) is the best
implementation using DCT method in lossy image technique. image compression technique in lossy image.

V. CONCLUTIONS
One of the main problems of compressing lossy images in
whole in the damaged image image is not identical when
compared with the methods that exist in lossless images that
can maintain the image's authenticity. In the lossy compression
of this image the author tries to compare between the 3
methods present in the lossy image to prove the authenticity of
the image better among other methods namely DCT, FFT and
DWT. And then after doing a comparison of the compressed
image using 3 methods in lossy image, then the conclusion is:
a. The best methods for compression image using DCT
Figure 3. DWT method compression image method between DWT and FFT.
From Fig.3 that is DWT method to compression image and b. In every methods the best percentage is 10%, because the
for this research only show the result from decomposion:10 % size of image can decrease although not much but still
only. keep the quality of the originality the image.

B. Comparison Methods on lossy image


ACKNOWLEDGMENT
In the experiments, we have used Quna3.jpg with RGB image
The author would like to thank Prof. Dr. Teddy Mantoro,
as the test images. The images are of size 256 x 256 pixels for
SMIEEE, MA.CM as a lecturer at the Faculty of Computer
DCT method, size 100 x 100 pixels for FFT method and size
Science, Budi Luhur University Jakarta.
720 x 720 pixels for DWT method. We use different codebook
sizes of 128, 256, 512 and 1024 to evaluate the performance of
reconstructed image. To compare a compressed image using 3 REFERENCES
different methods, to make it easier to create a comparison
table to give the value of each image percentage. In addition to [1] N. S. Pallavi and Kelkar Vishakha, "An Improved Image Compression
method using LBG with DCT," International Journal of Engineering
the comparison table provides convenience to this research to Research & Technology (IJERT), Vol. 3 Issue 6, June - 2014.
make a better percentage in compressing the image. [2] R.R. Ashanta and Dr. C. A. Munesh "An Improved Neural Image
Compression Approach With Cluster Based Preprocessing,"
International Journal of Computer Science & Information Technology
(IJCSIT) Vol 3, No 6, Dec 2011.
[3] B.D. Pooja and Shivaputra, "An Efficient Lossless Image Compression
Algorithm Using Lifting-DWT And Laplacian Pyramid," International
Journal of Advanced Research in Computer and Communication [7] H.C.M. Mozammel and Amina Khatun, "Image Compression Using
Engineering Vol. 4, Issue 5, May 2015. Discrete Wavelet Transform," IJCSI International Journal of Computer
[4] S. A. Muzhir and H. A. Fouad, "The Jpeg Image Compression Science Issues, Vol. 9, Issue 4, No 1, July 2012.
Algorithm," International Journal of Advances in Engineering & [8] Prof. P.S.Avadhani and Ravi Mathey, "An approach on Image
Technology, Vol. 6, Issue 3, pp. 1055-1062, May 2013. compression Technique in Multi resolution using wavelets and fractals
[5] Dr. Anup Mishra, Nisha Deshmukh and Aarti Verma, "Compression of Transforms," International Journal of Engineering Research &
ECG Signal Using Fast Fourier Transform Technique-A Survey Technology (IJERT) Vol. 1 Issue 7, September - 2012.
Approach," International Journal of Engineering Research &
Technology, Vol. 2 Issue 8, August - 2013.
[6] Anamitra Bardhan Roy, Debasmita Dey, Devmalya Banerjee, Bidisha
Mohanty, Comparison of FFT, DCT, DWT, WHT Compression
Techniques on Electrocardiogram & Photoplethysmography Signals,
Special Issue of International Journal of Computer Applications(0975-
8887), International Conference on Computing, Communication and
Sensor Network(CCSN) 2012.

S-ar putea să vă placă și