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

1 次查看(过去 30 天)
please help me

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by