I want to do the operation on two images.I have total 4 images ..first I want to use image 1 and image 2 and then image 3 and image 4. I am getting error in imabsdiff. I need your help.
My code is:
imgFiles=dir('*.jpg');numFiles=length(imgFiles);for n=1:numFilesimg=imgFiles(n).name;compareimg=imgFiles(n+1).name;P=imabsdiff(img,compareimg);figureimshow(P,[]);end
Best Answer