Question: In the following code, please note the missing sections labeled ? 1 and ? 2 . function [ img ] = examQuestion ( n )
In the following code, please note the missing sections labeled and
function img examQuestion n
img zerosn;
MaxDist ;
for i :n
for j :n
if i j
imgij;
else
distance ;
imgijdistanceMaxDist;
end
end
end
img uintimg;
The output image will have pixel intensity scaled with its distance to diagonal where i and j are identical which of the following should replace the missing sections?
Group of answer choices
should be n should be absij
should be n should be i
should be n should be ij
should be n should absij
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
