平均輝度の表示ができなくなった
Afficher commentaires plus anciens
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 commentaire
Dyuman Joshi
le 30 Oct 2023
@suzuka iwaki, Is this question is related to https://in.mathworks.com/matlabcentral/answers/2039391-?s_tid=prof_contriblnk
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur コマンドの入力 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!