1、题目介绍
2、代码
import cv2
import numpy as np
import matplotlib.pyplot as plt
def gamma_correction(img, c=1, g=2.2):
out = img.copy()
out /= 255. # 很重要,先进行归一化,限定在【0,1]范围内。
out = (1 / c) * out **
1、题目介绍
2、代码
import cv2
import numpy as np
import matplotlib.pyplot as plt
def gamma_correction(img, c=1, g=2.2):
out = img.copy()
out /= 255. # 很重要,先进行归一化,限定在【0,1]范围内。
out = (1 / c) * out **