zero-mean deviation on image

2 vues (au cours des 30 derniers jours)
Valeska Pearson
Valeska Pearson le 18 Juil 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 commentaire
Valeska Pearson
Valeska Pearson le 18 Juil 2013
I am getting either a black image or a white image. Why can't I get a normalized version image?

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by