(B, G, R) = cv2.split(img)
IB = equalization_bihistogram(B)
IG = equalization_bihistogram(G)
IR = equalization_bihistogram(R)
IN = np.concatenate((IB, IG, IR))
plt.subplot(1, 2, 1)
plt.title("A).Histogram Equalization")
plt.imshow(img)
plt.show()
plt.subplot(1, 2, 2)
plt.title("B).Bi-histogram Equalization")
plt.imshow(cv2.normalize(IN), cmap='gray')
plt.show()
错误是:-TypeError:normalize()缺少必需的参数“ dst”(位置2),我尝试在cv2.normalize函数中将第二个参数设置为“ None”,但这不起作用。