[更新]我找到更多例子,我现在可以做到 我可以在 3d 中绘制多个直方图吗? https://stackoverflow.com/questions/35210337/can-i-plot-several-histograms-in-3d
我知道这个问题已经被问过,我尝试这个如何使用 open CV 在 python 中计算 3D 直方图 https://stackoverflow.com/questions/15834602/how-to-calculate-3d-histogram-in-python-using-open-cv但它不起作用
我想要这样的东西3D直方图 https://i.stack.imgur.com/kn1FJ.png
这就是我现在所拥有的My Graph https://i.stack.imgur.com/914LE.png
hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
h,s,v = cv2.split(hsv_image)
fig = plt.figure(figsize=(8,7))
ax = plt.axes(projection='3d'), plt.title("Histogram 3D")
plt.hist(h.ravel(), 256, [0, 256])
plt.hist(s.ravel(), 256, [0, 256])
plt.hist(v.ravel(), 256, [0, 256])
我可以只使用 plt.hist() 来绘制 3d 条形图还是我需要更多东西?
我一直在寻找图像教程的 3D 直方图,但找不到任何