Solved by Pranavan_Theivendira in post #2 
              
              
                Hi, 
For imshow, if the image is 3 channel / RGB,  the pixel values should be [0-1] float or [0-255] int. I feel that the problem is coming from data type of pixel values. 
If it does not fix your issue, please print some values in img. 
Thanks