12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

compression via DWT with thresholding 639package to plot the images. First, create an Image object using Image img. TheMemoryImageSource class is used to create an image from an array of pixelvalues using the constructor MemoryImageSource(int w, int h, int pix[], intdepls, int scan). Here w and h are the dimensions of the image, pix[] isan array containing the pixels values, depls is the deployment of data inpix[], and scan is the length of a row in pix[]. Finally, draw the image usingdrawImage(Image img, int x, int y, this), where x and y are the coordinatesof the left corner of the image. Alternatively, you can use a program such asMatlab or Maple to display images from an array of integers.5. Modify the program DaubCompress.java so that it outputs the DWT to a file.6. Pick a different function to analyze, the more complicated the better.7. Plot the resulting DWT data in a meaningful way.8. Show in your plots the effects of increasing the threshold parameter in orderto cut out more of the smaller transform values.9. Examine the reconstituted signal for various threshold values including zeroand note the effect of the cutoff on the image quality.−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.ALLpup_06.04 — <strong>2008</strong>/2/15 — Page 639

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!