Question: Implement template _ matching _ SSD . m , and try to find the best threshold value for einstein 1 . jpg and einstein 2
Implement templatematchingSSDm and try to find
the best threshold value for einsteinjpg and einsteinjpg save the output images as einsteinssdoutput.jpg einsteinssdmatch.jpg einsteinssdoutput.jpg einsteinssdmatch.jpg
PLEASE DO THIS IN MatLab using the pseudocode below
labtaskm:
name 'einstein;
name 'einstein;
img imdoubleimreadsprintfsjpg name;
template imdoubleimreadtemplatejpg;
SSD
threshold ;
output match templatematchingSSDimgtemplate, threshold;
figure, imshowoutput maxoutput:; titleSSD output';
figure, imshowmatch; titleSSD match';
imwriteoutput maxoutput:
sprintfsssdoutput.jpg name;
imwritematch sprintfsssdmatch.jpg name;
templatematchingSDDm:
for u shiftu : sizeI shiftu
for v shiftv : sizeI shiftv
x; x;
y; y;
patch Iy:y x:x;
SSD
value ;
outputv u value;
end
end
match output threshold;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
