How to normalize an image?

3 ビュー (過去 30 日間)
Valeska Pearson
Valeska Pearson 2013 年 7 月 25 日
Hello digital image processing people,
I have a dataset of retinal images from the eye. I need to normalize them before processing to obtain accurate output. Here is my code:
The problem is after doing this, imshow display only black image. What must I do to fix this?
B is the image
gemiddeld=mean2(B)
standaard_afwyking=std2(B)
NormalizedArray = (B-gemiddeld) ./ standaard_afwyking;
GS = NormalizedArray ./ max(NormalizedArray(:))-min(NormalizedArray(:));
NormArrayU8 = uint8(255*(NormalizedArray+ 3)./6)
figure, imshow(GS);
  1 件のコメント
Narges M
Narges M 2013 年 7 月 25 日
imshow(GS*255) usually fixes the problem. Let me know if it does.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by