平均輝度の表示ができなくなった
Show older comments
jpegFiles = dir('*.jpg');
numfiles = 162;
mydata = cell(1, numfiles);
for k = 1:numfiles
mydata{k} = imread(jpegFiles(k).name);
RGB = imread(jpegFiles(k).name);
graying = rgb2gray(RGB);
meanLuminance = mean(graying,"all");
end
上記のコードで、グレースケールの画像の平均輝度を出そうと思っているのですが、結果もエラーも表示されない状況で困っています。先週、同じコードで実行した際には上手くいったのですが、どこか知らないうちにいじってしまった可能性もあります。よろしくお願いします。
1 Comment
Dyuman Joshi
on 30 Oct 2023
@suzuka iwaki, Is this question is related to https://in.mathworks.com/matlabcentral/answers/2039391-?s_tid=prof_contriblnk
Accepted Answer
More Answers (0)
Categories
Find more on コマンドの入力 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!