I am now doing copy move image forgery detection using DCT. Now I have some problem for matching part. It lagging for loading whole data since I am using looping to get the similarity between two row vector. Any idea to change my code in better way. Here is my code for the matching part.
z=0;for num=1:group for a=mS(num):mE(num)-1 for b=a+1:mE(num) z=z+1; Dsimilar(z,1) = norm(sort(a,:)-sort(b,:)) end endend
Best Answer