digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.doc_第1页
digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.doc_第2页
digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.doc_第3页
digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.doc_第4页
digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.doc_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Digital Image Processing Project chapter Chapter 6 Project number Proj06 01 Proj06 04 Student s name Student s number Class 1 Contents WEB SAFE COLORS 2 PSEUDO COLOR IMAGE PROCESSING 2 COLOR IMAGE ENHANCEMENT BY HISTOGRAM PROCESSING 5 COLOR IMAGE SEGMENTATION 7 2 Web Safe Colors Exp 20 PROJECT 06 01 Objective To know what are Web safe colors how to generate the RGB components for a given jpeg color image or convert an image to RGB manually Requirements a Write a computer program that converts an arbitrary RGB color image to a web safe RGB image see Fig 6 10 for a definition of web safe colors b Download the image in Fig 6 8 and convert it to a web safe RGB color image Figure 6 8 is given in jpg format so convert your result back to jpg see comments at the beginning of this project Figure 1 Fig6 08 jpg 1 Technical discussion 1 B fix A rounds the elements of A toward zero resulting in an array of integers For complex A the imaginary and real parts are rounded independently 2 imwrite A filename fmt writes the image A to the file specified by filename in the format specified by fmt Program listings I imread Fig6 08 jpg subplot 131 imshow I title original I1 fix I 51 51 subplot 132 imshow I1 title web safe colors jpg imwrite I1 web safe colors jpeg jpeg subplot 133 I imread web safe colors jpeg imshow I title web safe colors jpeg 2 Discussion of results originalweb safe colors jpg web safe colors jpeg Figure 2 results of project 06 01 3 Pseudo Color Image Processing Exp 21 PROJECT 06 02 Objective To know when the highpass filtering Hhp u v can be obtained by using the relation 1 Hlp u v Requirements a Implement Fig 6 23 with the characteristic that you can specify two ranges of gray level values for the input image and your program will output an RGB image whose pixels have a specified color corresponding to one range of gray levels in the input image and the remaining pixels in the RGB image have the same shade of gray as they had in the input image b Download the image in Fig 6 22 a and process it with your program so that the river appears yellow and the rest of the pixels are the same shades of gray as in the input image Figure 3 Fig6 22 a jpg 4 Technical discussion 1 RGB components rgb R I 1 rgb G I 2 rgb B I 3 Program listings I imread Fig6 22 a jpg subplot 121 imshow I title original I double I m n size I L 256 for i 1 m for j 1 n if I i j L 4 R i j 0 G i j 4 I i j B i j L else if I i j L 2 R i j 0 G i j L B i j 4 I i j 2 L else if I i j r1 u 1 25 r1 d r2 ind 1 subplot 222 imshow r2 title segmentation subplot 234 imshow r 10 title R component subplot 235 imshow g title G component subplot 23

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论