i need the code for local maximum and local minimum of histogram for the gray scale and color image

 채택된 답변

My crystal ball is predicting that you are doing histogram equalization and that what you need is mode after quantizing the values.

댓글 수: 3

i need the local maxima and local minima of histogram for gray scale and color image in matlab please do help it
Then
[peakValues, peakIndexes] = findpeaks(counts);
[~, valleyIndexes] = findpeaks(-counts);
valleyValues = counts(valleyIndexes);
should do it for you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

질문:

2015년 12월 13일

댓글:

2021년 2월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by