Loading...
Implement a point operator to apply gamma correction to an image. This process transforms the image's intensity values to adjust its brightness and contrast.
Gamma correction is a non-linear operation that modifies the image's pixel values based on a power-law relationship, which can brighten or darken regions. The gamma value determines the amount of correction, where values less than 1 increase the brightness of dark areas and values greater than 1 decrease the brightness.
Here are the steps to perform gamma correction:
This technique is widely used in image and video processing applications to adjust the display's brightness and contrast.
gamma_correct([[64, 128]], 0.5)
[[128, 181]]