Question: 1 5 . Our corner response function may return a lot of corners that can be quite close to each other. What we d like
Our corner response function may return a lot of corners that can be quite close to each other.
What wed like to do next is define a minimum distance that we want these features corners to
be from each other. Well then want to step through each of our corners and remove the ones
that are close too close to each other. We do this by starting with the strongest corner that we
found the first one in the list because its sorted and remove other corners that are within the
minimum distance to this point.
First thing we will want to do is initialize our minimum distance:
minDistance ;
Copy and paste the following code into your program and complete the code
whilesizecornerList
c cornerList;
cornerList cornerList:end; remove the first one
goodCorners goodCorners c;
cornersToRemove ;
for i:sizecornerList
if
cornersToRemove cornersToRemove i;
end
end
cornerListcornersToRemove; remove the corners that we found
that are too close
end
Step through the goodCorners list and mark each of the corners in the image with a green cross that is pixels in width and height using the insertMarker function.
Display the image to the user
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
