使得原本特征不明显的图片变得更明显些
img = cv2.imread('../car/car1.png', 0)
img1 = cv2.equalizeHist(img)
cv2.imshow('next', img1)
cv2.imshow('pre', img)
cv2.waitKey(0)
cv2.destroyAllWindows()
img = cv2.imread('../car/car1.png', 0)
img1 = cv2.equalizeHist(img)
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
img2 = clahe.apply(img)
list = np.hstack((img, img1, img2))
cv2.imshow('pre', list)
cv2.waitKey(0)
cv2.destroyAllWindows()
自适应均衡化有利于提取特征密集的图片