Histogram

Created with Sketch.
import cv2
import numpy as np
import matplotlib.pyplot as plt

img = cv2.imread("klon.jpg")
b, g, r = cv2.split(img)

cv2.imshow("Klon", img)

plt.hist(b.ravel(), 256, [0, 256])
plt.hist(g.ravel(), 256, [0, 256])
plt.hist(r.ravel(), 256, [0, 256])
plt.show()










Yorum yapılmamış

Yorumunuzu ekleyin