how to convert grayscale image to binary matrix?

回答 (1 件)

Star Strider
Star Strider 2018 年 3 月 23 日

0 投票

See the documentation on the im2bw (link) and imbinarize (link) functions.

6 件のコメント

SHIREESHA THADKAPALLY
SHIREESHA THADKAPALLY 2018 年 3 月 23 日
編集済み: Image Analyst 2018 年 3 月 23 日
I need grayscale image to be an 8 by 8 binary matrix.
Star Strider
Star Strider 2018 年 3 月 23 日
See the documentation on Matrix Indexing (link).
Image Analyst
Image Analyst 2018 年 3 月 23 日
After thresholding with the functions, or yourself like this:
binaryImage = grayImage > someThreshold;
call imresize() to make the image 8 by 8
binaryImage = imresize(binaryImage, [8,8], 'nearest');
SHIREESHA THADKAPALLY
SHIREESHA THADKAPALLY 2018 年 3 月 24 日
i didn't get your ans..please give some examples or write complete code for this
Star Strider
Star Strider 2018 年 3 月 24 日
編集済み: Star Strider 2018 年 3 月 24 日
Search the File Exchange (link) for Image Analyst’s demonstrations.
Experiment with your image to get the result you want. See the documentation for the functions we referenced.
Eduard Solovev
Eduard Solovev 2018 年 5 月 23 日
SHIREESHA THADKAPALLY,did you find the answer?

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

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2018 年 3 月 23 日

コメント済み:

2018 年 5 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by