wangzhe860923 发表于 2008-11-27 08:06

我的程序为什么运行不了呢?

一个图像颜色处理程序:


h0=figure('toolbar','none',...'position',,...'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',,...'callback',
[...'cla,',...'=imread(''123.tif'');,',...'
=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',,...'callback',
[...'cla,',...'I=imread(''123.tif'');,',...'=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',,...'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',,...'callback','close');
b5=uicontrol
('parent',h0,...'units','points',...'tag','b5',...'style','pushbutton
',...'string','颜色变换三',...'backgroundcolor',[0.75 0.75
0.75],...'position',,...'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',,...'callback',
[...'cla,',...'I=imread(''123.tif'');,',...'J=rgb2hsv
(I);,',...'imshow(J)']);

运行以后是:

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

请哪位大侠指点一二...

sigma665 发表于 2008-11-27 10:57

h0=figure('toolbar','none',...'position',,...'name','
实例');
写成一行

ch_j1985 发表于 2008-11-27 21:31

回复 楼主 wangzhe860923 的帖子

LZ提供的程序有点儿乱,是从m文件中直接复制出来的吗?

wangzhe860923 发表于 2008-11-28 07:45

回复 沙发 sigma665 的帖子

我试试!谢谢你啊

wangzhe860923 发表于 2008-11-28 07:45

回复 板凳 ch_j1985 的帖子

是啊 ,有点什么不对吗?

ch_j1985 发表于 2008-11-28 21:46

回复 5楼 wangzhe860923 的帖子

呵呵,没有什么不对的,只是看起来比较费力!

科技在线 发表于 2008-11-29 19:28

好乱,眼都花了
页: [1]
查看完整版本: 我的程序为什么运行不了呢?