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

34 ビュー (過去 30 日間)
Je  Je vous
Je Je vous 2021 年 10 月 21 日
編集済み: Dave B 2021 年 10 月 21 日
I

回答 (2 件)

Chunru
Chunru 2021 年 10 月 21 日
I = imread('pout.tif');
imhist(I)

Dave B
Dave B 2021 年 10 月 21 日
編集済み: Dave B 2021 年 10 月 21 日
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')

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by