Code covered by the BSD License  

Highlights from
Search duplicate images in sub folders using histogram

image thumbnail
from Search duplicate images in sub folders using histogram by Tharindu Adikari
Finds duplicate images in a folder and in sub-folders using a histogram based method.

duplicates
function duplicates
global db;

for i=1:length(db)
    for j=1:length(db)
        if (corr2(db(i).v,db(j).v)>.99 && i~=j)
            try
            subplot(121);imshow(db(i).path);title(db(i).path);
            subplot(122);imshow(db(j).path);title(db(j).path);
            pause;
            catch ME
            end
        end
    end
end

Contact us