original imageI have a 16 bit tiff image. I would like to get following information from the image
maximum intensity count.
even though my bit size is 16 bit, why is my color bar restricted to 256 or 8 bits.
histogram I have written a sample code to do the same and I do not know what are the numbers on x and y axis represent. Could you please help me with this
import matplotlib.pyplot as plt
import matplotlib.image as mpimg import numpy as np image = mpimg.imread('r1Ls01N000001.tif') plt.imshow(image,cmap='gray') plt.colorbar() plt.show() plt.hist(x=image.ravel()) plt.show() imax=np.max(image) print(imax)
Result Imax value will be displayed as 264, is the 264 intensity count or bit number? Resulting image from my code