I am trying to convert a picture into a binary code of o’s and 1’s. I know that mathematica has a Binarize command that will convert a picture into black and white, but I need to create an image of all 0’s and 1’s.
Binarize does create an image of all 0s and 1s, but it is still an image. If you want to convert the black and white image into a matrix of 0s and 1s for other types of operations you can use ImageData after Binarize.