reading an image

10 次查看(过去 30 天)
kash
kash 2012-5-29
I have a code
X=zeros(256,256,15)
for x = 1:length(dirlist)
i = imread([pathname, dirlist(x).name]);
A=i;
X(:,:,x)=A;
save X
end
load X
i have saved 15 images in X,i have used load command,now please tell how to read those images
  1 个评论
Geoff
Geoff 2012-5-29
Is there an error? Is it "subscripted assignment dimension mismatch" (or something like that)? Are your images colour? Are they actually 256x256? Why are you saving X every time around the loop?

请先登录,再进行评论。

采纳的回答

Andrei Bobrov
Andrei Bobrov 2012-5-29
one way
for ii = 1:size(X,3)
imshow(X(:,:,ii));
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by