[Update] I find more example and i can do it now Can I plot several histograms in 3d?
I know this question is already ask and i try this How to calculate 3D histogram in python using open CV but it doesn't work
I want something like this 3D histogram
this is what i have now My Graph
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])
can i use just plt.hist() to plot 3d bar or I need something more?
i have been searching for 3d histogram of an image tutorial but i can't find any
This is my result:
Code: