下载图片 [attachment:fig8.4a.jpg] ,写一个程序将这个图像量化到16级灰度,生成类似如图BR attachment:fig8.4.jpg BR中(b)所示效果。用前面的程序计算图像的失真,并解释。