【发布时间】:2018-10-11 11:39:17
【问题描述】:
我正在尝试在OpenCV 中使用Contrast Limited Adaptive Histogram Equalisation (CLAHE),但出现以下错误
代码
import cv2 as cv
from matplotlib import pyplot as plt
imgG = cv.imread('sample.png')
clahe = cv.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
imgC = clahe.apply(imgG)
fig = plt.figure(figsize = (20,20))
ax = fig.add_subplot(111)
ax.imshow(imgC, cmap='gray')
plt.show()
猜猜它发生的原因
【问题讨论】:
标签: python opencv image-processing histogram