how to obtain the threshold 25% of the gray intensities?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
fred bnm
am 25 Okt. 2016
Kommentiert: Image Analyst
am 25 Okt. 2016
Hi, i want to binarize an image by using thresholding.how to obtain threshold 25% of the gray intensities? (25% of the lower gray intensities are discarded) please gudie me.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 25 Okt. 2016
Try this
binarizedImage = grayImage > 0.25 * intmax(class(grayImage));
That should work for uint8 or uint16 images and produce a logical image of the same size.
6 Kommentare
Image Analyst
am 25 Okt. 2016
You have to be more precise in your wording. "pixels that have 75% of the total gray level image" is not precise enough to know what you mean. Do you mean a gray level such that when thresholded at that gray level, 75% of the pixels will be selected? Or do you mean the gray level that is at 25% of the max gray level allowed for that class (uint8 or uint16)? Or do you mean the gray level that is 25% of the max gray level that occurs in the image? Or something else. I don't know.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!