Anti Essays :: Free Essay on "Jpeg Image Compression Implemented In Matlab"
You can search for more free term papers from Anti Essays using the search box above.
No results found.
Despite having over 100,000 essays, it appears that your topic is very specfic. No problem! We can write a BRAND NEW ESSAY for you!
Click HERE for a Custom Order form and let our experts help you TODAY!
This free essay is for research purposes ONLY. Do NOT submit term papers from Anti Essays as your own. If you use information from this free term paper, it is your responsibility to cite it. MLA and APA citations can be found at the bottom of the page.
Submitted by tarunagrawal on April 12, 2009
JPEG Image Compression Implemented in Matlab
By Michael Christensen
Abstract:
In this project I attempted to implement basic JPEG compression using only basic Matlab functions. This included going from a basic grayscale bitmap image all the way to a fully encoded file readable by standard image readers. I will show that I have implemented the majority of the project, including much of the final binary coding. Although I never obtained a fully completed image from my functions, I came very close.
Results:
In this section I will present the steps of obtaining a finalized JPEG file and how I implemented each step in matlab. I will comment on possible improvements and mistakes made in each case. The code used is attached at the end of this report.
Step1: Converting the base image to 8x8 matrices, DCT transform, quantizing
These steps were relatively easy, especially in matlab, which is specifically set up to work with matrices. The 2-D discrete cosine transform is done simply with the dct2() command. After splitting the matrix into 8x8 matrices and performing the DCT, a simple piecewise division by the quantization matrix obtains the quantized matrices needed for the next step.
Step 2: Zig-Zag Encoding of Quantized Matrices
I found no matlab implementation for this function, so I wrote one myself. I took advantage of the fact that each diagonal row has addresses that add up to the same number. Depending on whether the number is even or odd determined the direction of the iteration through the row. The code I wrote is able to zig-zag through any matrix of equal height and width. This could be useful if one wanted to experiment with deviding images into matrices larger than 8x8.
Step 3: Conversion of quantized vectors into the JPEG defined bitstream
For this...
You must Login to view the entire essay.
If you are not a member yet, Sign Up for free!
"Jpeg Image Compression Implemented In Matlab". Anti Essays. 20 Nov. 2009
<http://www.antiessays.com/free-essays/46273.html>
Jpeg Image Compression Implemented In Matlab. Anti Essays. Retrieved November 20, 2009, from the World Wide Web: http://www.antiessays.com/free-essays/46273.html