How can I detect 0.5 percent brightest pixels in an image?
1 view (last 30 days)
Show older comments
I have a grayscale image.I need to find the 0.5 percent brightest pixels in that image. But my image contain differet object. I want to find the 0.5 percent brightest pixels in an for each object.
Could you help me ?
2 Comments
Adam
on 25 Feb 2019
brightnessVal = prctile( img, 99.5 );
brightestPixels = img >= brightnessVal;
should give you a mask of the brightest pixels in a given greyscale image. How you take your original image and define objects from it to create individual img arguments for this is an entirely different question to the one in the title though and plenty more complicated.
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!