Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Basics of Matlab programming regarding image processing

Status
Not open for further replies.

waqas2505

Newbie level 4
Joined
Nov 17, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,317
Hi,
I am Waqas and doing my Bachelors. I need some help regarding my project.
I am working on image processing and have some strict deadlines. Of the things that I have to do, the first is to write a code in MATLAB for Jpeg compression of an image file. I have till 23rd of November to do this (have to show it on 24th). I don't have much knowledge about coding in MATLAB but am willing to put in big shifts to learn it and complete my work before my deadline. The approach that I have decided is as under:
1. Conversion from RGB to YCbCr
2. 8*8 blocking
3. 2 dimensional dct
4. Quantization
5. Zig zag
6. Run Length Encoding.
7. Huffman encoding.
9. Making the header (which contains the huffman table and stuff)
8. Writing the file ( or saving it with the extension of 'jpeg' or 'jpg' )

The only thing that I have been able to do so far is the colour conversion ( because its very simple :) ), now I need guidelines regarding the following things,
1. Is my approach correct or do I need to add or delete a step?
2. I have about 6 to 7 days. So could you please suggest me, in a sequence, what and how I should be doing things next, like what should I be learning to create 8*8 blocks and stuff.


Any kind of help would be great, thanking in anticipation.
 

Hi,
I am Waqas and doing my Bachelors. I need some help regarding my project.
I am working on image processing and have some strict deadlines. Of the things that I have to do, the first is to write a code in MATLAB for Jpeg compression of an image file. I have till 23rd of November to do this (have to show it on 24th). I don't have much knowledge about coding in MATLAB but am willing to put in big shifts to learn it and complete my work before my deadline. The approach that I have decided is as under:
1. Conversion from RGB to YCbCr
2. 8*8 blocking
3. 2 dimensional dct
4. Quantization
5. Zig zag
6. Run Length Encoding.
7. Huffman encoding.
9. Making the header (which contains the huffman table and stuff)
8. Writing the file ( or saving it with the extension of 'jpeg' or 'jpg' )

The only thing that I have been able to do so far is the colour conversion ( because its very simple :) ), now I need guidelines regarding the following things,
1. Is my approach correct or do I need to add or delete a step?
2. I have about 6 to 7 days. So could you please suggest me, in a sequence, what and how I should be doing things next, like what should I be learning to create 8*8 blocks and stuff.


Any kind of help would be great, thanking in anticipation.

A stepwise suggestion to implement Baseline JPEG

h**p://www.seas.gwu.edu/~ayoussef/cs225/standards.html#baseline
 

Thanks for the help blooz. Your suggestion has added to my knowledge. But I am still stuck at the Matlab implementation. I really need some help in Maltab.
 

Thanks for the help blooz. Your suggestion has added to my knowledge. But I am still stuck at the Matlab implementation. I really need some help in Maltab.

Some Basic Matlab Courses
h**p://www.mathworks.in/academia/student_center/tutorials/register.html

h**p://www.math.siu.edu/matlab/tutorials.html


h**p://www.math.ufl.edu/help/matlab-tutorial/

h**p://www.ee.umd.edu/~nsw/ench250/matlab.htm

h**p://www.mit.edu/people/abbe/matlab/main.html
Image Processing with Matlab

h**p://amath.colorado.edu/courses/5720/2000Spr/Labs/Worksheets/Matlab_tutorial/matlabimpr.html

h**p://www.eng.auburn.edu/~reevesj/Classes/IP/IP.html

JPEG Encoder in Matlab
h**p://www.mathworks.com/matlabcentral/fileexchange/14819-jpeg-encoder
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top