How to calculate the low and the high value of the threshold (histogram) ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
can you help me, which function allows to calculate the low and the high value of the threshold (histogram)like the following histogram
0 Commenti
Risposte (1)
KSSV
il 17 Ott 2017
doc min and max. Also see this code by Image Analyst
[pixelCounts, grayLevels] = imhist(grayImage);
minGrayLevel = min(grayImage(:));
maxGrayLevel = max(grayImage(:));
% or
minGrayLevel = find(pixelCounts > 0, 1, 'first');
maxGrayLevel = find(pixelCounts > 0, 1, 'last');
minCounts = min(pixelCounts(:));
maxCounts = max(pixelCounts(:));
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!