I have to get a image, apply Histogram equalization and plot the histogram of both images (original and modified). So I tried this code:
import cv2
import numpy as np
from skimage import io, img_as_float, img_as_ubyte
import matplotlib.pyplot as plt
from matplotlib import pyplot as plt
gray = cv2.imread("folder\img1.jpg",0)
equ = cv2.equalizeHist(gray)
io.imshow(gray)
io.imshow(equ)
histr = cv2.calcHist([gray],[0],None,[256],[0,256])
plt.plot(histr)
plt.show()
How can I fix it?
