How would I detect gray/white pixels in a picture?
14 views (last 30 days)
Show older comments
Answered: Walter Roberson on 9 Aug 2022
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 on 9 Aug 2022
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.
More Answers (1)
KSSV on 8 Aug 2022
REad about find. Gve the pixle value as zero and use find. This will give you the indices.
[y,x] = find(I==0) ; % I is gray image
Find more on Motion Detection 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!