image processing questions. i have been coding all night and i dont know if some one could help me with this last code please

2 views (last 30 days)
Write a MATLAB function that takes as input arguments a 512x512 grayscale image and an integer n (0<n<65), (1) partitions the image into 8x8 blocks, (2) computes the 2D-discrete cosine transform (DCT) of each block, (3) orders the DCT coefficients in each block according to the zig-zag scan, (4) sets the last n coefficients in each block to zero, (5) computes the inverse 2D-DCT of each block of coefficients, and (6) displays the reconstructed image.
  2 Comments
Walter Roberson
Walter Roberson on 28 Apr 2023
There have a been a fair number of posts addressing these topics. For example there are over 100 postings talking about zig-zag
Steven Lord
Steven Lord on 28 Apr 2023
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 28 Apr 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!