conversion of image to the form of ones and zeros.

6 ビュー (過去 30 日間)
talha ali
talha ali 2019 年 10 月 16 日
コメント済み: Walter Roberson 2019 年 10 月 16 日
matlab.PNG
I want to convert this image into binary form as demonstrated in image.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 10 月 16 日
Divide the area up into blocks. Examine the mean brightness of the block. If the mean is near 0 then the block is solid and should be a 0 . If the mean is near 1 then the block is open and should be 1. A mostly-dark but some-white block is an X and is Goal.

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

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 10 月 16 日
Hi,
These two commands will do most of the work:
A = imread('MY_image.jpg');
B = im2bw(A);
Good luck
  1 件のコメント
talha ali
talha ali 2019 年 10 月 16 日
編集済み: talha ali 2019 年 10 月 16 日
But these commands covert image into large dimensions.I want to convert it in 10 by 5 matrix

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

カテゴリ

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