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

フォルダー内の画像を読み取る.
画像のlab値を読み取る.
変数l,a,bを定義し,画像のlab値をそれぞれ対応するものに代入する.

 채택된 답변

Akira Agata
Akira Agata 2022년 4월 24일

0 개 추천

以下のような処理のイメージでしょうか?
% フォルダー内の画像を読み取る.
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개)

카테고리

도움말 센터File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품

릴리스

R2022a

태그

질문:

2022년 4월 23일

댓글:

2022년 5월 4일

Community Treasure Hunt

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

Start Hunting!