Dec 11, 2009 #1 B bt87 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 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..
Dec 11, 2009 #2 s_cihan_tek Full Member level 2 Joined Mar 8, 2006 Messages 125 Helped 19 Reputation 38 Reaction score 4 Trophy points 1,298 Location Turkey Activity points 2,206 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.
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.