Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,114 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,759 people online right now. Registration is fast and FREE... Join Now!




Matlab reading multiple images

 
Reply to this topicStart new topic

Matlab reading multiple images

harshakirans
10 Apr, 2007 - 08:22 AM
Post #1

D.I.C Head
Group Icon

Joined: 26 Apr, 2006
Posts: 107


Dream Kudos: 150
My Contributions
Hi,

Am using matlab and am a new bee in this so plz tel me how to read multiple images one after the other using imread.
User is offlineProfile CardPM
+Quote Post

spullen
RE: Matlab Reading Multiple Images
10 Apr, 2007 - 04:44 PM
Post #2

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
i think this is what you want http://www.mathworks.com/access/helpdesk_r...es/intro14.html
User is offlineProfile CardPM
+Quote Post

harshakirans
RE: Matlab Reading Multiple Images
10 Apr, 2007 - 08:19 PM
Post #3

D.I.C Head
Group Icon

Joined: 26 Apr, 2006
Posts: 107


Dream Kudos: 150
My Contributions
Dude wel thanks for that, but how to read a series of .JPG images ,al i want is,


Suppose i ve 5 photos in a directory,

i read one at a time,

manipulate it and put a for loop to similarly manipulate all the other images.

How do i specify the imread in the for loop to read different images each time.

Thanks for ur response
User is offlineProfile CardPM
+Quote Post

harshakirans
RE: Matlab Reading Multiple Images
10 Apr, 2007 - 11:59 PM
Post #4

D.I.C Head
Group Icon

Joined: 26 Apr, 2006
Posts: 107


Dream Kudos: 150
My Contributions
hey dudes let me reduce the complexity by posting the code plz debug or mould this to get my result...

CODE

a=['1.jpg','2.jpg','3.jpg'];
for i=1:3
rgb=imread(a(i));
imshow(rgb);
end

User is offlineProfile CardPM
+Quote Post

Predictor
RE: Matlab Reading Multiple Images
23 Sep, 2007 - 03:55 AM
Post #5

New D.I.C Head
*

Joined: 20 Sep, 2007
Posts: 19



Thanked: 1 times
My Contributions
QUOTE(harshakirans @ 11 Apr, 2007 - 12:59 AM) *

hey dudes let me reduce the complexity by posting the code plz debug or mould this to get my result...

CODE

a=['1.jpg','2.jpg','3.jpg'];
for i=1:3
rgb=imread(a(i));
imshow(rgb);
end




What happens when you execute this code? At a glance, it looks like it should work to me...

User is offlineProfile CardPM
+Quote Post

ramana5034
RE: Matlab Reading Multiple Images
15 Oct, 2007 - 04:17 AM
Post #6

New D.I.C Head
*

Joined: 15 Oct, 2007
Posts: 1


My Contributions
hi dude v got a solution to ur problem regarding multiple image reading , thank u bcos v got the idea from ur program only.. here is the codes for u , enjoy

a=['1.bmp','2.bmp','3.bmp'];
b=[];
k=1;
j=5;
for l=1:5:15
for i=k:j
b=[b a(i)];
end
m=imread(cool.gif;
figure;
hold on;
imshow(m);
k=k+5;
j=j+5;
b=[];
end


hi dude v got a solution to ur problem regarding multiple image reading , thank u bcos v got the idea from ur program only.. here is the codes for u , enjoy
a=['1.bmp','2.bmp','3.bmp'];
b=[];
k=1;
j=5;
for l=1:5:15
for i=k:j
b=[b a(i)];
end
m=imread(cool.gif;
figure;
hold on;
imshow(m);
k=k+5;
j=j+5;
b=[];
end

User is offlineProfile CardPM
+Quote Post

nishaangeline
RE: Matlab Reading Multiple Images
21 Feb, 2008 - 08:56 PM
Post #7

New D.I.C Head
*

Joined: 21 Feb, 2008
Posts: 1


a=['1.bmp','2.bmp','3.bmp'];
b=[];
k=1;
j=5;
for l=1:5:15
for i=k:j
b=[b a(i)];
end
m=imread(cool.gif;
figure;
hold on;
imshow(m);
k=k+5;
j=j+5;
b=[];
end
[/quote]




hi wat is this B in imageread


User is offlineProfile CardPM
+Quote Post

dinci5
RE: Matlab Reading Multiple Images
22 Feb, 2008 - 09:11 AM
Post #8

New D.I.C Head
*

Joined: 19 Oct, 2006
Posts: 33


My Contributions
QUOTE

QUOTE

a=['1.bmp','2.bmp','3.bmp'];
b=[];
k=1;
j=5;
for l=1:5:15
for i=k:j
b=[b a(i)];
end
m=imread(cool.gif;
figure;
hold on;
imshow(m);
k=k+5;
j=j+5;
b=[];
end





hi wat is this B in imageread



I think that shouldn't be a capital B...

This post has been edited by dinci5: 22 Feb, 2008 - 09:13 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 09:50PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month