Skip to content

Commit

Permalink
histogram equilization
Browse files Browse the repository at this point in the history
  • Loading branch information
susantabiswas committed Nov 12, 2017
1 parent 0700aa0 commit eb85c68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added Day4/equliz.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Day4/histogram_equ.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
''' perform histogram equilisation on an image '''

import cv2
import numpy as np

img = cv2.imread('lenna.jpg', 0)
eq = cv2.equalizeHist( img )
cv2.imwrite('t1.jpg', eq)
result = np.hstack(( img, eq) )
cv2.imwrite('equliz.jpg', result)

0 comments on commit eb85c68

Please sign in to comment.