Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img = imread('cameraman.tif')
- subimg1 = img(1:50,1:50)
- subimg2 = img( end -49 :end, end -49 :end)
- SSD = sum(sum((double(subimg1) - double(subimg2)).^2))
- imshow(img)
- imshow(subimg1)
- imshow(subimg2)
- imshow(SSD)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement