フォルダー内の画像のlab値を読み取り,それぞれの値を変数l,a,bに代入する.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
フォルダー内の画像を読み取る.
画像のlab値を読み取る.
変数l,a,bを定義し,画像のlab値をそれぞれ対応するものに代入する.
0 commentaires
Réponse acceptée
Akira Agata
le 24 Avr 2022
以下のような処理のイメージでしょうか?
% フォルダー内の画像を読み取る.
I = imread('peppers.png');
% 画像のlab値を読み取る.
Ilab = rgb2lab(I);
% 変数l,a,bを定義し,画像のlab値をそれぞれ対応するものに代入する.
l = Ilab(:,:,1);
a = Ilab(:,:,2);
b = Ilab(:,:,3);
% 念のため確認
figure
tiledlayout('flow')
nexttile
imshow(I)
title('Original')
nexttile
imshow(l,[])
title('L')
nexttile
imshow(a,[])
title('a')
nexttile
imshow(b,[])
title('b')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 表示と調査 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!