How would I detect gray/white pixels in a picture?
3 次查看(过去 30 天)
显示 更早的评论
I am trying to write a function to detect white-like and gray-like pixels in a given colored picture. I am stuck on how to go about it. Any help is appreciated.
采纳的回答
Walter Roberson
2022-8-9
Convert for HSV, check for "high" V (near 1) and "small" (near 0) S. You will need to decide on the exact boundaries, depending how "white like" or "gray like" you want to allow.
0 个评论
更多回答(1 个)
另请参阅
类别
在 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!