Hello AJITH,
You can use the “detectSIFTFeatures” and “extractFeatures” functions from the Computer Vision Toolbox to extract SIFT features in MATLAB.
Then, to compare the SIFT features with those of the query image using Euclidean distance, and rank them based on similarity, use the “pdist2” function.
distances = pdist2(queryFeatures, databaseFeatures, 'euclidean');
Here are the links to these functions which you can refer for more information:
- detectSIFTFeatures : https://www.mathworks.com/help/vision/ref/detectsiftfeatures.html
- extractFeatures: https://www.mathworks.com/help/vision/ref/extractfeatures.html
- pdist2: https://www.mathworks.com/help/stats/pdist2.html