平均輝度の表示ができなくなった
이전 댓글 표시
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
Dyuman Joshi
2023년 10월 30일
@suzuka iwaki, Is this question is related to https://in.mathworks.com/matlabcentral/answers/2039391-?s_tid=prof_contriblnk
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 コマンドの入力에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!