300x250
| def gamma_correction(image, gamma=1.0): invGamma = 1.0 / gamma table = np.zeros((256, 1), dtype='uint8') for i in range(256): table[i] = ((i / 255.0) ** invGamma) * 255 return cv2.LUT(image, table) |

300x250
'Image Processing' 카테고리의 다른 글
| Image Sharpening / Unsharp Image (0) | 2020.10.14 |
|---|---|
| Image Brightness and Contrast 변경 (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 |
| Invert Image color / Invert Image lightness (python opencv) (0) | 2020.10.08 |