Last active
August 19, 2019 22:29
-
-
Save mrifkikurniawan/4183202944d8bc729b0f7cd4ed8a6bc0 to your computer and use it in GitHub Desktop.
Slice image sub-regions and perform SSD (sum of squared distance)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Accessing Image Sub-Regions | |
img = imread('cameraman.png'); #read image filename | |
subimg1 = img(1:50, 1:50); | |
subimg2 = img(end-49:end, end-49:end); | |
ssd = sum(sum((double(subimg1) - double(subimg2)).^2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Image accessing subregions output looks like this
