OpenCV 3 Computer Vision with Python Cookbook
上QQ阅读APP看书,第一时间看更新

How it works...

Gamma correction is a non-linear operation that adjusts image pixel intensities. The operation is represented through the power-law relationship between input and output pixel values: . The values with an exponent coefficient higher than 1 make the image darker, while the values less than 1 make the image brighter.

The following output is expected for the preceding code: