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

조회 수: 3 (최근 30일)
周也 寺内
周也 寺内 2022년 4월 23일
댓글: 周也 寺内 2022년 5월 4일
フォルダー内の画像を読み取る.
画像の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에서 幾何学的変換とイメージ レジストレーション에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!