【发布时间】:2017-04-28 06:47:42
【问题描述】:
我想在matlab中计算多张图像红色通道的均值和标准差。
到目前为止,这是我的代码:
imagesPath = imageSet('path');
n = size(imagesPath.ImageLocation,2)
sum = zeros(512,512);
for i=1 : n
I = imread(imagesPath.ImageLocation{i});
I = imresize(I, [512 512]);
I = double(I);
I = rgb2gray(I);
sum = sum + I;
end
m = sum. /n;
【问题讨论】:
-
没有问题。你的代码有什么问题?