Image to sub-image
조회 수: 2 (최근 30일)
이전 댓글 표시
Firstly, the image is divided into many 8 * 8 sub images, each sub image is FFT, and 64 coefficients in each sub image are sorted according to the variance of each coefficient. After that, the small transformation coefficients are removed, only 16 coefficients are retained, and the 4:1 image compression is realized.
댓글 수: 3
KALYAN ACHARJYA
2019년 12월 17일
As per my understanding-
- Image subdivided to 8x8, let say total nxn blocks having 8x8 individual image block size
- Replace with variance of individual blocks
Result will be nxn having variances of individual blocks sizes,right?
Image Analyst
2019년 12월 17일
For each 8 pixel-by-8 pixel block (of the n*n blocks total that cover the entire image) they do a fft2() to get real and imaginary 8x8 arrays (that's TWO arrays). So there are 2x8x8 or 128 coefficients - 64 real ones and 64 imaginary ones. Of those 64 they are (I guess) taking the variance of all the coefficients, like the variance of the n^2 (1,1) elements (upper left corner), the variance of the n^2 (1,2) elements, and so on down to the lower right corner, the (8,8) element. So now we'd have an 8x8 image where each element is the variance of the n^2 blocks. Then they sort and keep only 16 of the 64 coefficients and save those 2 * n^2 * 16 coefficients somehow in a file. The data will be reduced from the amount of data originally used to save the original image, thus leading to compression.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!