: Bundan sonraGörüntü np.uint16'dan np.uint8'e nasıl dönüştürülür? Öyle bir görüntü oluşturma
image = np.empty(shape=(height, width, 1), dtype = np.uint16)
Ben BGR modeline görüntüyü dönüştürmek:
image = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR)
Bunu kullanmak için bir dtype = np.uint8
şimdi görüntüyü dönüştürmek istiyorum cv2.threshold()
işleviyle görüntü. Yani, görüntüyü CV_8UC1
'a dönüştürmek istiyorum.