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!