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
欢迎分享,转载请注明来源:内存溢出
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
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)