Is there no difference between logical and uint8 regarding disk space (or memory)?

Hi,
I am conducting image processing and I have one question about disk space occupied by logical (binary) data.
I understand that binary means 1-bit which consists of 1 and 0.
So I thought that binary image will take smaller amount of memory than 8-bit data.
However when I check the size('bytes' using 'whos' function) there is no difference between binary and uint8 data.
Could you tell me why there is no difference? is there any wrong?
If the matlab cannot handle binary data as it is, I think there could be better manner to handle binary data

 채택된 답변

Stephen23
Stephen23 2019년 4월 26일
편집: Stephen23 2019년 4월 26일
"I understand that binary means 1-bit which consists of 1 and 0."
Nope, binary data is stored with one byte per element:
"I think there could be better manner to handle binary data "
I doubt it. Accessing one single bit of memory is much slower:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

ASD
2019년 4월 26일

편집:

2019년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by