i need the code for local maximum and local minimum of histogram for the gray scale and color image
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
venmal devi
el 13 de Dic. de 2015
Comentada: rugveth sai
el 1 de Feb. de 2021
please help me
0 comentarios
Respuesta aceptada
Walter Roberson
el 13 de Dic. de 2015
You might possibly be asking for findpeaks(). Or you might possibly be asking for http://www.mathworks.com/help/images/ref/imregionalmax.html. Or perhaps you are looking for http://www.mathworks.com/help/vision/ref/vision.localmaximafinder.step.html . Or maybe http://www.mathworks.com/help/wavelet/ref/localmax.html. Or you could use http://www.mathworks.com/help/images/ref/imdilate.html and http://www.mathworks.com/help/images/ref/imerode.html
My crystal ball is predicting that you are doing histogram equalization and that what you need is mode after quantizing the values.
3 comentarios
Image Analyst
el 18 de En. de 2016
Then
[peakValues, peakIndexes] = findpeaks(counts);
[~, valleyIndexes] = findpeaks(-counts);
valleyValues = counts(valleyIndexes);
should do it for you.
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!