image processing questions. i have been coding all night and i dont know if some one could help me with this last code please
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2023-4-28
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
2023-4-28
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.
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!