conversion of image to the form of ones and zeros.
6 ビュー (過去 30 日間)
古いコメントを表示
I want to convert this image into binary form as demonstrated in image.
1 件のコメント
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
2019 年 10 月 16 日
Hi,
These two commands will do most of the work:
A = imread('MY_image.jpg');
B = im2bw(A);
Good luck
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!