Normalize the image.

조회 수: 2 (최근 30일)
sarine_nassima
sarine_nassima 2019년 10월 9일
댓글: Adam 2019년 10월 23일
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
sarine_nassima
sarine_nassima 2019년 10월 22일
thank you for your reponse i have a error in this line
S(:,i)=(temp-m)*ust/st+um;
undefind ust and um ??????
Adam
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개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by