Untitled

 avatar
unknown
plain_text
a year ago
344 B
3
Indexable
# calculate frequencies for histogram
hist1 = cv2.calcHist([myimage],[0],None,[256],[0,256]) 
  
# show the histogram of original image 
plt.plot(hist1)
plt.title("Original")
plt.show()


hist2 = cv2.calcHist([equalized_img],[0],None,[256],[0,256]) 
  
# show the histogram of equalized image 
plt.plot(hist2) 
plt.title("Equalized")
plt.show()
Editor is loading...
Leave a Comment