필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by