SrJ:

This function is for visualize only. So, i guess i need not normalize the input .


Right.



 SrJ:

But Why plt.imshow() i s showing a normalized image correctly??


plt.imshow supports both 0-1 and 0-255 arrays