detectSIFTFeatures only working for uint8
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Michael Jones
am 19 Mär. 2024
Kommentiert: Michael Jones
am 19 Mär. 2024
I = imread('cameraman.tif');
points = detectSIFTFeatures(I);
Gives me heaps of points as expected
I = imread('cameraman.tif');
points = detectSIFTFeatures(double(I));
gives no points. The same zero points retured for anything other than uint8, for every image I've tried. The same behaviour is true for SURF points.
Does anyone have any suggestions?
0 Kommentare
Akzeptierte Antwort
Udit06
am 19 Mär. 2024
Hi Michael,
If you want to use an image of double data type as input, you should first scale it down to the range [0, 1]. Doing so will give you the similar results that you are getting with uint8 data type. Here is the code for the same.
I = imread('cameraman.tif');
points1 = detectSIFTFeatures(I)
I = imread('cameraman.tif');
points2 = detectSIFTFeatures(double(I)/255)
You can refer to the following note of the MathWorks documentation for the same.
I hope this helps.
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Feature Detection and Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!