欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOCX文档下载  

    digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.docx

    • 资源ID:3155691       资源大小:38.40KB        全文页数:8页
    • 资源格式: DOCX        下载积分:6.99金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要6.99金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.docx

    digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告Digital Image Processing Project chapter: Chapter 6 Project number: Proj06-01 Proj06-04 Student's name: Student's number: Class: Contents WEB-SAFE COLORS . 2 PSEUDO-COLOR IMAGE PROCESSING . 2 COLOR IMAGE ENHANCEMENT BY HISTOGRAM PROCESSING . 5 COLOR IMAGE SEGMENTATION . 7 1 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 2 Technical discussion 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. 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)'); Discussion of results originalweb-safe colors(jpg)web-safe colors(jpeg)Figure 2 results of project 06-01 1 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 2 Technical discussion 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)<=3*L/4 R(i,j)=4*I(i,j)-2*L; G(i,j)=L; B(i,j)=0; else R(i,j)=L; G(i,j)=-4*I(i,j)+4*L; B(i,j)=0; end end end end end 3 for i=1:m for j=1:n G2C(i,j,1)=R(i,j); G2C(i,j,2)=G(i,j); G2C(i,j,3)=B(i,j); end end G2C=G2C/256; subplot(122); imshow(G2C); title('Pseudo-Color'); Discussion of results originalPseudo-ColorFigure 4 results of project 06-02 4 Color Image Enhancement by Histogram Processing Exp. 22,PROJECT 06-03 Objective To know how to implement image enhancement for color images by histogram processing. Note that the definition of histogram for color images differs from that of histogram for gray images. Requirements Download the dark-stream color picture in Fig. 6.35. Histogram-equalize the R,G,and B images separately using the histogram-equalization program and convert the imageback to jpg format. Figure 5 Fig6.35(5).jpg Technical discussion C = cat(dim, A1, A2, A3, A4, .) concatenates all the input arrays (A1, A2, A3, A4, and so on) along array dimension dim. 5 Program listings I=imread('Fig6.35(5).jpg'); subplot(121); imshow(I); title('original'); a=I(:,:,1); b=I(:,:,2); c=I(:,:,3); A=histeq(a); B=histeq(b); C=histeq(c); I3=cat(3,A,B,C); subplot(122); imshow(I3); title('histogram processing'); Discussion of results originalhistogram processingFigure 6 results of project 06-03 6 Color Image Segmentation Exp. 23,PROJECT 06-04 Objective Color image segmentation is a big issue in image processing. This students need to know the basics of this topic. Requirements Download Fig. 6.28(b) and duplicate Example 6.15, but segment instead the darkest regions in the image. Figure 7 Fig6.30(01).jpg 7 Technical discussion RGB2 = im2double(RGB) converts the truecolor image RGB to double precision, rescaling the data if necessary Program listings rgb=imread('Fig6.30(01).jpg'); subplot(221); imshow(rgb); title('original'); rgb1=im2double(rgb); r=rgb1(:,:,1); g=rgb1(:,:,2); b=rgb1(:,:,3); r1=r(129:256,86:170); r1_u=mean(mean(r1(:); m,n=size(r1); sd1=0.0; for i=1:m for j=1:n sd1=sd1+(r1(i,j)-r1_u)*(r1(i,j)-r1_u); end end r1_d=sqrt(sd1/(m*n); r2=zeros(size(rgb1,1),size(rgb1,2); ind=find(r>r1_u-1.25*r1_d)&(r<r1_u+1.25*r1_d); r2(ind)=1; subplot(222); imshow(r2); title('segmentation'); subplot(234); imshow(r); 8 title('R component'); subplot(235); imshow(g); title('G component'); subplot(236); imshow(b); title('B component'); Discussion of results originalsegmentationR componentG componentB componentFigure 8 results of project 06-04 9

    注意事项

    本文(digital image processing projects 数字图像处理 冈萨雷斯 第六章所有程序和报告.docx)为本站会员(牧羊曲112)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开