필터 지우기
필터 지우기

How to i get binary number from image ?

조회 수: 1 (최근 30일)
afif fadilah
afif fadilah 2017년 2월 16일
댓글: Walter Roberson 2017년 3월 6일
how to get binary number from image? what tools or function in matlab? this is example image :

답변 (1개)

Adam
Adam 2017년 2월 16일
If the image is greyscale and only has values of 0 or 'non-zero' then it is just trivially
binaryVals - logical( myImage );
If it is in true RGB and you still just want effectively black and 'non-black' (which in this case looks like it is all just white) then
binaryVals = logical( sum( myImage, 3 ) );
should work.
  댓글 수: 4
afif fadilah
afif fadilah 2017년 3월 6일
thank u for your answer, this image is braille text, i want to translate braille text to alphabet, so i have to get feature extraction for classification.

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by