ECE 563 Assignment 14 (due 21 April 2004)

Individual Projects

  1. Using a 24-bit color image, jpeg compress the image using quality factors of (5%, 10%, 15%, 25%, 50%, 75%, and 90%). Tabulate the file sizes and compression ratio achieved. Show the lower-quality images on your web page and compare to the original. Then convert the original image to grayscale repeat the compression versus jpeg quality factor table. Are the grayscale images 1/3 the size of the color images?

  2. Using the multi-level quad transform method shown in class (download splitter.zip), transform a sample color image and show that you can recover the original image. Then take the transformed image and convert it to jpeg for n = 1:8 levels (eight different results). Tabulate (and plot) the size of the resulting jpeg files vs the number of levels. Read each jpeg image back and try to recover the original image. Tabulate (and plot) the maximum and rms differences between the restored and original images vs. the number of levels. The original image should be a power of two and larger than 256 x 256.

Group Projects

  1. Assemble the images in seq.zip into a single mosaic by developing an automated matlab function to determine the overlap offset between images.

    Here is a manual attempt at the mosaic:

  2. When WinZip compressed the image files in impro14.zip, the following compression ratios were achieved.

    nameLengthSizeratio
    svoids.tif124,76482,9761.504
    ape.tif15,6787,8162.006
    tbrawl.tif312,72263,3094.940
    lighthou.tif78,85463,6151.240
    bears.tif312,722208,3281.501
    xray.tif78,85454,7561.440
    truck.tif695,940530,7421.311

    Modify this table to show the image size (rows x cols) and pixel depth (bits-per-pixel) for each image.

  3. Convert the files above into gif and jpeg formats. Use 75% quality for the jpeg images (the default). Add the file sizes and compression ratios to the table above (or start a new table). Which compresses better - gif, jpeg or zip?

  4. Using a grayscale image (such as lighthou.tif), jpeg compress the image using quality factors of (5%, 10%, 15%, 75%, and 90%). Tabulate the file sizes, compression ratio, and deviations (max, min, and rms) between the compressed image and the original image. Prepare an animated sequence showing the degradation of the jpeg as a function of quality factor.

  5. Obtain the Haar transformation matrix for N = 8 and do the following:
    1. Compute the Haar transform T = H F H of the 8 x 8 matrix F = magic(8).
    2. Compute the inverse Haar transform F = H-1 T H-1.

  6. Verify that the wavelet transform and inverse transform (download wavelet.zip) restores the original image for db4 (group1), sym4 (group2), bior6.8 (group3), and jpeg9.7 (group4) for n = 1:4 levels.


Maintained by John Loomis, last updated 10 April 2004