フィルターのクリア

How to calculate the low and the high value of the threshold (histogram) ?

1 回表示 (過去 30 日間)
marwa za
marwa za 2017 年 10 月 16 日
回答済み: KSSV 2017 年 10 月 17 日
can you help me, which function allows to calculate the low and the high value of the threshold (histogram)like the following histogram

回答 (1 件)

KSSV
KSSV 2017 年 10 月 17 日
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(:));

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by