zero-mean deviation on image

2 visualizaciones (últimos 30 días)
Valeska Pearson
Valeska Pearson el 18 de Jul. de 2013
I can find to obtain the right output, after doing the statistical normalization on retinal image. It is to standardize all images, because some are dark and other are too light.
Here follows my code:
DefaultName = 'C:\Users\nvg\Desktop\Hoofstuk 3\Matlab\images';
[FileName,PathName,FilterIndex] = uigetfile(FilterSpec,'Image file selector',DefaultName);
if (FilterIndex >0)
LeerNaam = strcat(PathName,FileName); % get filename
OriginalRGB = imread(LeerNaam); % read image
end
figure, imshow(OriginalRGB);
gemiddeld=mean2(OriginalRGB)
standaard_afwyking=std2(OriginalRGB)
NormalizedArray = (OriginalRGB-gemiddeld) ./ standaard_afwyking;
NormalizedArray =((NormalizedArray+ 3)./ 6).*255
I want it to be in linear format between 0-255?
  1 comentario
Valeska Pearson
Valeska Pearson el 18 de Jul. de 2013
I am getting either a black image or a white image. Why can't I get a normalized version image?

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by