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

3 views (last 30 days)
please help me

Accepted Answer

Walter Roberson
Walter Roberson on 13 Dec 2015
My crystal ball is predicting that you are doing histogram equalization and that what you need is mode after quantizing the values.
  3 Comments
Image Analyst
Image Analyst on 18 Jan 2016
Then
[peakValues, peakIndexes] = findpeaks(counts);
[~, valleyIndexes] = findpeaks(-counts);
valleyValues = counts(valleyIndexes);
should do it for you.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!