Normalize the image.

1 visualización (últimos 30 días)
sarine_nassima
sarine_nassima el 9 de Oct. de 2019
Comentada: Adam el 23 de Oct. de 2019
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 comentarios
sarine_nassima
sarine_nassima el 22 de Oct. de 2019
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 el 23 de Oct. de 2019
Well, yes, given the code you provided they are undefined. The error message tells you precisely what the problem is!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by