From: sugumar on 15 Sep 2006 02:05 Dear Sir ! I tried you program, it read all files but it doesn't give average image. in the code avg =avg + a; it shows error message like ?? Error using ==> plus Integers can only be combined with integers of the same class, or scalar doubles. Error in ==> locate1 at 10 avg = avg + a; here is my code. clc; y='z:\project\database'; dirlist=dir(y); s=size(dirlist); avg=zeros(1024); for m = 3 : s x= imread(strcat(y,'\',dirlist(m).name)); figure,imshow(x); a= imresize(x,[1024 1024]); avg = avg + a; end av=avg./m; figure,imshow(av); Sir plz help me to get the result as average of images. I am expecting your reply. Thankyou Sir. Peter Boettcher wrote: > > > > I made typo in that line (not on purpose, sorry). See if you can > figure out what it is. > > -- > Peter Boettcher <boettcher(a)ll.mit.edu> > MIT Lincoln Laboratory > MATLAB FAQ: <http://www.mit.edu/~pwb/cssm/> > |