How to convert MATLAB binary feature matrix to decimal?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Preetham Manjunatha
am 23 Dez. 2020
Kommentiert: Walter Roberson
am 23 Dez. 2020
I have binary feature matrices from BRISK, FREAK and ORB descriptors with 512 number of bits.
I tried to use:
d = bi2de(featuresBRISK.Features(:,1),512);
But they are just converted to uint8. How can I convert them to decimal for image classification problem?
6 Kommentare
Walter Roberson
am 23 Dez. 2020
You can bitget() to extract bits from uint8 if you need to. Or use
bitstream = reshape((dec2bin(A,8) - '0').', 1, [])
Akzeptierte Antwort
Image Analyst
am 23 Dez. 2020
If you want/need d to be double instead of uint8, for other purposes like feature analysis, do this:
d = double(d);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Recognition, Object Detection, and Semantic Segmentation 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!