声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1003|回复: 1

[综合] 一个图片处理的问题

[复制链接]
发表于 2008-11-27 08:08 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
用的是MATLAB

程序:
h0=figure('toolbar','none',...'position',[198 56 350 468],...'name','
实例');
h1=axes('parent',h0,...'position',[0.12 0.45 0.75
0.5],...'visible','off');
I=imread('123.tif');
imshow(I)
b1=uicontrol
('parent',h0,...'units','points',...'tag','b1',...'style','pushbutton
',...'string','减少颜色',...'backgroundcolor',[0.75 0.75
0.75],...'position',[30 100 50 20],...'callback',
[...'cla,',...'[X,map]=imread(''123.tif'');,',...'[Y,map2]
=imapprox(X,map,64);,',...'image(Y),',...'colormap(map2)']);
b2=uicontrol
('parent',h0,...'units','points',...'tag','b2',...'style','pushbutton
',...'string','颜色抖动',...'backgroundcolor',[0.75 0.75
0.75],...'position',[100 100 50 20],...'callback',
[...'cla,',...'I=imread(''123.tif'');,',...'[X,map]=rgb2ind
(I,128,''nodither'');,',...'imshow(X)']);
b3=uicontrol
('parent',h0,...'units','points',...'tag','b3',...'style','pushbutton
',...'string','颜色变换一',...'backgroundcolor',[0.75 0.75
0.75],...'position',[170 100 50 20],...'callback',
[...'cla,',...'I=imread(''123.tif'');,',...'Y=rgb2ntsc
(I);,',...'J=Y(:,:,1);,',...'imshow(J)']);
b4=uicontrol
('parent',h0,...'units','points',...'tag','b4',...'style','pushbutton
',...'string','关闭',...'backgroundcolor',[0.75 0.75
0.75],...'position',[170 50 50 20],...'callback','close');
b5=uicontrol
('parent',h0,...'units','points',...'tag','b5',...'style','pushbutton
',...'string','颜色变换三',...'backgroundcolor',[0.75 0.75
0.75],...'position',[100 50 50 20],...'callback',
[...'cla,',...'I=imread(''123.tif'');,',...'J=rgb2ycbcr
(I);,',...'imshow(J)']);
b6=uicontrol
('parent',h0,...'units','points',...'tag','b6',...'style','pushbutton
',...'string','颜色变换二',...'backgroundcolor',[0.75 0.75
0.75],...'position',[30 50 50 20],...'callback',
[...'cla,',...'I=imread(''123.tif'');,',...'J=rgb2hsv
(I);,',...'imshow(J)']);

运行后:
??? 实例');
    |
Error: Missing variable or function.

这是怎么回事啊?
回复
分享到:

使用道具 举报

发表于 2008-12-3 12:14 | 显示全部楼层
实例');换行了吗?
如果换行了   matlab里面要用  ... 换行.
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-23 08:17 , Processed in 0.053983 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表