【发布时间】:2012-01-03 22:52:58
【问题描述】:
这是我的代码:
I = imread(fullfile(vl_root,'data','cup1.jpg')) ;
%returns a picture of a cup
image(I)
colormap gray;
%returns a white blank picture
image(rgb2gray(I))
奇怪的是,下面的代码对我有用:
I = getsnapshot(vid);
%returns a picture of a snapshot
image(I)
colormap gray;
%returns a black and white picture
image(rgb2gray(I))
据此,我只能假设这两种图像类型之间存在某种差异,但我似乎无法确定原因。他们都是
有什么想法吗?
【问题讨论】: