MATLAB Answers

0

conversion of image to the form of ones and zeros.

Asked by talha ali on 16 Oct 2019 at 17:36
Latest activity Commented on by Walter Roberson
on 16 Oct 2019 at 18:54
matlab.PNG
I want to convert this image into binary form as demonstrated in image.

  1 Comment

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.

Sign in to comment.

1 Answer

Answer by Sulaymon Eshkabilov on 16 Oct 2019 at 17:51

Hi,
These two commands will do most of the work:
A = imread('MY_image.jpg');
B = im2bw(A);
Good luck

  1 Comment

But these commands covert image into large dimensions.I want to convert it in 10 by 5 matrix

Sign in to comment.