How to convert MATLAB binary feature matrix to decimal?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!