converting image to zeros and ones
10 views (last 30 days)
Show older comments
Hi I have an image 32x32 pixels want to convert it to zeros and ones like the following ...any idea how it can be done easily thanks (Note: I dont know how these binary numbers will show up after posting but it is just a 32x32 matrix of 0s and 1s )
00000000000000000000011100000000
00000000000011111111111111000000
00000000001111111111111111100000
00000000111111111111111111000000
00000000111111111111111111000000
00000000111111111111111111000000
00000000011111111111111111100000
00000000011111100000111111000000
00000000000000000000111111000000
00000000000000000000111111000000
00000000000000000000111111000000
00000000000000000000111111000000
00000000000000000001111100000000
00000000000000000001111100000000
00000000000000000111111000000000
00000000000100011111111000000000
00000000011111111111111100000000
00000000111111111111111100000000
00000001111111111111111110000000
00000011111111111111111110000000
00000011111111111111111100000000
00000001111111111111100000000000
00000000000001111111000000000000
00000000000001111111000000000000
00000000000011111100000000000000
00000000000111111100000000000000
00000000000111111100000000000000
00000000000111111100000000000000
00000000000111111100000000000000
00000000001111111100000000000000
00000000011111111000000000000000
00000000000111100000000000000000
0 Comments
Answers (1)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!