Advertisement
riyanris

Untitled

Sep 18th, 2020
1,466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.22 KB | None | 0 0
  1.  
  2. img = imread('cameraman.tif')
  3. subimg1 = img(1:50,1:50)
  4. subimg2 = img( end -49 :end, end -49 :end)
  5. SSD = sum(sum((double(subimg1) - double(subimg2)).^2))
  6. imshow(img)
  7. imshow(subimg1)
  8. imshow(subimg2)
  9. imshow(SSD)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement