Image Processing
Image Brightness and Contrast 변경
민토즈
2020. 10. 14. 14:00
300x250
image = cv2.imread("Lenna.png", cv2.IMREAD_COLOR) dst_1 = cv2.convertScaleAbs(image, alpha=1.2, beta=-20) dst_2, alpha, beta = automatic_brightness_and_contrast(image) #자동으로 brightness와 contrast를 조정할 수 있는 alpha, beta 값 return |
histogram의 픽셀 분포에 따라서 자동으로 brightness와 contrast를 조정할 수 있는 alpha와 beta값을 구할 수 있다.
300x250