Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

File switching in matlab??

Status
Not open for further replies.

bt87

Junior Member level 3
Junior Member level 3
Joined
May 25, 2008
Messages
30
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,457
i want to compare a image with other images in folder can any body tell me how can i do this??
only thing i wanna know is who to switch from one image to next??
plz...
thanks in advnce.. :)
 

I = imread('image.jpg');
files = dir('test\*.jpg');

for i=1:size(files,1);
img = imread(files(i).name)

% Do comparison here

end

If the first image and the ones that you'll be comparing against are in the same folder than you can check for the file name inside the loop.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top