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

下载本文档

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

文档简介

1、 Digital Image Processing Project chapter: Chapter 6 Project number: Proj06-01 Proj06-04 Students name: Students number: Class: 1ContentsWEB-SAFE COLORS .2PSEUDO-COLOR IMAGE PROCESSING.2COLOR IMAGE ENHANCEMENT BY HISTOGRAM PROCESSING.5COLOR IMAGE SEGMENTATION.72Web-Safe ColorsExp. 20,PROJECT 06-01 O

2、bjective 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 colo

3、rs).(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.jpg1Technical discussion【1】B = fix(A) rounds the elements of A toward zero, resu

4、lting 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 listingsI=imread(Fig6.08.jpg);subplot(131);imshow(I);title(original); I1=fix(I/51

5、)*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);2Discussion of results originalweb-safe colors(jpg)web-safe colors(jpeg)Figure 2 results of project 06-013 Pseudo-Color Im

6、age ProcessingExp. 21,PROJECT 06-02ObjectiveTo 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

7、 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 ri

8、ver appears yellow and the rest of the pixels are the same shades of gray as in the input image. Figure 3 Fig6.22(a).jpg4Technical discussion【1】RGB componentsrgb_R=I(:, :, 1);rgb_G=I(:, :, 2);rgb_B=I(:, :, 3);Program listingsI=imread(Fig6.22(a).jpg);subplot(121);imshow(I);title(original);I=double(I)

9、;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)&(rr1_u+1.25*r1_d);r2(ind)=1; subplot(222);imshow(r2);title(segmentation); subplot(234);imshow(r);10title(R component); subplot(235);imshow(g);title(G component); subplo

温馨提示

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

评论

0/150

提交评论