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