【发布时间】:2017-10-28 15:34:50
【问题描述】:
这些是我需要在一个图中显示的原始图像,
以下是我的源码,
function draw_multiple_images(image_list)
N = length(image_list);
[m, n] = factor_out(N);
% create the subplots
figure;
if(iscell(image_list))
for k=1:N
h = subplot(m,n,k);
image(image_list{k},'Parent',h);
set(gca,'xtick',[],'ytick',[])
end
elseif(isvector(image_list))
for k=1:N
h = subplot(m,n,k);
image(image_list(k),'Parent',h);
set(gca,'xtick',[],'ytick',[])
end
end
end
输出
为什么我看到它们是蓝黄色的?
我需要将它们显示为黑白。
【问题讨论】:
-
你的问题是什么?
-
Image_list 是图片名称的列表?
-
还是图像是矩阵?
-
我想知道的是你是怎么看图片的。
-
请尝试:
image(uint8(image_list(k)),'Parent',h);