zero-mean deviation on image
2 ビュー (過去 30 日間)
古いコメントを表示
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?
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!