programme matlab pour calculer et trace l'histogramme d'une image

33 visualizaciones (últimos 30 días)
Je  Je vous
Je Je vous el 21 de Oct. de 2021
Editada: Dave B el 21 de Oct. de 2021
I

Respuestas (2)

Chunru
Chunru el 21 de Oct. de 2021
I = imread('pout.tif');
imhist(I)

Dave B
Dave B el 21 de Oct. de 2021
Editada: Dave B el 21 de Oct. de 2021
im=imread('peppers.png'); % exemple d'image
imshow(im)
Si vous avez Image Processing Toolbox:
figure
imhist(im)
Autrement:
im=imread('peppers.png');
histogram(im(:),255,'EdgeColor','none')
xlim('tight')
RGB:
figure
im=imread('peppers.png');
r=im(:,:,1);
g=im(:,:,2);
b=im(:,:,3);
t=tiledlayout(3,1);
nexttile
histogram(r(:),255,'EdgeColor','none','FaceColor','r')
nexttile
histogram(g(:),255,'EdgeColor','none','FaceColor','g')
nexttile
histogram(b(:),255,'EdgeColor','none','FaceColor','b')
xlim(t.Children,'tight')

Categorías

Más información sobre Read, Write, and Modify Image 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