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