MATLAB: How to find the local maxima and minima of histogram for color image

image processingImage Processing ToolboxSignal Processing Toolbox

please help me i need it immedaitely

Best Answer

Like we said in your duplicate question from last month, use findpeaks() in the Signal Processing Toolbox
[peakValues, peakIndexes] = findpeaks(counts);
[~, valleyIndexes] = findpeaks(-counts);
valleyValues = counts(valleyIndexes);
just do that for each histogram from each color channel.
Related Question