首页 > > 详细

讲解CSCI 3162程序、辅导Matlab语言程序、Matlab编程调试 解析Java程序|辅导Python编程

项目预算:   开发周期:  发布时间:   要求地区:
Dalhousie University
Faculty of Computer Science
CSCI 3162: Digital Media — Assignment 1
Winter Term 2021
due Friday, January 29, 23:59 AST
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.
2. Differential PCM: Read in the file piano.wav using its native format (int16; use ’native’ as
dataType).
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.
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.

软件开发、广告设计客服
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 9951568
© 2021 www.rj363.com
软件定制开发网!