感谢@moarningsun,问题得以解决:
i = cv2.imread(imgNameIn, cv2.CV_LOAD_IMAGE_COLOR) # Need to be sure to have a 8-bit inputimg = np.array(i, dtype=np.uint16) # This line only change the type, not valuesimg *= 256 # Now we get the good values in 16 bit format

感谢@moarningsun,问题得以解决:
i = cv2.imread(imgNameIn, cv2.CV_LOAD_IMAGE_COLOR) # Need to be sure to have a 8-bit inputimg = np.array(i, dtype=np.uint16) # This line only change the type, not valuesimg *= 256 # Now we get the good values in 16 bit format