Normalize the image.
显示 更早的评论
Hi sir i have this program to normalized the databese of images but when i run this program i have the error in :S(:,i)=(temp-m)*std/st+m; if you help me sir and thank you a lot ????
temp=reshape(img',irow*icol,1);
%S will eventually be a (N1*N2) x M matrix.
S=[S temp];
%Normalize.%Normalize.
for i=1:size(S,2)
temp=double(S(:,i));
m=mean(temp);
st=std(temp);
S(:,i)=(temp-m)*ust/st+um;
end
4 个评论
KALYAN ACHARJYA
2019-10-18
Please do provide all details, img, irow, icol, S?
Adam
2019-10-18
Also what is 'the error' supposed to mean?! Errors come with details usually that help you work out what the problem is.
sarine_nassima
2019-10-22
Adam
2019-10-23
Well, yes, given the code you provided they are undefined. The error message tells you precisely what the problem is!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!