Borrar filtros
Borrar filtros

how to draw histogram of an RGB image

14 visualizaciones (últimos 30 días)
Parveiz Lone
Parveiz Lone el 3 de Ag. de 2019
Comentada: Parveiz Lone el 18 de Ag. de 2019
  1 comentario
Parveiz Lone
Parveiz Lone el 18 de Ag. de 2019
My histogram is like that not similar to above histo..is there any problem or it may be version difference i am using 2016 version

Iniciar sesión para comentar.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 3 de Ag. de 2019
Editada: KALYAN ACHARJYA el 3 de Ag. de 2019
image_test=imread('Baboon.jpeg');
red_plane=image_test(:,:,1);
green_plane=image_test(:,:,2);
blue_plane=image_test(:,:,3);
[red_data pixel_level]=imhist(red_plane);
[green_data pixel_level]=imhist(green_plane);
[blue_data pixel_level]=imhist(blue_plane);
bar(pixel_level, red_data,'r');
hold on;
bar(pixel_level, green_data,'g');
bar(pixel_level, blue_data,'b');
Note: You can plot all in single matlab line code.
pic11.png
  4 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 4 de Ag. de 2019
I have answered, please check.
Parveiz Lone
Parveiz Lone el 4 de Ag. de 2019
That i have checked and that was perfect But now i need for second one ..scatter plot

Iniciar sesión para comentar.

Más respuestas (0)

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!

Translated by