【发布时间】:2019-09-13 11:04:11
【问题描述】:
我是一个新的opencv,我遇到了麻烦。 我有一个 np.array 颜色,我想将 np.array 颜色添加到我的图像中 这是我要添加的 np.array 颜色
turbo_colormap_data = np.array(
[[0.18995,0.07176,0.23217],
[0.19483,0.08339,0.26149],
[0.19956,0.09498,0.29024],
..................
[ ]) 255
我试过了:
cv2.LUT(src,lut,dst)
src = image("XXX.jpg)
lut = turbo_colormap_data
dst = image (YYY.jpg)
但我可以使用它,这是错误的。 如果您有想法或文件,请告诉我。 非常感谢,
这是消息错误:
(lutcn == cn || lutcn == 1) && _lut.total() == 256
&& _lut.isContinuous() && (depth == CV_8U || depth == CV_8S) in function 'cv::LUT'
【问题讨论】:
标签: numpy opencv-python