- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
8-bit Gray-level Images Each pixel is usually stored as a byte (a value between 0 to 255), so a 640x480 grayscale image requires 300 kB of storage (640 x 480 = 307, 200). Fig. 3.3 shows the Lena image again, but this time in grayscale. Bit-planes for 8-bit grayscale image calculation 假设有一幅240×180×8bit的灰度图,当用分辨率为300dpi×300dpi的激光打印机将其打印到12.8×9.6英寸的纸上时,每个象素的图案有多大? 这张纸最多可以打 (300×12.8) ×(300×9.6)=3840×2880个点,所以每个象素可以用(3840/240)×(2880/180)=16×16个点大小的图案来表示,即一个象素256个点。如果这16×16的方块中一个黑点也没有,就可以表示灰度256;有一个黑点,就表示灰度255;依次类推,当都是黑点时,表示灰度0。这样,16×16的方块可以表示257级灰度,比要求的8bit共256级灰度还多了一个。所以上面的那幅图的灰度级别完全能够打印出来。 Dithering GIF 格式——图形文件交换格式 Graphics Interchange Format的缩写 CompuServe公司开发的图像文件存储格式 1987年开发的版本号为GIF87a 1989年扩充后的版本号为GIF89a。 图像的相关信息以数据块(block)为单位 一个GIF文件由表示图形/图像的数据块、数据子块以及显示图形/图像的控制信息块组成 在一个文件中可存放多幅彩色图形/图像,并可像幻灯片那样显示或像动画那样演示 采用LZW压缩算法来压缩图像数据 用户可为图像设置透明(transparency)的背景 JPEG JPEG格式 Joint Photographic Experts Group的缩写 JPEG委员会在制定JPEG标准时定义了许多标记(marker),用来区分和识别图像数据及其相关信息 广泛使用的JPEG文件格式是JPEG文件交换格式(JPEG File Interchange Format,JFIF),版本号为1.02,这是1992年9月由在C-Cube Microsystems公司工作的Eric Hamilton提出的 由于JFIF文件格式直接使用JPEG标准为应用程序定义的许多标记,因此JFIF格式就成了事实上的JPEG文件交换格式标准 How to devise a color look-up table Median-cut algorithm: A simple alternate solution that does a better job for this color reduction problem. The idea is to sort the R byte values and find their median; then values smaller than the median are labeled with a “0” bit and values larger than the median are labeled with a “1” bit. This type of scheme will indeed concentrate bits where they most need to differentiate between high populations of close colors. One can most easily visualize finding the median by using a histogram showing counts at position 0..255. Fig. 3.11 shows a histogram of the R byte values for the forestfire.bmp image along with the median of these values, shown as a vertical line. Fig. 3.11 Histogram of R bytes for the 24-bit color image “forestfire.bmp” results in a “0” bit or “1” bit label for every pixel. For th
文档评论(0)