Answers for "plot image histogram python"

0

plot histogram python

import matplotlib.pyplot as plt	
  	data = [1.7,1.8,2.0,2.2,2.2,2.3,2.4,2.5,2.5,2.5,2.6,2.6,2.8,
    2.9,3.0,3.1,3.1,3.2,3.3,3.5,3.6,3.7,4.1,4.1,4.2,4.3]
  	plt.hist(data)
    plt.title('Histogram of Data')
    plt.xlabel('data')
    plt.ylabel('count')
Posted by: Guest on May-31-2021
0

histogram image processing python

img = cv2.imread('home.jpg',0)
hist = cv2.calcHist([img],[0],None,[256],[0,256])
Posted by: Guest on July-26-2020

Python Answers by Framework

Browse Popular Code Answers by Language