How to find union of two SURFPOINTS variables?

1 view (last 30 days)
soumyajit datta
soumyajit datta on 25 Apr 2019
Edited: Qu Cao on 19 Nov 2019
I have SURFPOINTS variables
surf1=detectSURFFeatures(Img1);
surf2=detectSURFFeatures(Img2);
How to find UNION of the two surfpoints surf1 & surf2 so that i get an object which is contains all surf features from both images and no repetition of features occur.
The straight forward union function is not working in case of surfpoints
surf3=union(surf1,surf2)
is throwing up error that sort feature is not aplicable for surfpoints object

Answers (1)

Qu Cao
Qu Cao on 19 Nov 2019
Edited: Qu Cao on 19 Nov 2019
surf3 = union(surf1, surf2, 'rows');

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!