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

Function image_hist

python/code_017/opencv_017.py:25–32  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

23
24
25def image_hist(image):
26 cv.imshow("input", image)
27 color = ('blue', 'green', 'red')
28 for i, color in enumerate(color):
29 hist = cv.calcHist([image], [i], None, [256], [0, 256])
30 plt.plot(hist, color=color)
31 plt.xlim([0, 256])
32 plt.show()
33
34
35src = cv.imread("./test.png")

Callers 1

opencv_017.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected