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 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Image Analyst
2015-2-28
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!