- SIFTPoints: www.mathworks.com/help/vision/ref/siftpoints.html
- detectSIFTFeatures: www.mathworks.com/help/vision/ref/detectsiftfeatures.html
Is there a way to append a SiftPoints Object?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I tried using vertcat to concatenate 2 SiftPoint objects, however it fails during code generation. Is there any alternate method to do the same?
0 commentaires
Réponses (1)
Shantanu Dixit
le 29 Août 2024
Hi Kunal, It is not possible to concatenate 'SIFTPoints' objects directly, as MATLAB treats them as scalar objects that encapsulate their data internally. Instead you should handle the concatenation of the underlying data (eg. point locations) and subsequently construct a new 'SIFTPoints' object.
Below example code briefly describes how this can be achieved:
I1 = imread('i1.tif');
I2 = imread('i2.tif');
points1 = detectSIFTFeatures(I1);
points2 = detectSIFTFeatures(I2);
strongest1 = points1.selectStrongest(10);
strongest2 = points2.selectStrongest(10);
points1 = SIFTPoints(strongest1.Location);
points2 = SIFTPoints(strongest2.Location);
% concat the points from both the objects
loc1 = points1.Location;
loc2 = points2.Location;
combinedLocations = [loc1; loc2];
% Create a new SIFTPoints object
combinedPoints = SIFTPoints(combinedLocations);
Refer to the below MathWorks documention for more information:
0 commentaires
Voir également
Catégories
En savoir plus sur Feature Detection and Extraction dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!