matlab - Showing an image -


i came matlab code first reads image , converts double follows:

i = double(imread(img)); 

after that, shows image follows:

imshow(i/max(i(:))) 

what mean? when removed max part, got image white background. goal of such division? and, why show image when done , doesn't show image if directly show read image without division max?

thanks.

the expression:

i/max(i(:)) 

just normalises pixel values range 0..1.0. dividing pixel values max value.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -