How to convert the decimal value of the image to binary using matlab?

조회 수: 1 (최근 30일)
Veera Kalyani S
Veera Kalyani S 2017년 1월 7일
답변: Image Analyst 2017년 1월 7일
Whether it is possible to get binary value of an image and consider it as a string?

답변 (1개)

Image Analyst
Image Analyst 2017년 1월 7일
Yes, use dec2bin()
binaryString = dec2bin(grayImage(row, column));

Community Treasure Hunt

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

Start Hunting!

Translated by