SURF Points filtering
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to remove SURF-points which are on a black boundary, where the intensity is zero. I have an image which I transformed and now has a black border around it. I don't want to rotate and crop the transformed image for demonstration purposes. How can I remove these SURF-points?
0 Kommentare
Antworten (1)
Witek Jachimczyk
am 17 Okt. 2011
If you are using SURFPoints object from the Computer Vision System Toolbox, once you create your object, you can access the Location property, e.g.
x = SURFPoints([20 20; 3 4]); % this would normally be generated % by detectSURFFEatures >> x.Location
ans =
20 20
3 4
You can now filter the points based on location, e.g.
>> xcoord = x.Location(:,1) % get column of x coordinates
xcoord =
20
3
>> x(xcoord>5) = [] % wipe out any point where x coordinate is % greater than 5
Hence, you can wipe out points that are within a particular image region. You'll need to know the coordinates of you black border in order to use this strategy. Let me know if any of this is not making sense.
Witek
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!