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
'Image Processing' 카테고리의 다른 글
Image Flip (Horizontal/Vertical) (0) | 2020.10.14 |
---|---|
Image Sharpening / Unsharp Image (0) | 2020.10.14 |
image gamma 값 조정 (gamma correction) (0) | 2020.10.14 |
Image Blur/Smoothing/Gaussian Blur/Median Blur/Bilateral Filter/Motion Blur (0) | 2020.10.13 |
Histogram Equalization (히스토그램 평활화)/CLAHE (0) | 2020.10.12 |