フィルターのクリア

エクセルに表として出力するための表の作り方

3 ビュー (過去 30 日間)
suzuka iwaki
suzuka iwaki 2023 年 10 月 31 日
コメント済み: Dyuman Joshi 2023 年 10 月 31 日
jpegFiles = dir('*.jpg');
numfiles = 162;
mydata = cell(1, numfiles);
T = table((1:162)', zeros(162,1), 'VariableNames', {'Serial_No.', 'meanLuminance'})
for k = 1:numfiles
mydata{k} = imread(jpegFiles(k).name);
RGB = imread(jpegFiles(k).name);
graying = rgb2gray(RGB);
meanLuminance = mean(graying,"all")
T{k,2} = meanLuminance;
end
162枚の画像の1枚ずつの平均輝度を計算し、それを表にしたいのです。しかし、上のコードでは、162×2の行列の表は作れたのですが、meanLuminanceのところに平均輝度の計算結果が表示されず、困っています。よろしくお願いします。
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 31 日
@suzuka iwaki, It would be better if you respond to the answer(s) given, instead of asking a new question. https://in.mathworks.com/matlabcentral/answers/2039391-?s_tid=prof_contriblnk

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!