フォルダー内の画像の​lab値を読み取り,​それぞれの値を変数l​,a,bに代入する.

3 次查看(过去 30 天)
周也 寺内
周也 寺内 2022-4-23
フォルダー内の画像を読み取る.
画像のlab値を読み取る.
変数l,a,bを定義し,画像のlab値をそれぞれ対応するものに代入する.

采纳的回答

Akira Agata
Akira Agata 2022-4-24
以下のような処理のイメージでしょうか?
% フォルダー内の画像を読み取る.
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')
  1 个评论
周也 寺内
周也 寺内 2022-5-4
本件ありがとうございます.
無事動作いたしました.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!