I have a numpy array of size (512,512)
with maximum intensity of 3071 and minimum intensity of -1024. I want to preserve the intensity while converting it to (512,512,1).
I tried
Image.Open(fromarray().convert('L'))
but it converts the intensities to 0 and 255.
Please guide me what can be the best way to achieve the above goal. Original data is grayscale.