-
-
Save Praveen76/2c66a78ff730c50d13b9c511ab56176d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img=cv.imread('D:\lowcontrast.jpg') | |
cv.imshow('img',img) | |
gray_img=cv.cvtColor(img,cv.COLOR_BGR2GRAY) | |
cv.imshow('img',gray_img) | |
gray_img_eqhist=cv.equalizeHist(gray_img) | |
cv.imwrite('global hist.jpg',gray_img_eqhist) | |
cv.imshow('img',gray_img_eqhist) | |
cv.waitkey(0) | |
cv.destroyAllWindows() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment