MCPcopy Create free account
hub / github.com/JimmyHHua/opencv_tutorials / hist2d_demo

Function hist2d_demo

python/code_020/opencv_020.py:24–32  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

22
23
24def hist2d_demo(image):
25 hsv = cv.cvtColor(image, cv.COLOR_BGR2HSV)
26 hist = cv.calcHist([hsv], [0, 1], None, [32, 32], [0, 180, 0, 256])
27 dst = cv.resize(hist, (400, 400))
28 cv.imshow("image", image)
29 cv.imshow("hist", dst)
30 plt.imshow(hist, interpolation='nearest')
31 plt.title("2D Histogram")
32 plt.show()
33
34
35back_projection_demo()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected