python-OpenCV 图像处理 -- 改变图像对比度和亮度

采用按像素的方式改变图像对比度和亮度,公式以下 python g(x)=αf(x)+β g ( x ) = α f ( x ) + β 其中 α α 调节对比度, β β 调节亮度 def Contrast_and_Brightness(alpha, beta, img): blank = np.zeros(img.shape, img.dtype) # dst = alpha *
相关文章
相关标签/搜索