How to convert MATLAB binary feature matrix to decimal?

1 visualización (últimos 30 días)
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 comentarios
Preetham Manjunatha
Preetham Manjunatha el 23 de Dic. de 2020
When I use the BRISK features, currently, it is in a matix form of uint8. I am going to use it for a classifcation problem.
Walter Roberson
Walter Roberson el 23 de Dic. de 2020
You can bitget() to extract bits from uint8 if you need to. Or use
bitstream = reshape((dec2bin(A,8) - '0').', 1, [])

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 23 de Dic. de 2020
If you want/need d to be double instead of uint8, for other purposes like feature analysis, do this:
d = double(d);

Más respuestas (0)

Categorías

Más información sobre Computer Vision Toolbox en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by