i have black images and black images contains small white led, how could i convert the images in black to 0 (binary) and the images in small led to 1?
1 view (last 30 days)
Show older comments
i have black images and black images contains small white led, how could i convert the images in black to 0 (binary) and the images in small led to 1?
0 Comments
Answers (1)
Image Analyst
on 28 Feb 2015
You forgot to attach the images, but it sounds like you just threshold them
binaryImage = grayImage > someValue;
someValue would be some gray level, like 128 or whatever.
2 Comments
See Also
Categories
Find more on Image Processing and Computer Vision 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!