Currently, I am doing histogram equalization on a 16 bit image, would the range change from [0, 65536] after the process?
import numpy as np
hist, bins = np.histogram(img.flatten(), 65536, [0, 65536]) # Collect 16 bits histogram (65536 = 2^16)
Currently, I am doing histogram equalization on a 16 bit image, would the range change from [0, 65536] after the process?
import numpy as np
hist, bins = np.histogram(img.flatten(), 65536, [0, 65536]) # Collect 16 bits histogram (65536 = 2^16)
The range of pixel intensities would stay [0, 65536] due to the weight factor of 65536 in the transform map. More details in link below.
transform_map = np.floor(65536* chistogram_array).astype(np.uint8)