How can I detect 0.5 percent brightest pixels in an image?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Adam
2019 年 2 月 25 日
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.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!