how to convert grayscale image to binary matrix?
Show older comments
can anyone help this question?
Answers (1)
Star Strider
on 23 Mar 2018
0 votes
6 Comments
SHIREESHA THADKAPALLY
on 23 Mar 2018
Edited: Image Analyst
on 23 Mar 2018
Star Strider
on 23 Mar 2018
Image Analyst
on 23 Mar 2018
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
on 24 Mar 2018
Star Strider
on 24 Mar 2018
Edited: Star Strider
on 24 Mar 2018
Experiment with your image to get the result you want. See the documentation for the functions we referenced.
Eduard Solovev
on 23 May 2018
SHIREESHA THADKAPALLY,did you find the answer?
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!