Black and white image
Show older comments
Hello every one, i want to ask two similar things
1.If image is pure black and white matlab should tell me that image is pure black & white and if grayscale it should tell that its grayscale.
2.in my grayscale image if some pure black or white part come it should save it an array and other gray scale values should be saved in another array. i am attaching a black& white image for reference. Thanks

Accepted Answer
More Answers (1)
Kenneth Sampson
on 11 Aug 2016
Edited: DGM
on 14 Oct 2022
0 votes
It's my first time to know that Matlab can convert to black and white, I don't know b w photos can be made outside of photo software, thanks for shares.
1 Comment
Image Analyst
on 11 Aug 2016
I always avoid the phrase "black and white" because it's imprecise. I use the more precise terms "gray scale" or "binary" instead.
Sometimes people mean "black and white" to mean an image with only black and white, like a binary image, which is actually of class "logical". It has only black and/or white - there are no grays in between.
Sometimes people say "black and white" to mean like "black and white" televisions where the image is actually gray scale - it has black, white, and everything in between.
So for these reasons, I use only gray scale or binary and avoid the ambiguous term "black and white".
Categories
Find more on Modify Image Colors 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!