フィルターのクリア

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.
Walter Roberson
Walter Roberson 2017 年 3 月 6 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by