Removing Values from Histogram

3 visualizaciones (últimos 30 días)
Vennila Gangatharan
Vennila Gangatharan el 22 de Dic. de 2012
I want to remove gray levels of particular range from Histogram of an Image. Anyone Know how to do?
  1 comentario
Matt J
Matt J el 22 de Dic. de 2012
And replace them with what?

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 22 de Dic. de 2012
Let's say you had a masked image where a huge number of pixels were black and this produced a big spike in the histogram at zero. You can suppress this by setting that bin to zero.
[pixelCount, grayLevels] = imhist(grayImage, 256);
% Suppress zero bin:
pixelCount(1) = 0;
% Now plot:
bar(grayLevels, pixelCount);

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by