SURF Points filtering
1 view (last 30 days)
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?
Witek Jachimczyk on 17 Oct 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
You can now filter the points based on location, e.g.
>> xcoord = x.Location(:,1) % get column of x coordinates
>> 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.