How to normalize an image?

3 views (last 30 days)
Valeska Pearson
Valeska Pearson on 25 Jul 2013
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 Comment
Narges M
Narges M on 25 Jul 2013
imshow(GS*255) usually fixes the problem. Let me know if it does.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!