
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

EECS 556, Imaging Processing, Douglas C. Noll 4/10/
Homework # This is for practice only – do not hand in.
Haar 8
The 1D Hadamard transform matrix can be determined from the Matlab hadamard command. The 2D DCT can be derived from Matlab’s dct command. I would avoid using the dct function we created in homework #3 as that one was not an energy preserving transformation. a. Implement 8x8 transform for DCT, Hadamard, and Haar. Verify that each is energy preserving using a sample 8x8 image (sum squared energy in transform domain will be the same as sub squared energy in the image – or that H*H’ = I ) b. Take the 8x8 transform for all 8x8 blocks in the image and store the transform coefficients in a 64x5400 array. c. Determine the variance of each of the coefficients and sort by magnitude. d. Plot the variances in increasing or decreasing order for each method. Use a log scale (semilogy) and put all three methods on one plot. e. Create a plot of the cumulative variance in the n highest coefficients for each method. Use a linear scale and put all three methods on one plot. Which method has the best energy compaction. f. Determine the number of bits that should be assigned to each coefficient for an average bit rate of 1 bit/pixel. Round to the nearest integer and disallow the assignment of negative bits/pixel. Which transform method results in the most coefficients coded with zero bits/pixel.