how to split a gray image into dark, middle and bright pixels
1 次查看(过去 30 天)
显示 更早的评论
how to split a gray image into dark, middle and bright pixels
0 个评论
采纳的回答
Image Analyst
2014-7-14
You would have to know the algorithm they're using because there are quite a few gray levels that seem to be in all three classes. I think there is quite a bit of overlap in what they call dark, middle, and bright.
2 个评论
Image Analyst
2014-7-14
Simple method is thresholding
darkPixels = grayImage(grayImage < 100));
middlePixels = grayImage((grayImage >= 100) & (grayImage <= 200));
brightPixels = grayImage(grayImage > 200));
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!