数字图像处理中利用matlab完成彩色变换

  • 虫虫123456
    了解作者
  • matlab
    开发工具
  • 1.8MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 5 积分
    下载积分
  • 0
    下载次数
  • 2022-06-24 23:44
    上传日期
数字图像处理中利用matlab完成彩色变换、
(7).DIP_彩色变换.rar
  • (7).DIP_彩色变换
  • Matlab源文件
  • Untitled.m
    2.5KB
  • 处理结果图像
  • G单色图像.jpg
    35.7KB
  • b_hist.fig
    8KB
  • S分量图.jpg
    27.1KB
  • R单色图像.jpg
    33.7KB
  • H分量图.jpg
    35.6KB
  • r_hist.fig
    8KB
  • B单色图像.jpg
    35.2KB
  • g_hist.fig
    8KB
  • HSI图像.jpg
    41.1KB
  • I分量图.jpg
    7.2KB
  • 原始图像
  • Aral1997.tif
    427.4KB
  • 程序说明文档.doc
    699.5KB
  • 本次作业报告.doc
    701KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/62b5de44f3cc394cf1c1ac09/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/62b5de44f3cc394cf1c1ac09/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fs1"> </span> <span class="ff2 fs2">&#20316;&#19994;&#25253;&#21578;</span></div><div class="t m0 x1 h3 y3 ff2 fs2 fc0 sc0 ls0 ws0">&#19968;&#65294;<span class="_ _0"> </span><span class="fs0">&#31243;&#24207;&#30340;&#30446;&#30340;</span></div><div class="t m0 x2 h4 y4 ff2 fs0 fc0 sc0 ls0 ws0">&#26159;<span class="_ _1"></span>&#23545;<span class="_ _1"></span>&#32473;<span class="_ _1"></span>&#23450;<span class="_ _1"></span>&#30340;<span class="_ _1"></span>&#19968;<span class="_ _2"></span>&#24133;<span class="_ _3"> </span><span class="ff1">RGB<span class="_ _3"> </span></span>&#21407;<span class="_ _2"></span>&#22987;<span class="_ _1"></span>&#22270;<span class="_ _1"></span>&#20687;<span class="_ _2"></span>&#65288;<span class="_ _1"> </span>&#22914;<span class="_ _3"> </span><span class="ff1">bmp<span class="_ _3"> </span></span>&#26684;<span class="_ _2"></span>&#24335;<span class="_ _1"> </span>&#65289;<span class="_ _1"></span>&#65292;<span class="_ _1"></span>&#32473;<span class="_ _1"></span>&#20986;<span class="_ _1"></span>&#24182;<span class="_ _2"></span>&#26174;<span class="_ _1"> </span>&#31034;<span class="_ _1"></span>&#35813;<span class="_ _1"></span>&#22270;<span class="_ _1"></span>&#30340;</div><div class="t m0 x1 h4 y5 ff1 fs0 fc0 sc0 ls0 ws0">R<span class="_ _4"></span><span class="ff2">&#12289;<span class="_ _4"></span></span>G<span class="_ _4"></span><span class="ff2">&#12289;<span class="_ _4"></span></span>B<span class="_"> </span><span class="ff2">&#21333;<span class="_ _4"></span>&#33394;<span class="_ _4"></span>&#22270;<span class="_ _4"></span>&#20687;<span class="_ _4"></span>&#65292;<span class="_ _4"></span>&#32472;<span class="_ _4"></span>&#21046;<span class="_ _5"> </span></span>R<span class="_ _4"></span><span class="ff2">&#12289;<span class="_ _4"></span></span>G<span class="_ _4"></span><span class="ff2">&#12289;<span class="_ _4"></span></span>B<span class="_"> </span><span class="ff2">&#22270;<span class="_ _4"></span>&#20687;<span class="_ _4"></span>&#21508;<span class="_ _4"></span>&#33258;<span class="_ _4"></span>&#30340;&#30452;<span class="_ _4"></span>&#26041;<span class="_ _4"></span>&#22270;<span class="_ _4"></span>&#65307;<span class="_ _4"></span>&#23558;<span class="_ _6"> </span></span>RGB<span class="_"> </span><span class="ff2">&#26041;<span class="_ _4"></span>&#24335;<span class="_ _4"></span>&#36716;<span class="_ _4"></span>&#25442;<span class="_ _4"></span>&#20026;</span></div><div class="t m0 x1 h4 y6 ff1 fs0 fc0 sc0 ls0 ws0">HIS<span class="_ _7"> </span><span class="ff2">&#26041;&#24335;&#65292;&#20877;&#32473;&#20986;&#24182;&#26174;&#31034;&#35813;&#22270;&#30340;<span class="_ _7"> </span></span>H<span class="ff2">&#12289;</span>I<span class="ff2">&#12289;</span>S<span class="_ _7"> </span><span class="ff2">&#19977;&#20010;&#20998;&#37327;&#30340;&#22270;&#20687;&#12290;</span></div><div class="t m0 x1 h3 y7 ff2 fs2 fc0 sc0 ls0 ws0">&#20108;&#65294;<span class="_ _0"> </span><span class="fs0">&#36816;&#34892;&#29615;&#22659;</span></div><div class="t m0 x2 h4 y8 ff1 fs0 fc0 sc0 ls0 ws0">Matlab<span class="_ _7"> </span><span class="ff2">&#24179;&#21488;&#65292;&#32534;&#20889;</span>.m<span class="_ _7"> </span><span class="ff2">&#31243;&#24207;&#23454;&#29616;</span></div><div class="t m0 x1 h3 y9 ff2 fs2 fc0 sc0 ls0 ws0">&#19977;&#65294;<span class="_ _0"> </span><span class="fs0">&#31243;&#24207;&#20195;&#30721;</span></div><div class="t m0 x1 h5 ya ff1 fs0 fc0 sc0 ls0 ws0">clear;</div><div class="t m0 x1 h4 yb ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#35835;&#21462;&#22270;&#20687;</span></div><div class="t m0 x1 h4 yc ff1 fs0 fc0 sc0 ls0 ws0">add_name = input('<span class="ff2">&#35831;&#36755;&#20837;&#19968;&#24133;<span class="_ _7"> </span></span>RGB<span class="_ _7"> </span><span class="ff2">&#22270;&#20687;&#30340;&#36335;&#24452;&#21644;&#21517;&#23383;</span>&gt; ','s');</div><div class="t m0 x1 h5 yd ff1 fs0 fc0 sc0 ls0 ws0">image = imread(add_name);</div><div class="t m0 x1 h5 ye ff1 fs0 fc0 sc0 ls0 ws0">[row<span class="_ _8"></span>,col,q] = size(image); </div><div class="t m0 x1 h4 yf ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#35835;&#21462;<span class="_ _7"> </span></span>RGB3<span class="_ _7"> </span><span class="ff2">&#20998;&#37327;&#30340;&#21333;&#33394;&#22270;</span></div><div class="t m0 x1 h5 y10 ff1 fs0 fc0 sc0 ls0 ws0">r_image = image(:,:,1);</div><div class="t m0 x1 h4 y11 ff1 fs0 fc0 sc0 ls0 ws0">imwrite(r_image,'R<span class="_ _7"> </span><span class="ff2">&#21333;&#33394;&#22270;&#20687;</span>.jpg');</div><div class="t m0 x1 h5 y12 ff1 fs0 fc0 sc0 ls0 ws0">g_image = image(:,:,2);</div><div class="t m0 x1 h4 y13 ff1 fs0 fc0 sc0 ls0 ws0">imwrite(g_image,'G<span class="_ _7"> </span><span class="ff2">&#21333;&#33394;&#22270;&#20687;</span>.jpg');</div><div class="t m0 x1 h5 y14 ff1 fs0 fc0 sc0 ls0 ws0">b_image = image(:,:,3);</div><div class="t m0 x1 h4 y15 ff1 fs0 fc0 sc0 ls0 ws0">imwrite(b_image,'B<span class="_ _7"> </span><span class="ff2">&#21333;&#33394;&#22270;&#20687;</span>.jpg');</div><div class="t m0 x1 h4 y16 ff1 fs0 fc0 sc0 ls0 ws0">show1 =<span class="_ _9"></span> input('<span class="_ _4"></span><span class="ff2">&#26159;&#21542;<span class="_ _9"></span>&#26174;<span class="_ _9"></span>&#31034;<span class="_ _5"> </span></span>R<span class="_ _7"> </span><span class="ff2">&#21333;&#33394;<span class="_ _9"></span>&#22270;&#20687;<span class="_ _9"></span>&#21450;<span class="_ _9"></span>&#20854;<span class="_ _9"></span>&#30452;&#26041;<span class="_ _9"></span>&#22270;<span class="_ _9"></span>&#65292;<span class="_ _9"></span>&#26174;<span class="_ _9"></span>&#31034;&#35831;<span class="_ _9"></span>&#36755;<span class="_ _9"></span>&#20837;<span class="_ _6"> </span></span>1<span class="ff2">&#65292;&#19981;<span class="_ _9"></span>&#26174;<span class="_ _9"></span>&#31034;<span class="_ _9"></span>&#35831;&#36755;<span class="_ _9"></span>&#20837;</span></div><div class="t m0 x1 h4 y17 ff1 fs0 fc0 sc0 ls0 ws0">0<span class="ff2">&#65292;&#27809;&#26377;&#36755;&#20837;&#40664;&#35748;&#20026;<span class="_ _7"> </span></span>1&gt; ');</div><div class="t m0 x1 h5 y18 ff1 fs0 fc0 sc0 ls0 ws0">if isempty(show1)</div><div class="t m0 x1 h5 y19 ff1 fs0 fc0 sc0 ls0 ws0"> show1 = 1</div><div class="t m0 x1 h5 y1a ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h5 y1b ff1 fs0 fc0 sc0 ls0 ws0">if (show1 == 1)</div><div class="t m0 x1 h5 y1c ff1 fs0 fc0 sc0 ls0 ws0"> imshow(r_image);</div><div class="t m0 x1 h4 y1d ff1 fs0 fc0 sc0 ls0 ws0"> title('R<span class="_ _7"> </span><span class="ff2">&#21333;&#33394;&#22270;&#20687;</span>');</div><div class="t m0 x1 h5 y1e ff1 fs0 fc0 sc0 ls0 ws0"> figure;</div><div class="t m0 x1 h5 y1f ff1 fs0 fc0 sc0 ls0 ws0"> imhist(r_image);</div><div class="t m0 x1 h4 y20 ff1 fs0 fc0 sc0 ls0 ws0"> title('R<span class="_ _7"> </span><span class="ff2">&#21333;&#33394;&#22270;&#20687;&#30340;&#30452;&#26041;&#22270;</span>');</div><div class="t m0 x1 h5 y21 ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h4 y22 ff1 fs0 fc0 sc0 ls0 ws0">show2 =<span class="_ _9"></span> input('<span class="_ _9"></span><span class="ff2">&#26159;<span class="_ _9"></span>&#21542;<span class="_ _9"></span>&#26174;<span class="_ _9"></span>&#31034;<span class="_ _a"> </span></span>G<span class="_ _7"> </span><span class="ff2">&#21333;<span class="_ _9"></span>&#33394;&#22270;<span class="_ _9"></span>&#20687;<span class="_ _9"></span>&#21450;<span class="_ _9"></span>&#20854;&#30452;<span class="_ _9"></span>&#26041;<span class="_ _9"></span>&#22270;<span class="_ _9"></span>&#65292;&#26174;<span class="_ _9"></span>&#31034;<span class="_ _9"></span>&#35831;<span class="_ _9"></span>&#36755;&#20837;<span class="_ _5"> </span></span>1<span class="_ _9"></span><span class="ff2">&#65292;<span class="_ _9"></span>&#19981;<span class="_ _9"></span>&#26174;&#31034;<span class="_ _9"></span>&#35831;<span class="_ _9"></span>&#36755;<span class="_ _9"></span>&#20837;</span></div><div class="t m0 x1 h4 y23 ff1 fs0 fc0 sc0 ls0 ws0">0<span class="ff2">&#65292;&#27809;&#26377;&#36755;&#20837;&#40664;&#35748;&#20026;<span class="_ _7"> </span></span>1&gt; ');</div><div class="t m0 x1 h5 y24 ff1 fs0 fc0 sc0 ls0 ws0">if isempty(show2)</div><div class="t m0 x1 h5 y25 ff1 fs0 fc0 sc0 ls0 ws0"> show2 = 1</div><div class="t m0 x1 h5 y26 ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h5 y27 ff1 fs0 fc0 sc0 ls0 ws0">if (show2 == 1)</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 数字图像处理
      数字图像处理中文课件,包括成像,图像采集,数学特征,正交变换,图像增强,复原,压缩等内容。
    • 数字图像处理
      HSI RGB LZW 哈弗慢编码,直方图均衡化,累计直方图,灰度映射,腐蚀,膨胀(文件内容:图像处理练习.doc 数字图像处理代码.doc)
    • 数字图像处理
      本书是数字图像处理理论与实践相结合的成功之作,强调理论用于解决工业或科学研究中常见的实际问题。这种与基本概念和数字图像处理的各种实用技术,使读者能用这些技术解决数字图像中的新问题。 全书共22章,1-5章...
    • 数字图像处理
      本书全面系统地讲述了数字图像处理领域中的15大核心话题,包括色彩空间、图像编码、频域变换、图像文件格式、几何变换、灰度变换、图像的增强处理、边缘检测、轮廓跟踪、形态学处理、图像分割、图像的加密与隐藏、...
    • 数字图像处理
      数字图像处理宝典,PDF高清版,因每次上传限制,分为7个部分上传,搜索时搜 “数字图像处理(中午版part#)
    • 图像处理论文
      这是一篇本人发表的文章,里面详细写了对于处理多峰值图像处理的新思想,这种思想可以解决小图像,多峰阈值分割问题。
    • 图像处理
      图像处理
    • 图像处理
      图像处理
    • 图像处理
      图像处理
    • 图像处理代码
      这个是图像处理不可多得的源码,是我们做项目时用到的所有技术。涉及到哈夫曼码编码、香农-弗诺编码、伪彩色、滤波、模板匹配 、图像平滑、图像复原、图像显示、特征提取、图像变、运动检测、小波变换、图像分割等...