1. Homepage
  2. Programming
  3. CSCI 3162 Digital Media - Assignment 1: Dithering

CSCI 3162 Digital Media - Assignment 1: Dithering

Engage in a Conversation
CanadaDalhousie UniversityCSCI 3162Digital MediaDithering

CSCI 3162: Digital Media — Assignment 1

1. Digital Images: The lecture slides describe several techniques for dithering when reducing the bit depth of images to b = 1. Write MATLAB code that generalizes those techniques to allow dithering when reducing to a bit depth b ≥ 1. Consider at least thresholding, noise dithering, and FloydSteinberg dithering. Avoid using loops where possible and do not hardcode the bit depth. Please submit one function file for each dithering approach considered. Submit your code as well as the results of processing the test images available on Brightspace for b = 2 and b = 4. CourseNana.COM

2. Differential PCM: Read in the file piano.wav using its native format (int16; use ’native’ as dataType). CourseNana.COM

  1. What compression rate does bzip2 achieve on the file?
  2. Implement the simplest predictor from the lecture slides (l = a1 = 1). Avoid loops if possible. Apply the predictor to the same data and store the resulting error values using audiowrite. What compression rate does bzip2 achieve on this file? Also give code to reconstruct the original data from the error values and test it to make sure that no information is lost.
  3. Now implement the next simplest predictor (l = 2; a1 = 2 and a2 = −1) and proceed as above. What compression rate that bzip2 achieve?
  4. Try to build a better predictor by using l > 2. Describe what you did to come up with one, and test how well it works by measuring the compression rate achieved by bzip2 on the resulting file.

Hint: Try to quadratically extrapolate the preceding values. CourseNana.COM

Instructions: Please submit your solutions on Brightspace. Submit a single archive file (e.g., .zip) with one folder per problem. Remember that: • All work you submit must be your own. • Any questions you may have should be brought up during class time or posted on the Brightspace discussion board. • You must not share your calculations, ideas, or code with anyone. • You must not make use of any code you find on the web. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Canada代写,Dalhousie University代写,CSCI 3162代写,Digital Media代写,Dithering代写,Canada代编,Dalhousie University代编,CSCI 3162代编,Digital Media代编,Dithering代编,Canada代考,Dalhousie University代考,CSCI 3162代考,Digital Media代考,Dithering代考,Canadahelp,Dalhousie Universityhelp,CSCI 3162help,Digital Mediahelp,Ditheringhelp,Canada作业代写,Dalhousie University作业代写,CSCI 3162作业代写,Digital Media作业代写,Dithering作业代写,Canada编程代写,Dalhousie University编程代写,CSCI 3162编程代写,Digital Media编程代写,Dithering编程代写,Canadaprogramming help,Dalhousie Universityprogramming help,CSCI 3162programming help,Digital Mediaprogramming help,Ditheringprogramming help,Canadaassignment help,Dalhousie Universityassignment help,CSCI 3162assignment help,Digital Mediaassignment help,Ditheringassignment help,Canadasolution,Dalhousie Universitysolution,CSCI 3162solution,Digital Mediasolution,Ditheringsolution,