reading an image

10 Ansichten (letzte 30 Tage)
kash
kash am 29 Mai 2012
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 Kommentar
Geoff
Geoff am 29 Mai 2012
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?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by