riyanris

Untitled

Sep 18th, 2020
1,250
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data