How to normalize an image?
3 views (last 30 days)
Show older comments
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
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!