dxy1983712 发表于 2006-1-5 17:33

[求助]高手快来 小弟在线等回复 急用

<P >色彩增强实现</P>
<P >要求:对彩色图像进行灰度变换后,进行以下色彩增强实现</P>
<P ><FONT face="Times New Roman">1、</FONT>真彩色</P>
<P ><FONT face="Times New Roman">2、</FONT>伪彩色</P>
<P >进行上述两种结果进行比较。<BR><BR><BR>想问下真彩色 怎么做??<BR><BR>这是我编写的伪彩色处理   帮忙看看有什么问题没有!~~<BR></P>
<P ><FONT face="Times New Roman">x=imread('picture01.bmp');</FONT></P>
<P ><FONT face="Times New Roman">I = rgb2gray(x);</FONT></P>
<P ><FONT face="Times New Roman">figure,imshow(I);</FONT></P>
<P ><FONT face="Times New Roman">=gray2ind(I,256);</FONT></P>
<P ><FONT face="Times New Roman">map(151:200,1:2)=0;</FONT></P>
<P ><FONT face="Times New Roman">map(151:200,3)=1;</FONT></P>
<P ><FONT face="Times New Roman">map(201:256,1)=1;</FONT></P>
<P ><FONT face="Times New Roman">map(201:256,2:3)=0;</FONT></P>
<P ><FONT face="Times New Roman">figure,imshow(y,map)</FONT></P>
<P > <BR><BR>谢谢了</P>

happy 发表于 2006-1-6 11:16

回复:(dxy1983712)[求助]高手快来 小弟在线等回复 ...

找《MATLAB应用图像处理》这本书里有专门介绍
页: [1]
查看完整版本: [求助]高手快来 小弟在线等回复 急用