How to convert MATLAB binary feature matrix to decimal?

조회 수: 1 (최근 30일)
Preetham Manjunatha
Preetham Manjunatha 2020년 12월 23일
댓글: Walter Roberson 2020년 12월 23일
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
Preetham Manjunatha
Preetham Manjunatha 2020년 12월 23일
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 2020년 12월 23일
You can bitget() to extract bits from uint8 if you need to. Or use
bitstream = reshape((dec2bin(A,8) - '0').', 1, [])

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2020년 12월 23일
If you want/need d to be double instead of uint8, for other purposes like feature analysis, do this:
d = double(d);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by